apache / apache/beam

Refactor load tests

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

Description

`make `LoadTest` parameterized instead of a base class.

Each subclass of `LoadTest` is really just the main `loadTest` function and really that function is about the same as writing a `PTransform`. If you eliminate subclassing you can have `LoadTest` own the pipeline setup with so it will never be possible to forget or mess up `readSourceFromOptions` and `ParDo.of(runtimeMonitor)`. It will be less repeat boilerplate.

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.