Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,9 @@ public boolean onEvent(TabletInsertionEvent event) throws IOException, WALPipeEx
final TPipeTransferReq req = buildTabletInsertionReq(event);
final long requestCommitId = ((EnrichedEvent) event).getCommitId();

if (requestCommitIds.isEmpty()
|| !requestCommitIds.get(requestCommitIds.size() - 1).equals(requestCommitId)) {
// The deduplication logic here is to avoid the accumulation of the same event in a batch when
// retrying.
if ((events.isEmpty() || !events.get(events.size() - 1).equals(event))) {
reqs.add(req);
events.add(event);
requestCommitIds.add(requestCommitId);
Expand Down