ohnoitsyou commented on code in PR #11945:
URL: https://github.com/apache/nifi/pull/11945#discussion_r4673628955
##########
nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ControlRate.java:
##########
@@ -424,10 +481,10 @@ private void clearExpiredThrottles(final ProcessContext
context) {
// Throttle ourselves to see if we should actually clear old throttles
if (lastClearTime < throttleExpirationMillis) {
if (lastThrottleClearTime.compareAndSet(lastClearTime,
getCurrentTimeMillis())) {
- if (dataThrottleRequired()) {
+ if (configuration.dataThrottleRequired) {
Review Comment:
Got it in today, verified that if the old code is still in place, the new
tests detect it properly. Put in correct clear logic and test pass.
##########
nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ControlRate.java:
##########
@@ -424,10 +481,10 @@ private void clearExpiredThrottles(final ProcessContext
context) {
// Throttle ourselves to see if we should actually clear old throttles
if (lastClearTime < throttleExpirationMillis) {
if (lastThrottleClearTime.compareAndSet(lastClearTime,
getCurrentTimeMillis())) {
- if (dataThrottleRequired()) {
+ if (configuration.dataThrottleRequired) {
Review Comment:
Got it in today. Verified that if the old code is still in place, the new
tests detect it properly. Put in correct clear logic and test pass.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]