Skip to content

Commit

Permalink
SOLR-16954: Fix test failure in UPDATE circuit breaker (apache#1896)
Browse files Browse the repository at this point in the history
(cherry picked from commit aeea7bc)
  • Loading branch information
janhoy authored and Justin Sweeney committed Apr 26, 2024
1 parent c007451 commit 29fed7c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public String getDebugInfo() {

@Override
public String getErrorMessage() {
return "CPU Circuit Breaker triggered as seen CPU usage is above allowed threshold."
return "CPU Circuit Breaker triggered as seen CPU usage is above allowed threshold. "
+ "Seen CPU usage "
+ seenCPUUsage.get()
+ " and allocated threshold "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public String getDebugInfo() {

@Override
public String getErrorMessage() {
return "Memory Circuit Breaker triggered as JVM heap usage values are greater than allocated threshold."
return "Memory Circuit Breaker triggered as JVM heap usage values are greater than allocated threshold. "
+ "Seen JVM heap memory usage "
+ seenMemory.get()
+ " and allocated threshold "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,19 @@
</query>

<circuitBreaker class="solr.MemoryCircuitBreaker">
<int name="threshold">75</int>
<double name="threshold">99</double>
<arr name="requestTypes">
<str>update</str>
</arr>
</circuitBreaker>

<circuitBreaker class="solr.MemoryCircuitBreaker">
<double name="threshold">80</double>
<!-- Default is query
<arr name="requestTypes">
<str>query</str>
</arr>
-->
</circuitBreaker>

<circuitBreaker class="solr.CPUCircuitBreaker">
Expand Down

0 comments on commit 29fed7c

Please sign in to comment.