Github user patricker commented on the issue:

    https://github.com/apache/nifi/pull/2194
  
    @ijokarumawak Your code for doing the record reader was very creative. but 
I don't think I'm interested in using that approach, it makes me feel kind of 
dirty...
    
    ```
            try {
                 // Wait for the next record.
                 consumingLatch.countDown();
                 readingLatch.await();
                 // Start consuming the record.
             } catch (InterruptedException e) {
                 logger.warn("Reading Excel sheet is interrupted at 
nextRecord() due to {}", e);
             } finally {
                 // Reset Latches.
                 consumingLatch = new CountDownLatch(1);
                 readingLatch = new CountDownLatch(1);
             }
    ```
    
    I'll work on the other items you mentioned.


---

Reply via email to