-
Notifications
You must be signed in to change notification settings - Fork 114
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
Unwrap CompletionException to check actual thrown exception #463
Conversation
Motivation: - An exception which is thrown at CompletableFuture callback handler will be wrapped with CompletionException. - ReplicationLagTolerantCentralDogma does not retry when CompletionException-wrapped RevisionNotFoundException is thrown Changes: - Unwrap CompletionException Results: - Handle replication lag correctly
.../main/java/com/linecorp/centraldogma/internal/client/ReplicationLagTolerantCentralDogma.java
Outdated
Show resolved
Hide resolved
Build error with
|
.../main/java/com/linecorp/centraldogma/internal/client/ReplicationLagTolerantCentralDogma.java
Outdated
Show resolved
Hide resolved
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.
👍 Thanks!
Codecov Report
@@ Coverage Diff @@
## master #463 +/- ##
============================================
+ Coverage 69.87% 69.93% +0.06%
- Complexity 3108 3114 +6
============================================
Files 322 322
Lines 12569 12575 +6
Branches 1346 1347 +1
============================================
+ Hits 8782 8794 +12
+ Misses 2941 2937 -4
+ Partials 846 844 -2
Continue to review full report at Codecov.
|
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.
Thanks a lot, @imasahiro !
Motivation:
CompletableFuture
callback handler will be wrapped withCompletionException
.ReplicationLagTolerantCentralDogma
does not retry whenCompletionException
-wrappedRevisionNotFoundException
is thrownChanges:
CompletionException
Results: