apache / apache/beam

Move org.apache.beam.runners.spark.aggregators.metrics.sink.InMemoryMetrics class out of test jar

Open
#20,799 0 comments 0 reactions 0 assignees View on GitHub
bug P3 runners spark
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

Currently,  org.apache.beam.runners.spark.aggregators.metrics.sink.InMemoryMetrics class is in test jar, but InMemoryMetrics is needed when doing unit tests and local runs for spark runner. So move it out of test jar to support unit tests and local runs.

Imported from Jira [BEAM-11775](https://issues.apache.org/jira/browse/BEAM-11775). Original Jira may contain additional context.
Reported by: YC.

Contributor guide

Open the contributing guide

Research direction

Locate org.apache.beam.runners.spark.aggregators.metrics.sink.InMemoryMetrics and inspect how the Spark runner packages it in the test jar. Trace the unit-test and local-run references, then verify that the class is available from the appropriate non-test artifact and remains usable in both contexts.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spark
Domain
data, distributed-systems
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.