Skip to content

Commit

Permalink
Remove tab space and change avg datatype to LONG (Signed-off-by: Jeff…
Browse files Browse the repository at this point in the history
…rey Liu [email protected])

Signed-off-by: CoderJeffrey <[email protected]>
  • Loading branch information
CoderJeffrey committed Jul 3, 2023
1 parent 6578073 commit 353c3a6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ static SearchBackPressureMetricsProcessor buildSearchBackPressureMetricsProcesso
currentWindowStartTime, searchBackPressureMetricsSnapShot);
return new SearchBackPressureMetricsProcessor(searchBackPressureMetricsSnapShot);
}

return new SearchBackPressureMetricsProcessor(
searchBackPressureSnapshotNavigableMap.get(currentWindowStartTime));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public SearchBackPressureMetricsSnapShot(Connection conn, Long windowStartTime)
AllMetrics.SearchBackPressureStatsValue
.SEARCHBP_SHARD_STATS_RESOURCE_HEAP_USAGE_ROLLINGAVG
.toString()),
Integer.class));
Long.class));
this.add(
DSL.field(
DSL.name(
Expand All @@ -106,7 +106,7 @@ public SearchBackPressureMetricsSnapShot(Connection conn, Long windowStartTime)
AllMetrics.SearchBackPressureStatsValue
.SEARCHBP_SHARD_STATS_RESOURCE_CPU_USAGE_CURRENTAVG
.toString()),
Integer.class));
Long.class));

// Task Stats Resource Heap / CPU Usage
this.add(
Expand All @@ -129,7 +129,7 @@ public SearchBackPressureMetricsSnapShot(Connection conn, Long windowStartTime)
AllMetrics.SearchBackPressureStatsValue
.SEARCHBP_TASK_STATS_RESOURCE_HEAP_USAGE_ROLLINGAVG
.toString()),
Integer.class));
Long.class));
this.add(
DSL.field(
DSL.name(
Expand All @@ -151,7 +151,7 @@ public SearchBackPressureMetricsSnapShot(Connection conn, Long windowStartTime)
AllMetrics.SearchBackPressureStatsValue
.SEARCHBP_TASK_STATS_RESOURCE_CPU_USAGE_CURRENTAVG
.toString()),
Integer.class));
Long.class));
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void testSearchBackPressureProcessEvent() throws Exception {
// SEARCHBP_SHARD_STATS_RESOURCE_HEAP_USAGE_ROLLINGAVG value is 3L according to the
// SERIALIZED_EVENT, should EQUAL
Assert.assertEquals(
3,
3L,
result.get(0)
.get(
AllMetrics.SearchBackPressureStatsValue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public void testReadSearchBackPressureMetricsSnapshot() throws Exception {
+ " should be "
+ String.valueOf(i),
i,
result.get(0).get(required_searchbp_dims.get((int) i)));
((Number) result.get(0).get(required_searchbp_dims.get(i))).intValue());
}
}

Expand Down

0 comments on commit 353c3a6

Please sign in to comment.