Return-Path: X-Original-To: apmail-helix-commits-archive@minotaur.apache.org Delivered-To: apmail-helix-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 728A31084F for ; Wed, 19 Nov 2014 02:54:55 +0000 (UTC) Received: (qmail 49413 invoked by uid 500); 19 Nov 2014 02:54:55 -0000 Delivered-To: apmail-helix-commits-archive@helix.apache.org Received: (qmail 49373 invoked by uid 500); 19 Nov 2014 02:54:55 -0000 Mailing-List: contact commits-help@helix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@helix.apache.org Delivered-To: mailing list commits@helix.apache.org Received: (qmail 49356 invoked by uid 99); 19 Nov 2014 02:54:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Nov 2014 02:54:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 19 Nov 2014 02:54:54 +0000 Received: (qmail 49146 invoked by uid 99); 19 Nov 2014 02:54:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Nov 2014 02:54:34 +0000 Date: Wed, 19 Nov 2014 02:54:33 +0000 (UTC) From: "Karthiek (JIRA)" To: commits@helix.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HELIX-553) While enqueueing a job, task framework should create state model "Task" if it doesn't already exist MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org 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)