zecookiez commented on code in PR #49816: URL: https://github.com/apache/spark/pull/49816#discussion_r1951367918
########## sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/StateStore.scala: ########## @@ -321,6 +321,38 @@ case class StateStoreCustomTimingMetric(name: String, desc: String) extends Stat SQLMetrics.createTimingMetric(sparkContext, desc) } +case class StateStoreInstanceMetric( + metricPrefix: String, + descPrefix: String, + partitionId: Option[Int] = None, Review Comment: These metrics during initialization don't have a partition ID assigned to it [in RocksDB](https://github.com/apache/spark/pull/49816/files#diff-76a55d7a6f0b91a19366e01c919c615a4d13afc1c1c37b017afa9df1c1705218R846) and only get a partition ID assigned at a later point. Would a placeholder like -1 be better or did you have something else in mind? -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org