Github user HyukjinKwon commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21469#discussion_r192308080
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/HDFSBackedStateStoreProvider.scala
 ---
    @@ -181,6 +182,12 @@ private[state] class HDFSBackedStateStoreProvider 
extends StateStoreProvider wit
         }
       }
     
    +  def getCustomMetricsForProvider(): Map[StateStoreCustomMetric, Long] = {
    --- End diff --
    
    tiny nit:
    
    ```scala
    def getCustomMetricsForProvider(): Map[StateStoreCustomMetric, Long] = 
synchronized {
      Map(metricProviderLoaderMapSize -> SizeEstimator.estimate(loadedMaps))
    }
    ```


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to