reswqa commented on code in PR #20371:
URL: https://github.com/apache/flink/pull/20371#discussion_r933077337
##########
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/hybrid/HsSubpartitionMemoryDataManager.java:
##########
@@ -145,8 +146,19 @@ public Optional<HsMemoryDataManager.BufferAndNextDataType>
consumeBuffer(int toC
tuple.f0.getBufferIndexAndChannel()));
return bufferAndNextDataType.map(
tuple ->
- new HsMemoryDataManager.BufferAndNextDataType(
- tuple.f0.getBuffer(), tuple.f1));
+ new BufferAndBacklog(
+ tuple.f0.getBuffer(), getBacklog(), tuple.f1,
toConsumeIndex));
+ }
+
+ // Get backlog of memory data, always return 0.
Review Comment:
I changed the logical of calculate memory data's backlog, it will return a
meaningful value instead 0 now.
--
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]