amaliujia commented on code in PR #10823:
URL: https://github.com/apache/ozone/pull/10823#discussion_r3654172038
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/KeyValueHandler.java:
##########
@@ -680,6 +681,11 @@ ContainerCommandResponseProto handlePutBlock(
long bcsId =
dispatcherContext == null ? 0 : dispatcherContext.getLogIndex();
+ if (bcsId == 0 && DispatcherContext.op(dispatcherContext) ==
DispatcherContext.Op.STREAM_LINK) {
+ // Stream close PutBlock is applied outside a Ratis log entry, so use
the
+ // next block commit sequence id after any prior PutBlock on this
container.
+ bcsId = kvContainer.getBlockCommitSequenceId() + 1;
+ }
Review Comment:
How do I tell if it is pipeline v3?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]