capistrant commented on code in PR #17955:
URL: https://github.com/apache/druid/pull/17955#discussion_r2079547881
##########
indexing-service/src/main/java/org/apache/druid/indexing/overlord/supervisor/SupervisorManager.java:
##########
@@ -174,6 +174,12 @@ public boolean
createOrUpdateAndStartSupervisor(SupervisorSpec spec)
synchronized (lock) {
Preconditions.checkState(started, "SupervisorManager not started");
final boolean shouldUpdateSpec = shouldUpdateSupervisor(spec);
+ if (shouldUpdateSpec) {
+ SupervisorSpec existingSpec = getSpec(spec.getId());
+ if (existingSpec != null) {
+ existingSpec.validateProposedSpecEvolution(spec);
+ }
Review Comment:
Made the move of this logic
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]