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

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

                Author: ASF GitHub Bot
            Created on: 25/Jan/22 16:47
            Start Date: 25/Jan/22 16:47
    Worklog Time Spent: 10m 
      Work Description: ZihanLi58 merged pull request #3454:
URL: https://github.com/apache/gobblin/pull/3454


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

    Worklog Id:     (was: 714789)
    Time Spent: 1h 40m  (was: 1.5h)

> Fix metrics already exist issue in dag manager
> ----------------------------------------------
>
>                 Key: GOBBLIN-1598
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1598
>             Project: Apache Gobblin
>          Issue Type: Bug
>            Reporter: Zihan Li
>            Priority: Major
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> {code:java}
> 2021/06/12 07:11:32.067 ERROR [DagManager] [pool-19-thread-3] 
> [gobblin-service-war] [] Exception encountered in 
> org.apache.gobblin.service.modules.orchestration.DagManager$DagManagerThread
> java.lang.IllegalArgumentException: A metric named 
> GobblinService.testGroup.testFlow.RunningStatus already exists
>  at 
> org.apache.gobblin.metrics.InnerMetricContext.register(InnerMetricContext.java:266)
>  
>  at org.apache.gobblin.metrics.MetricContext.register(MetricContext.java:409) 
>  at 
> org.apache.gobblin.service.modules.orchestration.DagManager$DagManagerThread.initialize(DagManager.java:661)
>  
>  at 
> org.apache.gobblin.service.modules.orchestration.DagManager$DagManagerThread.run(DagManager.java:493)
>  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> [?:1.8.0_172]
>  at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) 
> [?:1.8.0_172]
>  at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
>  [?:1.8.0_172]
>  at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
>  [?:1.8.0_172]
>  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [?:1.8.0_172]
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [?:1.8.0_172]
>  at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]
> {code}
> Likely root cause:
> If we activate/deactivate DagManager several times, DagManagerThreads 
> alongside with their flowGauges maps will be recreated, but RootMetricContext 
> will still stay the same. So the newly created threads will incorrectly think 
> that the flow was not registered previously, and try to register it again.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to