Github user lei-xia commented on a diff in the pull request:
https://github.com/apache/helix/pull/47#discussion_r76099580
--- Diff: helix-core/src/main/java/org/apache/helix/task/JobRebalancer.java
---
@@ -154,6 +154,7 @@ public ResourceAssignment
computeBestPossiblePartitionState(ClusterDataCache clu
// Update rebalancer context, previous ideal state.
TaskUtil.setJobContext(_manager, jobName, jobCtx);
TaskUtil.setWorkflowContext(_manager, workflowResource, workflowCtx);
+ TaskUtil.createUserContentNode(_manager, jobName, new
ZNRecord(TaskUtil.USER_CONTENT_NODE));
--- End diff --
Put the create call here will make it called everytime rebalance() is
executed, that should be avoided. Create should be only happen once, we can
create the user content node when workflowRebalancer creates the job's
idealState creation.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---