Github user bbende commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1527#discussion_r102721436
  
    --- Diff: 
nifi-nar-bundles/nifi-kafka-bundle/nifi-kafka-0-10-processors/src/main/java/org/apache/nifi/processors/kafka/pubsub/ConsumerPool.java
 ---
    @@ -126,6 +128,25 @@ public ConsumerLease obtainConsumer(final 
ProcessSession session) {
             return lease;
         }
     
    +    public void retainConsumers() {
    +        pooledLeases.forEach(lease -> {
    --- End diff --
    
    Is there any issue if another thread calls obtainConsumer while 
retainConsumers is in the middle of looping over the consumers?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to