Skip to content

layerStore.registerWithDescriptor: improve logs for cleaning up cache#49298

Merged
vvoland merged 1 commit intomoby:masterfrom
thaJeztah:layerstore_logs
Jan 22, 2025
Merged

layerStore.registerWithDescriptor: improve logs for cleaning up cache#49298
vvoland merged 1 commit intomoby:masterfrom
thaJeztah:layerstore_logs

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

The debug log was slightly confusing, as it seemed the cleaning up failed, but the log was intended to inform that cleaning up was started because of an error.

Before this patch:

DEBU[2025-01-18T12:29:52.717452919Z] Cleaning up layer 472e3e532da3945040a6224ba36d2befcfe250aeb53536868d23e5f617e34226: exit status 1: unpigz: skipping: <stdin>: corrupted -- incomplete deflate data

With this patch:

DEBU[2025-01-18T13:01:45.307983471Z] Cleaning up cache layer after error           cache-id=c4d9f38bdf6d8fcb69bd130b89d34d1511b42f3644fc49c91e253eda648bd37a error="exit status 1: unpigz: skipping: <stdin>: corrupted -- incomplete deflate data\n"

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

The debug log was slightly confusing, as it seemed the cleaning up failed,
but the log was intended to inform that cleaning up was started because
of an error.

Before this patch:

    DEBU[2025-01-18T12:29:52.717452919Z] Cleaning up layer 472e3e532da3945040a6224ba36d2befcfe250aeb53536868d23e5f617e34226: exit status 1: unpigz: skipping: <stdin>: corrupted -- incomplete deflate data

With this patch:

    DEBU[2025-01-18T13:01:45.307983471Z] Cleaning up cache layer after error           cache-id=c4d9f38bdf6d8fcb69bd130b89d34d1511b42f3644fc49c91e253eda648bd37a error="exit status 1: unpigz: skipping: <stdin>: corrupted -- incomplete deflate data\n"

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added status/2-code-review kind/refactor PR's that refactor, or clean-up code labels Jan 18, 2025
@thaJeztah thaJeztah added this to the 28.0.0 milestone Jan 18, 2025
@thaJeztah thaJeztah self-assigned this Jan 18, 2025
@thaJeztah thaJeztah requested a review from vvoland January 20, 2025 10:56
@vvoland vvoland merged commit de7800b into moby:master Jan 22, 2025
@thaJeztah thaJeztah deleted the layerstore_logs branch January 22, 2025 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/refactor PR's that refactor, or clean-up code status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants