azkaban-aplcache

increase job name varchar size in Mysql table to allow long job

5/31/2018 3:08:20 AM

Details

diff --git a/azkaban-db/src/main/sql/create.execution_jobs.sql b/azkaban-db/src/main/sql/create.execution_jobs.sql
index d973ae2..b712f52 100644
--- a/azkaban-db/src/main/sql/create.execution_jobs.sql
+++ b/azkaban-db/src/main/sql/create.execution_jobs.sql
@@ -3,7 +3,7 @@ CREATE TABLE execution_jobs (
   project_id    INT          NOT NULL,
   version       INT          NOT NULL,
   flow_id       VARCHAR(128) NOT NULL,
-  job_id        VARCHAR(128) NOT NULL,
+  job_id        VARCHAR(512) NOT NULL,
   attempt       INT,
   start_time    BIGINT,
   end_time      BIGINT,
diff --git a/azkaban-db/src/main/sql/create.execution_logs.sql b/azkaban-db/src/main/sql/create.execution_logs.sql
index 2d26e1b..9003820 100644
--- a/azkaban-db/src/main/sql/create.execution_logs.sql
+++ b/azkaban-db/src/main/sql/create.execution_logs.sql
@@ -1,6 +1,12 @@
+-- In table execution_logs, name is the combination of flow_id and job_id
+--
+-- prefix support and lengths of prefixes (where supported) are storage engine dependent.
+-- By default, the index key prefix length limit is 767 bytes for innoDB.
+-- from: https://dev.mysql.com/doc/refman/5.7/en/create-index.html
+
 CREATE TABLE execution_logs (
   exec_id     INT NOT NULL,
-  name        VARCHAR(128),
+  name        VARCHAR(640),
   attempt     INT,
   enc_type    TINYINT,
   start_byte  INT,