You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by ad...@apache.org on 2026/03/14 06:42:07 UTC
(ozone) branch master updated: HDDS-14832. Improve Datanode dispatcher unexpected container state message (#9918)
This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 73072cf1dab HDDS-14832. Improve Datanode dispatcher unexpected container state message (#9918)
73072cf1dab is described below
commit 73072cf1dab50923a6173cf5c735c8637c7a1171
Author: Ming Wei <we...@gmail.com>
AuthorDate: Sat Mar 14 14:42:01 2026 +0800
HDDS-14832. Improve Datanode dispatcher unexpected container state message (#9918)
---
.../apache/hadoop/ozone/container/common/impl/HddsDispatcher.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/impl/HddsDispatcher.java b/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/impl/HddsDispatcher.java
index 12fed16b364..b298c00bcd9 100644
--- a/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/impl/HddsDispatcher.java
+++ b/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/impl/HddsDispatcher.java
@@ -399,12 +399,14 @@ && getMissingContainerSet().contains(containerID)) {
.getMessage());
}
// For container to be moved to unhealthy state here, the container can
- // only be in open or closing state.
+ // only be in open, closing, or recovering state.
State containerState = container.getContainerData().getState();
Preconditions.checkState(
containerState == State.OPEN
|| containerState == State.CLOSING
- || containerState == State.RECOVERING);
+ || containerState == State.RECOVERING,
+ "Expected container %s to be in OPEN/CLOSING/RECOVERING state but was %s",
+ containerID, containerState);
// mark and persist the container state to be unhealthy
try {
ContainerScanError error = new ContainerScanError(ContainerScanError.FailureType.WRITE_FAILURE,
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org