You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2021/08/23 06:53:59 UTC

[GitHub] [ozone] JacksonYao287 commented on a change in pull request #2538: HDDS-5619. Ozone data corruption issue on follower node.

JacksonYao287 commented on a change in pull request #2538:
URL: https://github.com/apache/ozone/pull/2538#discussion_r693706461



##########
File path: hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/impl/FilePerBlockStrategy.java
##########
@@ -95,15 +94,15 @@ public void writeChunk(Container container, BlockID blockID, ChunkInfo info,
       throws StorageContainerException {
 
     checkLayoutVersion(container);
-
     Preconditions.checkNotNull(dispatcherContext);
     DispatcherContext.WriteChunkStage stage = dispatcherContext.getStage();
 
     if (info.getLen() <= 0) {
       if (LOG.isDebugEnabled()) {
         LOG.debug("Skip writing empty chunk {} in stage {}", info, stage);
       }
-      return;
+      ExitUtils.terminate(1, "Empty Write chunk received " + info,

Review comment:
       why we terminate here? is there something wrong if we just return?




-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org