[ 
https://issues.apache.org/jira/browse/GOBBLIN-1737?focusedWorklogId=823604&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-823604
 ]

ASF GitHub Bot logged work on GOBBLIN-1737:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 05/Nov/22 00:06
            Start Date: 05/Nov/22 00:06
    Worklog Time Spent: 10m 
      Work Description: ZihanLi58 commented on code in PR #3595:
URL: https://github.com/apache/gobblin/pull/3595#discussion_r1014530751


##########
gobblin-service/src/main/java/org/apache/gobblin/service/modules/orchestration/MysqlUserQuotaManager.java:
##########
@@ -295,7 +302,8 @@ public MysqlQuotaStore(BasicDataSource dataSource, String 
tableName)
       DECREASE_FLOWGROUP_COUNT_SQL = "UPDATE " + tableName + " SET 
flowgroup_count=flowgroup_count-1 WHERE name = ?";
       DELETE_USER_SQL = "DELETE FROM " + tableName + " WHERE name = ? AND 
user_count<1 AND flowgroup_count<1";
 
-      String createQuotaTable = "CREATE TABLE IF NOT EXISTS " + tableName + " 
(name VARCHAR(20) CHARACTER SET latin1 NOT NULL, "
+      //Increase the length of name as we include the executor uri in it
+      String createQuotaTable = "CREATE TABLE IF NOT EXISTS " + tableName + " 
(name VARCHAR(500) CHARACTER SET latin1 NOT NULL, "

Review Comment:
   Under name, it will be "user name for the quota" + "spec uri". I tried 200 
and see it does not work so directly give 500





Issue Time Tracking
-------------------

    Worklog Id:     (was: 823604)
    Time Spent: 50m  (was: 40m)

> Fix bug when using mysql user quota manager
> -------------------------------------------
>
>                 Key: GOBBLIN-1737
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1737
>             Project: Apache Gobblin
>          Issue Type: Improvement
>            Reporter: Zihan Li
>            Priority: Major
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> # Change the way we get config to to consistent with other mysql store
>  # Only check quota in compiler when the flow compile successful and explain 
> flag is not set



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to