-
Notifications
You must be signed in to change notification settings - Fork 59
Fix broken retry logic when synchroniser is disconnected #1035
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
Conversation
apps/splitwell/frontend/src/App.tsx
Outdated
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.
This is the crux of this change. The rest is cleanup + more specific types
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.
:D Took me a while to see (DOMAIN->SYNCHRONIZER)... Good catch!
2578b1d to
31b4859
Compare
|
@fayi-da Is the failing CI check related to your PR? |
martinflorian-da
left a comment
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!
apps/splitwell/frontend/src/App.tsx
Outdated
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.
:D Took me a while to see (DOMAIN->SYNCHRONIZER)... Good catch!
| const isDomainConnectionError = keywords.some(k => errResponse.body?.error?.includes(k)); | ||
|
|
||
| return isDomainConnectionError && failureCount < 10; | ||
| return keywords.some(k => errResponse.body?.error?.code.includes(k)); |
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.
So you're also making the check more specific, by checking only .code instead of the whole error. I don't know the data format here in detail so would prefer to keep the proven more general scope; but I guess you know what you're doing so fine with me.
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.
so would prefer to keep the proven more general scope; but I guess you know what you're doing so fine with me.
I actually prefer this too and since you feel the same, i'll revert it.
Making the type more specific and change DOMAIN -> SYNCHRONIZER Signed-off-by: fayi-da <fayimora.femibalogun@digitalasset.com>
2aae373 to
8faf946
Compare
Signed-off-by: fayi-da <fayimora.femibalogun@digitalasset.com>
8faf946 to
f0768ab
Compare
Making the type more specific and change DOMAIN -> SYNCHRONIZER
Pull Request Checklist
Cluster Testing
/cluster_teston this PR to request it, and ping someone with access to the DA-internal system to approve it./hdm_teston this PR to request it, and ping someone with access to the DA-internal system to approve it.PR Guidelines
Fixes #n, and mention issues worked on using#nMerge Guidelines