mirror of
https://github.com/apache/nifi.git
synced 2025-02-17 23:47:08 +00:00
Fixing check-style violation in StandardFlowFileQueue
This commit is contained in:
parent
98f5a1ab77
commit
ee87f33ce7
@ -1233,8 +1233,8 @@ public final class StandardFlowFileQueue implements FlowFileQueue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void logIfNegative(final FlowFileQueueSize original, final FlowFileQueueSize newSize, final String counterName) {
|
private void logIfNegative(final FlowFileQueueSize original, final FlowFileQueueSize newSize, final String counterName) {
|
||||||
if (newSize.activeQueueBytes < 0 || newSize.activeQueueCount < 0 || newSize.swappedBytes < 0 || newSize.swappedCount < 0 ||
|
if (newSize.activeQueueBytes < 0 || newSize.activeQueueCount < 0 || newSize.swappedBytes < 0 || newSize.swappedCount < 0
|
||||||
newSize.unacknowledgedBytes < 0 || newSize.unacknowledgedCount < 0) {
|
|| newSize.unacknowledgedBytes < 0 || newSize.unacknowledgedCount < 0) {
|
||||||
|
|
||||||
logger.error("Updated Size of Queue " + counterName + " from " + original + " to " + newSize, new RuntimeException("Cannot create negative queue size"));
|
logger.error("Updated Size of Queue " + counterName + " from " + original + " to " + newSize, new RuntimeException("Cannot create negative queue size"));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user