Skip to content

Commit

Permalink
0003811: Router exception can expire gaps that contain data
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Nov 30, 2018
1 parent 89ac93f commit ece2e82
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -463,7 +463,7 @@ protected int routeDataForEachChannel() {
if (nodeChannel.isEnabled() && (readyChannels == null || readyChannels.contains(nodeChannel.getChannelId()))) {
processInfo.setCurrentChannelId(nodeChannel.getChannelId());
dataCount += routeDataForChannel(processInfo, nodeChannel, sourceNode);
} else {
} else if (!nodeChannel.isEnabled()) {
gapDetector.setIsAllDataRead(false);
if (log.isDebugEnabled() && !nodeChannel.isEnabled()) {
log.debug(
Expand Down Expand Up @@ -728,6 +728,8 @@ protected int routeDataForChannel(ProcessInfo processInfo, final NodeChannel nod
engine.getStatisticManager().setDataUnRouted(channelId, dataLeftToRoute);
}
}
} else {
gapDetector.setIsAllDataRead(false);
}
} catch (Exception e) {
if (context != null) {
Expand Down

0 comments on commit ece2e82

Please sign in to comment.