-
Notifications
You must be signed in to change notification settings - Fork 108
[server][dvc] Preserve PCS during non-Helix UNSUBSCRIBE to maintain quota accuracy #2299
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2368,11 +2368,12 @@ protected void processCommonConsumerAction(ConsumerAction consumerAction) throws | |
| * {@link #kafkaDataValidationService}, we would like to drain all the buffered messages before cleaning up those | ||
| * two variables to avoid the race condition. | ||
| */ | ||
| partitionConsumptionStateMap.remove(partition); | ||
| if (consumerAction.isHelixTriggeredAction()) { | ||
| if (isDaVinciClient() || consumerAction.isHelixTriggeredAction()) { | ||
| LOGGER.info( | ||
| "Removing tracking of replica: {} from storage utilization manager as this UNSUBSCRIBE is helix triggered action", | ||
| topicPartition); | ||
| "Removing replica: {} from PCS map and storage utilization manager. Trigger: {}", | ||
| topicPartition, | ||
| isDaVinciClient() ? "DaVinci client unsubscribe" : "Helix-triggered unsubscribe"); | ||
|
Comment on lines
2372
to
+2375
|
||
| partitionConsumptionStateMap.remove(partition); | ||
| storageUtilizationManager.removePartition(partition); | ||
| } | ||
| getDataIntegrityValidator().clearPartition(partition); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.