Skip to content

Obtain and refresh sink instance handle asynchronously#15869

Closed
losipiuk wants to merge 5 commits intomasterfrom
lo/future-sink-instance-handle
Closed

Obtain and refresh sink instance handle asynchronously#15869
losipiuk wants to merge 5 commits intomasterfrom
lo/future-sink-instance-handle

Conversation

@losipiuk
Copy link
Copy Markdown
Member

Description

It is not always possible for exchange implementation to
provide an immediate return for calls to:

  • Exchange.instantiateSink and
  • Exchange.updateSinkInstanceHandle

depending on exchange implementation sometimes there needs to be a network
the communication involved or another lengthy process. To allow for such
exchange implementations and not block engine threads this PR changes
SPI so the two methods listed above now return
CompletableFuture<ExchangeSinkInstanceHandle>.

Release notes

(x) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
( ) Release notes are required, with the following suggested text:

@cla-bot cla-bot bot added the cla-signed label Jan 26, 2023
@losipiuk losipiuk force-pushed the lo/future-sink-instance-handle branch from a5ee11a to 5935eb0 Compare January 26, 2023 20:51
@losipiuk
Copy link
Copy Markdown
Member Author

FYI: @arhimondr still need to test it out

It is not always possible for exchange implementation to
provide an immediate return for calls to:
* `Exchange.instantiateSink `and
* `Exchange.updateSinkInstanceHandle`

depending on exchange implementation sometimes there needs to be a network
the communication involved or another lengthy process. To allow for such
exchange implementations and not block engine threads this PR changes
SPI so the two methods listed above now return
`CompletableFuture<ExchangeSinkInstanceHandle>`.
@losipiuk losipiuk force-pushed the lo/future-sink-instance-handle branch from 5935eb0 to 4b1b790 Compare January 26, 2023 20:52
@losipiuk
Copy link
Copy Markdown
Member Author

replaced with #15870

@losipiuk losipiuk closed this Jan 26, 2023
@losipiuk losipiuk deleted the lo/future-sink-instance-handle branch January 26, 2023 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant