lei-xia commented on a change in pull request #336: #334 Fix invoke rebalance 
by "touching" IdealState/ResourceConfig
URL: https://github.com/apache/helix/pull/336#discussion_r304026414
 
 

 ##########
 File path: helix-core/src/main/java/org/apache/helix/task/TaskUtil.java
 ##########
 @@ -1021,11 +1021,21 @@ public static void purgeExpiredJobs(String workflow, 
WorkflowConfig workflowConf
           // concurrent write issue. It is possible that jobs got purged but 
there is no event to
           // trigger the pipeline to clean context.
           HelixDataAccessor accessor = manager.getHelixDataAccessor();
-          List<String> resourceConfigs =
-              accessor.getChildNames(accessor.keyBuilder().resourceConfigs());
+          List<ResourceConfig> resourceConfigs =
 
 Review comment:
   getChildNames is a single ZK call, but getChildValues are fetching the 
contents of all resource configs. If the volume of resource config is large, 
the performance impact (latency of this call + additional traffic to ZK) is 
no-ignorable.  Is that possible to have other way to do this? Or as my 
thinking, do we really need this touch at all?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to