I had to do a major refactor of how interceptors close, especially because they were resetting the MQ_TIME_BASED_FLUSHER_THREAD when the ConsumerAPI was instantiated, causing the doc inserter to wait forever to be safe to stop.
I changed the mechanism to use sets of interceptor_ids instead of counters, which is more robust.
I had to do a major refactor of how interceptors close, especially because they were resetting the MQ_TIME_BASED_FLUSHER_THREAD when the ConsumerAPI was instantiated, causing the doc inserter to wait forever to be safe to stop.
I changed the mechanism to use sets of interceptor_ids instead of counters, which is more robust.