kfaraz commented on code in PR #19700:
URL: https://github.com/apache/druid/pull/19700#discussion_r3604022092
##########
indexing-service/src/main/java/org/apache/druid/indexing/overlord/supervisor/SupervisorManager.java:
##########
@@ -650,7 +654,11 @@ public boolean isAnotherTaskGroupPublishingToPartitions(
* @return reference to existing supervisor, if exists and was stopped, null
if there was no supervisor with this id
*/
@Nullable
- private SupervisorSpec possiblyStopAndRemoveSupervisorInternal(String id,
boolean writeTombstone)
+ private SupervisorSpec possiblyStopAndRemoveSupervisorInternal(
+ String id,
+ boolean writeTombstone,
+ boolean shouldRestartCauseTaskDisruption
Review Comment:
```suggestion
boolean terminateTasks
```
##########
server/src/main/java/org/apache/druid/indexing/overlord/supervisor/SupervisorSpec.java:
##########
@@ -148,4 +148,12 @@ default boolean requireRestart(SupervisorSpec proposedSpec)
{
return true;
}
+
+ /**
+ * Returns true if the supervisor restart should cause task disruption,
false otherwise
+ */
+ default boolean shouldRestartCauseTaskDisruption()
Review Comment:
Whether to restart tasks or not will depend on the difference between the
current spec and proposed spec.
In some cases, we might want to rollover tasks and in other cases, we might
want to continue with the existing tasks.
```suggestion
default boolean shouldRolloverTasksOnRestart(SupervisorSpec proposedSpec);
```
--
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]