mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-27 23:49:13 +00:00
Identify the operation type in rejected exception (#60138)
Currently, we do not categorize the operation type in the rejection exception messsage when we reject an indexing operation for indexing memory limits. This commit fixes this to ensure that it is identified as coordinating, primary, or replica.
This commit is contained in:
parent
dbd7e7793a
commit
df0f68da23
@ -68,7 +68,7 @@ public class IndexingPressure {
|
||||
"coordinating_and_primary_bytes=" + bytesWithoutOperation + ", " +
|
||||
"replica_bytes=" + replicaWriteBytes + ", " +
|
||||
"all_bytes=" + totalBytesWithoutOperation + ", " +
|
||||
"operation_bytes=" + bytes + ", " +
|
||||
"coordinating_operation_bytes=" + bytes + ", " +
|
||||
"max_coordinating_and_primary_bytes=" + primaryAndCoordinatingLimits + "]", false);
|
||||
}
|
||||
currentCoordinatingBytes.getAndAdd(bytes);
|
||||
@ -99,7 +99,7 @@ public class IndexingPressure {
|
||||
"coordinating_and_primary_bytes=" + bytesWithoutOperation + ", " +
|
||||
"replica_bytes=" + replicaWriteBytes + ", " +
|
||||
"all_bytes=" + totalBytesWithoutOperation + ", " +
|
||||
"operation_bytes=" + bytes + ", " +
|
||||
"primary_operation_bytes=" + bytes + ", " +
|
||||
"max_coordinating_and_primary_bytes=" + primaryAndCoordinatingLimits + "]", false);
|
||||
}
|
||||
currentPrimaryBytes.getAndAdd(bytes);
|
||||
|
Loading…
x
Reference in New Issue
Block a user