Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,6 @@ tests:
- class: org.elasticsearch.xpack.esql.qa.mixed.EsqlClientYamlIT
method: test {p0=esql/40_tsdb/error on rename timestamp}
issue: https://github.com/elastic/elasticsearch/issues/137259
- class: org.elasticsearch.xpack.esql.plan.physical.ShowExecSerializationTests
method: testConcurrentSerialization
issue: https://github.com/elastic/elasticsearch/issues/137338
- class: org.elasticsearch.readiness.ReadinessClusterIT
method: testReadinessDuringRestartsNormalOrder
issue: https://github.com/elastic/elasticsearch/issues/136955
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ public final void testConcurrentSerialization() throws InterruptedException, Exe
for (int r = 0; r < rounds; r++) {
assertSerialization(testInstance);
}
} catch (IOException e) {
throw new AssertionError("error serializing", e);
} catch (IOException | AssertionError e) {
throw new AssertionError("error serializing [" + testInstance + "]", e);
}
});
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,13 @@ private static ExponentialHistogram randomExponentialHistogram() {
ExponentialHistogramCircuitBreaker.noop(),
rawValues
);
/*
* hashcode mutates the histogram by doing some lazy work.
Copy link
Member Author

Choose a reason for hiding this comment

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

Here I mean it makes something lazily. I don't mean that we were lazy when we wrote it. It's a lot of code....

* That can change the value of the hashCode if you call it concurrently....
* This works around that by running it once up front. Jonas will have a
* look at this one soon.
*/
histo.hashCode();
return histo;
}

Expand Down