-
Notifications
You must be signed in to change notification settings - Fork 281
feat(sync-service): Terminate shape consumer processes after timeout #3455
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
base: main
Are you sure you want to change the base?
feat(sync-service): Terminate shape consumer processes after timeout #3455
Conversation
04d5efa to
b1744df
Compare
commit: |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3455 +/- ##
==========================================
+ Coverage 64.45% 67.57% +3.11%
==========================================
Files 173 182 +9
Lines 8713 9745 +1032
Branches 106 367 +261
==========================================
+ Hits 5616 6585 +969
- Misses 3096 3158 +62
- Partials 1 2 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
b1744df to
c8e7da0
Compare
msfstef
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.
Very nice, love that it's such a simple change!
Main nit is that I'd like to see the shape_enable_suspend? work as something that can be enabled via ELECTRIC_FEATURE_FLAGS - this is easy to configure on cloud as well and doesn't require threading through new variables every time.
| :ets.new(ets_name(stack_id), [ | ||
| :public, | ||
| :named_table, | ||
| write_concurrency: true, |
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.
why not keep it :auto? do we not trust OTP enough, or do OTP registries themselves use true explicitly?
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.
My thinking was: now we know that multiple processes will be concurrently writing why not just enable it. Reading the docs (😲 ) I see :auto is the recommended setting. I should read more docs.
d09ab1d to
b11338f
Compare
b11338f to
7d4d7f3
Compare
msfstef
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.
Brilliant - this'll come in handy!
Closes #3253