-
Notifications
You must be signed in to change notification settings - Fork 1.9k
IGNITE-23856 channel connection retry in ASYNC case #11954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IGNITE-23856 channel connection retry in ASYNC case #11954
Conversation
e9709e5
to
36356e7
Compare
9630597
to
b3bfa4c
Compare
b3bfa4c
to
22a9b8e
Compare
c4c52db
to
ac99c76
Compare
cf1b392
to
5a7fb3b
Compare
5a7fb3b
to
787ce64
Compare
d393e2a
to
9cbb15e
Compare
f684601
to
4db49ad
Compare
.handle((res, err) -> { | ||
ch.serviceAsync(op, payloadWriter, payloadReader) | ||
.whenComplete((res, err) -> { | ||
if (fut.isDone()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In which case the future is done here?
modules/core/src/main/java/org/apache/ignite/internal/client/thin/ReliableChannel.java
Show resolved
Hide resolved
|
||
return null; | ||
applyOnClientChannelAsync(fut, newCh, op, payloadWriter, payloadReader, failures); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you will fall in a recursion here.
modules/core/src/main/java/org/apache/ignite/internal/client/thin/ReliableChannel.java
Outdated
Show resolved
Hide resolved
Function<PayloadInputChannel, T> payloadReader, | ||
List<ClientConnectionException> failures | ||
) { | ||
ClientConnectionException err = failures.get(failures.size() - 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case of retry in applyOnClientChannelAsync, the failures
collection isn't populated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not fixed
f22b5c1
to
48a73ed
Compare
a4f7a30
to
57ebb5f
Compare
57ebb5f
to
1362af8
Compare
d316195
into
apache:IGNITE-23856__thin_cln_channels_duplication
|
Thank you for submitting the pull request to the Apache Ignite.
In order to streamline the review of the contribution
we ask you to ensure the following steps have been taken:
The Contribution Checklist
The description explains WHAT and WHY was made instead of HOW.
The following pattern must be used:
IGNITE-XXXX Change summary
whereXXXX
- number of JIRA issue.(see the Maintainers list)
the
green visa
attached to the JIRA ticket (see TC.Bot: Check PR)Notes
If you need any help, please email dev@ignite.apache.org or ask anу advice on http://asf.slack.com #ignite channel.