Showing
1 changed file
with
1 additions
and
0 deletions
@@ -142,6 +142,7 @@ public class RemoteRuleEngineTransportService implements RuleEngineTransportServ | @@ -142,6 +142,7 @@ public class RemoteRuleEngineTransportService implements RuleEngineTransportServ | ||
142 | if (recordsCount > 0) { | 142 | if (recordsCount > 0) { |
143 | while (!blockingPollRateBucket.tryConsume(recordsCount, TimeUnit.SECONDS.toNanos(5))) { | 143 | while (!blockingPollRateBucket.tryConsume(recordsCount, TimeUnit.SECONDS.toNanos(5))) { |
144 | log.info("Rule Engine consumer is busy. Required tokens: [{}]. Available tokens: [{}].", recordsCount, pollRateBucket.getAvailableTokens()); | 144 | log.info("Rule Engine consumer is busy. Required tokens: [{}]. Available tokens: [{}].", recordsCount, pollRateBucket.getAvailableTokens()); |
145 | + Thread.sleep(TimeUnit.SECONDS.toMillis(1)); | ||
145 | } | 146 | } |
146 | log.trace("Processing {} records", recordsCount); | 147 | log.trace("Processing {} records", recordsCount); |
147 | } | 148 | } |