mirror of https://github.com/apache/nifi.git
NIFI-4394 Fixed CPU issue - gRPC
Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com> This closes #2163.
This commit is contained in:
parent
66479464be
commit
2ee21b9255
|
@ -242,5 +242,6 @@ public class ListenGRPC extends AbstractSessionFactoryProcessor {
|
|||
@Override
|
||||
public void onTrigger(ProcessContext context, ProcessSessionFactory sessionFactory) throws ProcessException {
|
||||
sessionFactoryReference.compareAndSet(null, sessionFactory);
|
||||
context.yield();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue