-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Improve LocalStateMonitoring for tests. #66997
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve LocalStateMonitoring for tests. #66997
Conversation
Pinging @elastic/es-core-features (Team:Core/Features) |
Only targeting master branch now, to see how the CI runs the tests that are unmuted. If tests do fail then I will mute these tests again. I will backport the changes to |
dff2394
to
a62b2aa
Compare
…ons for ccr and enrich. The data stream plugin and dummy transport actions that are added to LocalStateMonitoring will allow for monitoring java integration tests to function properly without printing error messages that make debugging harder. For example the data stream plugin was added so that index templates with data streams can be added without failing constantly in the background and enrich stats dummy transport action so that the EnrichStatsCollector doesn't fail. Also unmutes tests that were muted via elastic#66586, to have another opportunity to look at logs without all the noise, perhaps all these errors contributed to the test failures.
a62b2aa
to
3aa7297
Compare
|
||
@Override | ||
public List<ActionHandler<? extends ActionRequest, ? extends ActionResponse>> getActions() { | ||
var actions = super.getActions(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional note: It is not possible to add the ccr / enrich plugins (like with data streams), because the monitoring gradle project can't rely on these gradle modules, because both ccr and enrich gradle projects already depend on the monitoring gradle project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks Martijn
Adds data-streams plugin and dummy stats actions for ccr and enrich to LocalStateMonitoring.
The data stream plugin and dummy transport actions that are added to LocalStateMonitoring
will allow for monitoring java integration tests to function properly without printing error
messages that make debugging harder. For example the data stream plugin was added so that
index templates with data streams can be added without failing constantly in the background and
enrich stats dummy transport action so that the EnrichStatsCollector doesn't fail.
Also unmutes tests that were muted via #66586, to have another opportunity to look at logs without all the noise,
perhaps all these errors contributed to the test failures.