Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
If a Processor calls `ProcessSession.adjustCounter` and passes `false` for the `immediate` argument, the adjustment for the counter should be maintained by the ProcessSession. Then, when (if) the session is committed, the counter should actually be updated. However, if the Processor never interacts with any FlowFiles (never calls `get()` or `create()`), then the counter never gets updated.
This appears to be due to the fact that in the `checkpoint` method, `StandardProcessSession` checks if `records.isEmpty()` and if so returns. In such a case, it needs to first ensure that it transfers the counters to the checkpoint before returning.
Attachments
Issue Links
- relates to
-
NIFI-6800 StandardProcessSession error - hashmap counter overwritten in highThroughputSession
- Resolved
- links to