kfaraz commented on code in PR #18634:
URL: https://github.com/apache/druid/pull/18634#discussion_r2450714521


##########
indexing-service/src/main/java/org/apache/druid/indexing/overlord/setup/WorkerCategorySpec.java:
##########
@@ -88,15 +88,19 @@ public static class CategoryConfig
     private final String defaultCategory;
     // key: datasource, value: category
     private final Map<String, String> categoryAffinity;
+    // key: supervisorId, value: category
+    private final Map<String, String> supervisorIdCategoryAffinity;
 
     @JsonCreator
     public CategoryConfig(
         @JsonProperty("defaultCategory") String defaultCategory,
-        @JsonProperty("categoryAffinity") Map<String, String> categoryAffinity
+        @JsonProperty("categoryAffinity") Map<String, String> categoryAffinity,
+        @JsonProperty("supervisorIdCategoryAffinity") Map<String, String> 
supervisorIdCategoryAffinity
     )
     {
       this.defaultCategory = defaultCategory;
       this.categoryAffinity = categoryAffinity == null ? 
Collections.emptyMap() : categoryAffinity;
+      this.supervisorIdCategoryAffinity = supervisorIdCategoryAffinity == null 
? Collections.emptyMap() : supervisorIdCategoryAffinity;

Review Comment:
   Alternatively, we can also just leave the value as null and not assign any 
default value to it.



-- 
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]

Reply via email to