Skip to content

Fix RESOURCE_EXHAUSTED error code from 13 to 8#605

Open
nixpanic wants to merge 1 commit into
container-storage-interface:masterfrom
nixpanic:RESOURCE_EXHAUSTED
Open

Fix RESOURCE_EXHAUSTED error code from 13 to 8#605
nixpanic wants to merge 1 commit into
container-storage-interface:masterfrom
nixpanic:RESOURCE_EXHAUSTED

Conversation

@nixpanic

@nixpanic nixpanic commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

What type of PR is this?

/bugfix

What this PR does / why we need it:

Inconsistent/incorrect error-code can cause confusion on what is intended to happen.

Special notes for your reviewer:

This should not cause problems for CSI-driver implementers. The RESOURCE_EXHAUSTED error description is clear enough. Code 13 would be INTERNAL, which does not make much sense to return when the description is read.

Does this PR introduce an API-breaking change?:

The numeric error-code for CreateSnapshot and CreateGroupSnapshot is corrected for the RESOURCE_EXHAUSTED value from 13 (INTERNAL) to 8.

Corrected two instances where RESOURCE_EXHAUSTED was incorrectly
listed as gRPC code 13 instead of the correct code 8:
- Line 2040: Not enough space to create snapshot
- Line 3086: Not enough space to create group snapshot

The correct gRPC error code for RESOURCE_EXHAUSTED is 8, not 13
(which is INTERNAL).
@nixpanic

nixpanic commented Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

Not sure why the build test fails... The protobuf file should not have been modified by the change in the text, there is no reason to rebuild anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant