-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Allow configuring helix timeouts for EV dropped in Instance manager #10510
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10510 +/- ##
============================================
+ Coverage 63.23% 69.94% +6.70%
- Complexity 5905 6123 +218
============================================
Files 2036 2092 +56
Lines 110973 112716 +1743
Branches 16892 17143 +251
============================================
+ Hits 70177 78836 +8659
+ Misses 35606 28314 -7292
- Partials 5190 5566 +376
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 414 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -205,7 +202,7 @@ private TableDataManager createTableDataManager(String tableNameWithType, TableC | |||
public void deleteTable(String tableNameWithType) | |||
throws Exception { | |||
// Wait externalview to converge | |||
long endTimeMs = System.currentTimeMillis() + EXTERNAL_VIEW_DROPPED_MAX_WAIT_MS; | |||
long endTimeMs = System.currentTimeMillis() + _instanceDataManagerConfig.getExternalViewDroppedMaxWaitMs(); |
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.
(minor) Let's cache these 2 values into local variable (or as member variable during init()
)
// Check if the external view is dropped for a table, and if so, wait for the external view to | ||
// be updated for a maximum of this time. | ||
private static final String EXTERNAL_VIEW_DROPPED_MAX_WAIT_MS = "external.view.dropped.max.wait.ms"; | ||
private static final String EXTERNAL_VIEW_CHECK_INTERVAL_MS = "external.view.check.interval.ms"; |
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.
(minor)
private static final String EXTERNAL_VIEW_CHECK_INTERVAL_MS = "external.view.check.interval.ms"; | |
private static final String EXTERNAL_VIEW_DROPPED_CHECK_INTERVAL_MS = "external.view.dropped.check.interval.ms"; |
We can set the following configs to configure the timeout
external.view.dropped.max.wait.ms
- The duration of time in milliseconds to wait for the external view to be dropped. Default - 20 minutes.external.view.check.interval.ms
- The period in milliseconds in which to ping ZK for latest EV state.