platinumhamburg commented on code in PR #2134:
URL: https://github.com/apache/fluss/pull/2134#discussion_r2642138592
##########
fluss-client/src/main/java/org/apache/fluss/client/table/writer/UpsertWriterImpl.java:
##########
@@ -186,6 +310,35 @@ public CompletableFuture<DeleteResult> delete(InternalRow
row) {
return send(record).thenApply(ignored -> DELETE_SUCCESS);
}
+ @Override
+ public Map<TableBucket, Long> bucketsAckStatus() {
+ // Get bucket offset tracker from writer client
+ // The tracker maintains the latest acknowledged offset for each
bucket written by this
+ // writer
+ try {
+ Map<TableBucket, Long> allOffsets =
+ writerClient.getBucketOffsetTracker().getAllOffsets();
Review Comment:
The offset here is tracked by the client based on the response returned for
each write; therefore, the client actually retains the offsets of the buckets
it has written to.
--
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]