You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tez.apache.org by hi...@apache.org on 2014/03/21 22:16:33 UTC
git commit: TEZ-968. Fix flush mechanism when max unflushed events
count set to -1. (hitesh)
Repository: incubator-tez
Updated Branches:
refs/heads/master 674fd81a1 -> bd6fa6ee4
TEZ-968. Fix flush mechanism when max unflushed events count set to -1. (hitesh)
Project: http://git-wip-us.apache.org/repos/asf/incubator-tez/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tez/commit/bd6fa6ee
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tez/tree/bd6fa6ee
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tez/diff/bd6fa6ee
Branch: refs/heads/master
Commit: bd6fa6ee40ffe0989768808be7dcad15395149f0
Parents: 674fd81
Author: Hitesh Shah <hi...@apache.org>
Authored: Fri Mar 21 14:16:16 2014 -0700
Committer: Hitesh Shah <hi...@apache.org>
Committed: Fri Mar 21 14:16:16 2014 -0700
----------------------------------------------------------------------
.../java/org/apache/tez/dag/history/recovery/RecoveryService.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tez/blob/bd6fa6ee/tez-dag/src/main/java/org/apache/tez/dag/history/recovery/RecoveryService.java
----------------------------------------------------------------------
diff --git a/tez-dag/src/main/java/org/apache/tez/dag/history/recovery/RecoveryService.java b/tez-dag/src/main/java/org/apache/tez/dag/history/recovery/RecoveryService.java
index 1353151..110da65 100644
--- a/tez-dag/src/main/java/org/apache/tez/dag/history/recovery/RecoveryService.java
+++ b/tez-dag/src/main/java/org/apache/tez/dag/history/recovery/RecoveryService.java
@@ -333,7 +333,8 @@ public class RecoveryService extends AbstractService {
private void maybeFlush(FSDataOutputStream outputStream) throws IOException {
long currentTime = appContext.getClock().getTime();
boolean doFlush = false;
- if (unflushedEventsCount >= maxUnflushedEvents) {
+ if (maxUnflushedEvents >=0
+ && unflushedEventsCount >= maxUnflushedEvents) {
if (LOG.isDebugEnabled()) {
LOG.debug("Max unflushed events count reached. Flushing recovery data"
+ ", unflushedEventsCount=" + unflushedEventsCount