Skip to content

HDDS-14831. Datanode should gracefully handle CONTAINER_ALREADY_EXISTS#9925

Open
weimingdiit wants to merge 1 commit intoapache:masterfrom
weimingdiit:HDDS-14831
Open

HDDS-14831. Datanode should gracefully handle CONTAINER_ALREADY_EXISTS#9925
weimingdiit wants to merge 1 commit intoapache:masterfrom
weimingdiit:HDDS-14831

Conversation

@weimingdiit
Copy link
Contributor

@weimingdiit weimingdiit commented Mar 14, 2026

What changes were proposed in this pull request?

Add CONTAINER_ALREADY_EXISTS to HddsDispatcher#canIgnoreException.

Create-container requests may fail with CONTAINER_ALREADY_EXISTS before a container instance is available. In that case, the dispatcher can still enter the generic failure path and try to mark the container unhealthy, which may result in an unexpected NPE.

Treating CONTAINER_ALREADY_EXISTS as an ignorable result avoids that path and lets the request fail gracefully with normal logging.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-14831

@weimingdiit weimingdiit marked this pull request as ready for review March 14, 2026 08:20
@weimingdiit
Copy link
Contributor Author

Hi,@jojochuang @adoroszlai @aajisaka could you please take a look at this PR?

@adoroszlai adoroszlai requested a review from jojochuang March 14, 2026 20:43
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