Skip to content

Documented FAILED_PRECONDITION as a possible error for GetMetadataDelta#591

Merged
bswartz merged 1 commit into
container-storage-interface:masterfrom
carlbraganza:cbt-not-enabled-error
Sep 17, 2025
Merged

Documented FAILED_PRECONDITION as a possible error for GetMetadataDelta#591
bswartz merged 1 commit into
container-storage-interface:masterfrom
carlbraganza:cbt-not-enabled-error

Conversation

@carlbraganza

Copy link
Copy Markdown
Contributor

If changed block tracking has not been enabled in the underlying storage subsystem then GetMetadataDelta will fail.
This PR documents the gRPC error code that should be returned when this happens.

What type of PR is this?
This is a documentation change only.

What this PR does / why we need it:
This provides information to CSI driver developers on the precise error code to return for this error, and
guidance to the backup application developer on how to respond.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:
This change was discussed in the Data Protection Working Group meeting.

Does this PR introduce an API-breaking change?:

NONE

@jdef

jdef commented Jun 25, 2025 via email

Copy link
Copy Markdown
Member

indicate that changed block tracking has not been enabled in the
underlying storage subsystem.
@carlbraganza carlbraganza force-pushed the cbt-not-enabled-error branch from 23cdc67 to ca57aa6 Compare June 30, 2025 17:52
@xing-yang

Copy link
Copy Markdown
Contributor

lgtm

@bswartz bswartz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@bswartz bswartz merged commit 3a67636 into container-storage-interface:master Sep 17, 2025
2 checks passed
@akankshapanse

Copy link
Copy Markdown

@carlbraganza will the similar change be required for GetMetadataAllocated() API as well, mainly for cases like CBT is not enabled on underlying disk/data copy ?

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.

5 participants