Skip to content

Commit 8621e07

Browse files
rockdabootelasticsearchmachine
authored andcommitted
[Profiling] Ignore events count value (elastic#130293)
* [Profiling] Ignore events count value * [CI] Auto commit changes from spotless --------- Co-authored-by: elasticsearchmachine <[email protected]>
1 parent f430415 commit 8621e07

File tree

4 files changed

+56
-59
lines changed

4 files changed

+56
-59
lines changed

x-pack/plugin/profiling/src/internalClusterTest/java/org/elasticsearch/xpack/profiling/action/GetFlameGraphActionIT.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ public void testGetStackTracesUnfiltered() throws Exception {
2828
// only spot-check top level properties - detailed tests are done in unit tests
2929
assertEquals(1008, response.getSize());
3030
assertEquals(1.0d, response.getSamplingRate(), 0.001d);
31-
assertEquals(46, response.getSelfCPU());
32-
assertEquals(1995, response.getTotalCPU());
33-
assertEquals(46, response.getTotalSamples());
31+
assertEquals(45, response.getSelfCPU());
32+
assertEquals(1974, response.getTotalCPU());
33+
assertEquals(45, response.getTotalSamples());
3434

3535
// The root node's values are the same as the top-level values.
3636
assertEquals("", response.getFileIds().get(0));

x-pack/plugin/profiling/src/internalClusterTest/java/org/elasticsearch/xpack/profiling/action/GetStackTracesActionIT.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public void testGetStackTracesUnfiltered() throws Exception {
3333
);
3434
request.setAdjustSampleCount(true);
3535
GetStackTracesResponse response = client().execute(GetStackTracesAction.INSTANCE, request).get();
36-
assertEquals(46, response.getTotalSamples());
36+
assertEquals(45, response.getTotalSamples());
3737
assertEquals(1821, response.getTotalFrames());
3838

3939
assertNotNull(response.getStackTraceEvents());
@@ -47,7 +47,7 @@ public void testGetStackTracesUnfiltered() throws Exception {
4747
"L7kj7UvlKbT-vN73el4faQ",
4848
TransportGetStackTracesAction.DEFAULT_SAMPLING_FREQUENCY
4949
);
50-
assertEquals(3L, response.getStackTraceEvents().get(traceEventID).count);
50+
assertEquals(2L, response.getStackTraceEvents().get(traceEventID).count);
5151

5252
assertNotNull(response.getStackTraces());
5353
// just do a high-level spot check. Decoding is tested in unit-tests
@@ -85,7 +85,7 @@ public void testGetStackTracesGroupedByServiceName() throws Exception {
8585
);
8686
request.setAdjustSampleCount(true);
8787
GetStackTracesResponse response = client().execute(GetStackTracesAction.INSTANCE, request).get();
88-
assertEquals(46, response.getTotalSamples());
88+
assertEquals(45, response.getTotalSamples());
8989
assertEquals(1821, response.getTotalFrames());
9090

9191
assertNotNull(response.getStackTraceEvents());
@@ -97,7 +97,7 @@ public void testGetStackTracesGroupedByServiceName() throws Exception {
9797
"L7kj7UvlKbT-vN73el4faQ",
9898
TransportGetStackTracesAction.DEFAULT_SAMPLING_FREQUENCY
9999
);
100-
assertEquals(3L, response.getStackTraceEvents().get(traceEventID).count);
100+
assertEquals(2L, response.getStackTraceEvents().get(traceEventID).count);
101101
assertEquals(Long.valueOf(2L), response.getStackTraceEvents().get(traceEventID).subGroups.getCount("basket"));
102102

103103
assertNotNull(response.getStackTraces());

0 commit comments

Comments
 (0)