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 @@ -183,7 +183,6 @@ public void allRequiredSinksFinished()
return;
}
verify(noMoreSinks, "noMoreSinks is expected to be set");
verify(finishedSinks.keySet().containsAll(allSinks), "all sinks are expected to be finished");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to finish/close the sinks that weren't finished yet?
can there be a resource leak we if we do not so?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also though about it. Theoretically yeah - but not the case for exchange implementation we have right now. So I would not extend SPI just yet - we can add the method if we see it is needed for some upcoming exchange impl.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can there be a resource leak we if we do not so?

maybe not a leak, but memory could be stalled for a longer time then needed. I would close them if we can

// input is ready, create exchange source handles
exchangeSourceHandlesCreationStarted = true;
exchangeSourceHandlesCreationFuture = stats.getCreateExchangeSourceHandles().record(this::createExchangeSourceHandles);
Expand Down