Skip to content

Commit

Permalink
Remove dead comment (Signed-off-by: Jeffrey Liu [email protected])
Browse files Browse the repository at this point in the history
Signed-off-by: CoderJeffrey <[email protected]>
  • Loading branch information
CoderJeffrey committed Aug 2, 2023
1 parent c751032 commit 1cf5fc6
Showing 1 changed file with 0 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ public SearchBackPressurePolicy(SearchBackPressureClusterRCA searchBackPressureC
*/
private void record(HotResourceSummary summary) {
if (HEAP_SEARCHBP_SHARD_SIGNALS.contains(summary.getResource())) {
// recordSearchBackPressureIssue(issue, true);
searchBackPressureIssue =
new SearchBackPressureShardIssue(
summary, searchBackPressureShardAlarmMonitorMap);
Expand All @@ -119,30 +118,6 @@ private void record(HotResourceSummary summary) {
}
}

// private void recordSearchBackPressureIssue(HotResourceSummary issue, boolean isShard) {
// // increase alarm for heap-related threshold
// if (issue.getMetaData() == SearchBackPressureRcaConfig.INCREASE_THRESHOLD_BY_JVM_STR) {
// if (isShard) {
// LOG.debug("recording increase-level issue for shard");
// searchBackPressureShardHeapIncreaseAlarm.recordIssue();
// } else {
// LOG.debug("recording increase-level issue for task");
// searchBackPressureTaskHeapIncreaseAlarm.recordIssue();
// }
// }

// // decrease alarm for heap-related threshold
// if (issue.getMetaData() == SearchBackPressureRcaConfig.DECREASE_THRESHOLD_BY_JVM_STR) {
// if (isShard) {
// LOG.debug("recording decrease-level issue for shard");
// searchBackPressureShardHeapDecreaseAlarm.recordIssue();
// } else {
// LOG.debug("recording decrease-level issue for task");
// searchBackPressureTaskHeapDecreaseAlarm.recordIssue();
// }
// }
// }

/** gathers and records all issues observed in the application */
private void recordIssues() {
LOG.debug("SearchBackPressurePolicy#recordIssues()");
Expand Down

0 comments on commit 1cf5fc6

Please sign in to comment.