Skip to content

Commit 01d82c8

Browse files
committed
Remove Resampler and its tests
1 parent 5bdf543 commit 01d82c8

File tree

3 files changed

+2
-256
lines changed

3 files changed

+2
-256
lines changed

x-pack/plugin/profiling/src/main/java/org/elasticsearch/xpack/profiling/action/GetStackTracesRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,8 @@ public boolean equals(Object o) {
398398
public int hashCode() {
399399
// The object representation of `query` may use Lucene's ByteRef to represent values. This class' hashCode implementation
400400
// uses StringUtils.GOOD_FAST_HASH_SEED which is reinitialized for each JVM. This means that hashcode is consistent *within*
401-
// a JVM but will not be consistent across the cluster. As we use hashCode e.g. to initialize the random number generator in
402-
// Resampler to produce a consistent downsampling results, relying on the default hashCode implementation of `query` will
401+
// a JVM but will not be consistent across the cluster. As we use hashCode to initialize random number generators
402+
// to produce consistent downsampling results, relying on the default hashCode implementation of `query` will
403403
// produce consistent results per node but not across the cluster. To avoid this, we produce the hashCode based on the
404404
// string representation instead, which will produce consistent results for the entire cluster and across node restarts.
405405
return Objects.hash(Objects.toString(query, "null"), sampleSize, Arrays.hashCode(indices), stackTraceIdsField);

x-pack/plugin/profiling/src/main/java/org/elasticsearch/xpack/profiling/action/Resampler.java

Lines changed: 0 additions & 56 deletions
This file was deleted.

x-pack/plugin/profiling/src/test/java/org/elasticsearch/xpack/profiling/action/ResamplerTests.java

Lines changed: 0 additions & 198 deletions
This file was deleted.

0 commit comments

Comments
 (0)