You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/07 12:16:00 UTC

[jira] [Resolved] (SPARK-27647) Metric Gauge not threadsafe

     [ https://issues.apache.org/jira/browse/SPARK-27647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon resolved SPARK-27647.
----------------------------------
    Resolution: Invalid

> Metric Gauge not threadsafe
> ---------------------------
>
>                 Key: SPARK-27647
>                 URL: https://issues.apache.org/jira/browse/SPARK-27647
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 2.4.2
>            Reporter: bettermouse
>            Priority: Major
>
> when I read class DAGSchedulerSource,I find some Gauges may be not threadSafe.like
>  metricRegistry.register(MetricRegistry.name("stage", "failedStages"), new Gauge[Int] {
>  override def getValue: Int = dagScheduler.failedStages.size
>  })
> this method may be called in other thread,but failedStages field is not thread safe
> filed runningStages,waitingStages have same problem



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org