Skip to content
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

[ML] Improve DF analytics audits and logging #53179

Conversation

dimitris-athanasiou
Copy link
Contributor

Adds audits for when the job starts reindexing, loading data,
analyzing, writing results. Also adds some info logging.

Adds audits for when the job starts reindexing, loading data,
analyzing, writing results. Also adds some info logging.
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (:ml)

Copy link
Contributor

@przemekwitek przemekwitek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -233,6 +233,8 @@ protected static void assertThatAuditMessagesMatch(String configId, String... ex
// Since calls to write the AbstractAuditor are sent and forgot (async) we could have returned from the start,
// finished the job (as this is a very short analytics job), all without the audit being fully written.
assertBusy(() -> assertTrue(indexExists(NotificationsIndex.NOTIFICATIONS_INDEX)));
client().admin().indices().prepareRefresh(".ml-notifications*").get();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed taking into account that fetchAllAuditMessages also issues refresh request?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good point. That comment got me confused. I'll remove.

@dimitris-athanasiou dimitris-athanasiou merged commit 51dfe7f into elastic:master Mar 6, 2020
@dimitris-athanasiou dimitris-athanasiou deleted the audit-df-analytics-progress-phase-changes branch March 6, 2020 10:19
dimitris-athanasiou added a commit that referenced this pull request Mar 6, 2020
Adds audits for when the job starts reindexing, loading data,
analyzing, writing results. Also adds some info logging.

Backport of #53179
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants