ChenSammi commented on a change in pull request #2152:
URL: https://github.com/apache/ozone/pull/2152#discussion_r616463453
##########
File path:
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/KeyValueHandler.java
##########
@@ -635,17 +611,15 @@ ContainerCommandResponseProto handleReadChunk(
* Throw an exception if the container is unhealthy.
*
* @throws StorageContainerException if the container is unhealthy.
- * @param kvContainer
*/
@VisibleForTesting
- void checkContainerIsHealthy(KeyValueContainer kvContainer)
- throws StorageContainerException {
+ void checkContainerIsHealthy(KeyValueContainer kvContainer, BlockID blockID,
+ Type cmd) {
kvContainer.readLock();
try {
if (kvContainer.getContainerData().getState() == State.UNHEALTHY) {
- throw new StorageContainerException(
- "The container(" + kvContainer.getContainerData().getContainerID()
+
- ") replica is unhealthy.", CONTAINER_UNHEALTHY);
+ LOG.info("{} request {} for UNHEALTHY container {} replica", cmd,
Review comment:
Changed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]