Skip to content

[8.0] [ML] Fix typo (#82313) #82317

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

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void testNotCreatedWhenNoOtherMlIndices() {
public void testCreatedWhenAfterOtherMlIndex() throws Exception {
// Creating a document in the .ml-notifications-000002 index should cause .ml-annotations
// to be created, as it should get created as soon as any other ML index exists
createAnnotation();
createNotification();

assertBusy(() -> {
assertTrue(annotationsIndexExists(AnnotationIndex.LATEST_INDEX_NAME));
Expand All @@ -76,7 +76,7 @@ public void testCreatedWhenAfterOtherMlIndex() throws Exception {
public void testReindexing() throws Exception {
// Creating a document in the .ml-notifications-000002 index should cause .ml-annotations
// to be created, as it should get created as soon as any other ML index exists
createAnnotation();
createNotification();

assertBusy(() -> {
assertTrue(annotationsIndexExists(AnnotationIndex.LATEST_INDEX_NAME));
Expand Down Expand Up @@ -118,7 +118,7 @@ public void testReindexing() throws Exception {
public void testReindexingWithLostAliases() throws Exception {
// Creating a document in the .ml-notifications-000002 index should cause .ml-annotations
// to be created, as it should get created as soon as any other ML index exists
createAnnotation();
createNotification();

assertBusy(() -> {
assertTrue(annotationsIndexExists(AnnotationIndex.LATEST_INDEX_NAME));
Expand Down Expand Up @@ -206,7 +206,7 @@ public void testNotCreatedWhenAfterOtherMlIndexAndUpgradeInProgress() throws Exc
try {
// Creating a document in the .ml-notifications-000002 index would normally cause .ml-annotations
// to be created, but in this case it shouldn't as we're doing an upgrade
createAnnotation();
createNotification();

assertBusy(() -> {
try {
Expand Down Expand Up @@ -293,7 +293,7 @@ private void createReindexedIndex(String reindexedIndexName) {
// no point in this test as there's nothing in the old index.
}

private void createAnnotation() {
private void createNotification() {
AnomalyDetectionAuditor auditor = new AnomalyDetectionAuditor(client(), getInstanceFromNode(ClusterService.class));
auditor.info("whatever", "blah");
}
Expand Down