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


##########
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:
   I updated it to the shorthand expression shared above. If we change it to 
null, then we will also have to update WorkerSelectUtils to check for null 
before the .get() operation.



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