Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -546,9 +546,6 @@ tests:
- class: org.elasticsearch.xpack.esql.qa.multi_node.GenerativeIT
method: test
issue: https://github.com/elastic/elasticsearch/issues/131154
- class: org.elasticsearch.xpack.esql.ccq.MultiClustersIT
method: testNotLikeListKeyword
issue: https://github.com/elastic/elasticsearch/issues/131155
- class: org.elasticsearch.index.engine.ThreadPoolMergeExecutorServiceDiskSpaceTests
method: testEnqueuedMergeTasksAreUnblockedWhenEstimatedMergeSizeChanges
issue: https://github.com/elastic/elasticsearch/issues/131165
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,6 @@ public static void setupEntitlementsForClass() {
TestEntitlementBootstrap.setActive(false == withoutEntitlements);
TestEntitlementBootstrap.setTriviallyAllowingTestCode(false == withEntitlementsOnTestCode);
if (entitledPackages != null) {
assert withEntitlementsOnTestCode == false : "Cannot use @WithEntitlementsOnTestCode together with @EntitledTestPackages";
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 change related?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No... probably a fat finger, let me fix it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think GitHub is not having a good day... I didn't change it, this PR did, so that change is already in main.
Updating the PR branch fixed the "problem"

assert entitledPackages.value().length > 0 : "No test packages specified in @EntitledTestPackages";
TestEntitlementBootstrap.setEntitledTestPackages(entitledPackages.value());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -629,10 +629,16 @@ public void testNotLikeListKeyword() throws Exception {
""", includeCCSMetadata);
var columns = List.of(Map.of("name", "c", "type", "long"), Map.of("name", "_index", "type", "keyword"));
Predicate<Doc> filter = d -> false == (d.color.contains("blue") || d.color.contains("red"));
var values = List.of(
List.of((int) remoteDocs.stream().filter(filter).count(), REMOTE_CLUSTER_NAME + ":" + remoteIndex),
List.of((int) localDocs.stream().filter(filter).count(), localIndex)
);

var values = new ArrayList<>();
int remoteCount = (int) remoteDocs.stream().filter(filter).count();
int localCount = (int) localDocs.stream().filter(filter).count();
if (remoteCount > 0) {
values.add(List.of(remoteCount, REMOTE_CLUSTER_NAME + ":" + remoteIndex));
}
if (localCount > 0) {
values.add(List.of(localCount, localIndex));
}
assertResultMapForLike(includeCCSMetadata, result, columns, values, false, true);
}

Expand Down