mirror of https://github.com/apache/nifi.git
Merge branch 'NIFI-1208'
This commit is contained in:
commit
4281a51c83
|
@ -238,8 +238,9 @@ public class ListenSyslog extends AbstractSyslogProcessor {
|
|||
initialEvent = syslogEvents.poll();
|
||||
}
|
||||
|
||||
// if nothing in either queue then just return
|
||||
// if nothing in either queue then yield and return
|
||||
if (initialEvent == null) {
|
||||
context.yield();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -260,6 +260,7 @@ public class PutSyslog extends AbstractSyslogProcessor {
|
|||
final List<FlowFile> flowFiles = session.get(batchSize);
|
||||
if (flowFiles == null || flowFiles.isEmpty()) {
|
||||
pruneIdleSenders(context.getProperty(IDLE_EXPIRATION).asTimePeriod(TimeUnit.MILLISECONDS).longValue());
|
||||
context.yield();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue