Re: Hive Source - SplitEnumeratorContext and its callAsync method - possible bug

2022-01-19 Thread Krzysztof Chmielewski
Ok, I think it was premature alert :) 1. We have a framework guarantee that start method will be called only once per SplitEnumerator instance, hence context.callAsync will be called only once 2. callAsync uses ScheduledExecutorService::scheduleAtFixedRate under the hood so If any execution of thi

Hive Source - SplitEnumeratorContext and its callAsync method - possible bug

2022-01-19 Thread Krzysztof Chmielewski
Hi, in documentation for SplitEnumeratorContext::callAsync method we read that: "(...) When this method is invoked multiple times, The Callables may be executed in a thread pool concurrently. It is important to make sure that the callable does not modify any shared state, especially the states th