Karthiek created HELIX-553:
------------------------------
Summary: While enqueueing a job, task framework should create
state model "Task" if it doesn't already exist
Key: HELIX-553
URL: https://issues.apache.org/jira/browse/HELIX-553
Project: Apache Helix
Issue Type: Bug
Reporter: Karthiek
Task framework expects the "Task" state model to be already defined. Otherwise
enqueueing a job using ClusterTask framework throws this exception:
org.apache.helix.HelixException: State model Task not found in the cluster
STATEMODELDEFS path
at
org.apache.helix.manager.zk.ZKHelixAdmin.addResource(ZKHelixAdmin.java:608)
at
org.apache.helix.manager.zk.ZKHelixAdmin.addResource(ZKHelixAdmin.java:651)
at
org.apache.helix.manager.zk.ZKHelixAdmin.addResource(ZKHelixAdmin.java:625)
at
org.apache.helix.manager.zk.ZKHelixAdmin.addResource(ZKHelixAdmin.java:592)
at org.apache.helix.task.TaskDriver.scheduleJob(TaskDriver.java:327)
at org.apache.helix.task.TaskDriver.enqueueJob(TaskDriver.java:316)
at
com.linkedin.espresso.bulkmigrator.BulkOperationScheduler.schedule(BulkOperationScheduler.java:98)
at
com.linkedin.espresso.test.bulkoperation.ScheduleEIJob.main(ScheduleEIJob.java:38)
Existing clusters will not have "Task" state model already defined. It would be
really great if the task framework automatically creates it if the state model
doesn't exist.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)