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

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

bettermouse created SPARK-27647:
-----------------------------------

             Summary: 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


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