Skip to content

Commit

Permalink
add @transient to metric source lazy val
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Moskalenko <moskalenko.alexey@gmail.com>
  • Loading branch information
pyalex committed Apr 30, 2021
1 parent 6d5943c commit a71ed6a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ object BigTableSinkRelation {
(null, put)
}

@transient
lazy val metricSource: Option[BigTableSinkMetricSource] = {
if (SparkEnv.get.metricsSystem.getSourcesByName(BigTableSinkMetricSource.sourceName).isEmpty) {
SparkEnv.get.metricsSystem.registerSource(new BigTableSinkMetricSource)
Expand Down

0 comments on commit a71ed6a

Please sign in to comment.