-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix: splitting a long doc sentence to 2 #3079
Conversation
@lynch19 Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
1 similar comment
@lynch19 Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@lynch19 Thank you for signing the Contributor License Agreement! |
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.
I understand the spirit and that sentence is indeed a bit long, but the split is not great. what comes after the :
is a single sentence. the idea was to convey that a different index is used for computing retry delays and deciding whether to retry or not. that index is reset to 0 in case of onNext.
For new users, it's really hard to understand what's going on in this paragraph. Notice that this is the first time in the docs that the word "index" is referenced (raises the question: "What index?").
As long as my suggestion will be correct (I'm pretty new to the subject of retrying. Trying to fix the parts I've didn't understand from the docs), I suggest rephrasing the unclear:
to: In general, I think that there's should be a new scope for And also I have a little question that I think needs to be answered inside the docs - In the initial retrying example (the one with the interval ticks) there was shown how to retry the whole flux. What if I'd like to retry only the specific error-causing item? e.g. I think that many (I'm included) would like to know how to produce the output of:
instead of:
This can be shown in a more appropriate example (that can demonstrate a temporary network-caused IO exception). |
ok, it sounds like the concept of transient error needs more explaining and a more detailed section (eg. TIP) in the reference guide. I'll open a separate PR. This split is too naive and prone to introducing confusion. Keep in mind this mode is opt-in, and not the norm for a |
This commit reworks the reference guide section on Retry with Transient Errors, improving the explanation and adding more details in a separate section. The code snippet has also been changed to reflect a more practical use case, with the original artificial `Flux<Integer>` split out in a secondary snippet. Supersedes #3079.
No description provided.