falcon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaikid...@apache.org
Subject git commit: FALCON-352 old properties not removed on refresh of runtime properties. Contributed by Shaik Idris
Date Thu, 27 Mar 2014 08:17:07 GMT
Repository: incubator-falcon
Updated Branches:
  refs/heads/master b3e927536 -> f7284f8b0


FALCON-352 old properties not removed on refresh of runtime properties. Contributed by Shaik
Idris


Project: http://git-wip-us.apache.org/repos/asf/incubator-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-falcon/commit/f7284f8b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-falcon/tree/f7284f8b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-falcon/diff/f7284f8b

Branch: refs/heads/master
Commit: f7284f8b0512249562203c8a6b83d8676300c849
Parents: b3e9275
Author: shaikidris <psychidris@gmail.com>
Authored: Thu Mar 27 13:46:51 2014 +0530
Committer: shaikidris <psychidris@gmail.com>
Committed: Thu Mar 27 13:46:51 2014 +0530

----------------------------------------------------------------------
 CHANGES.txt                                                       | 2 ++
 .../src/main/java/org/apache/falcon/util/RuntimeProperties.java   | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/f7284f8b/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 4a0f72e..32c4d5b 100755
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -99,6 +99,8 @@ Trunk (Unreleased)
     FALCON-123 Improve build speeds in falcon. (Srikanth Sundarrajan via Shwetha GS)
 
   BUG FIXES
+    FALCON-352 old properties not removed on refresh of runtime properties. (Shaik Idris)
+
     FALCON-332 Oozie execution order is wrongly mapped in Falcon for LAST_ONLY. 
     (Shaik Idris)
 

http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/f7284f8b/common/src/main/java/org/apache/falcon/util/RuntimeProperties.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/falcon/util/RuntimeProperties.java b/common/src/main/java/org/apache/falcon/util/RuntimeProperties.java
index d4a2232..6270406 100644
--- a/common/src/main/java/org/apache/falcon/util/RuntimeProperties.java
+++ b/common/src/main/java/org/apache/falcon/util/RuntimeProperties.java
@@ -77,6 +77,7 @@ public final class RuntimeProperties extends ApplicationProperties {
             while (true) {
                 try {
                     try {
+                        applicationProperties.clear();
                         applicationProperties.loadProperties();
                         backOffDelay = REFRESH_DELAY;
                     } catch (FalconException e) {
@@ -85,7 +86,7 @@ public final class RuntimeProperties extends ApplicationProperties {
                     }
                     Thread.sleep(Math.min(MAX_ITER * REFRESH_DELAY, backOffDelay));
                 } catch (InterruptedException e) {
-                    LOG.info("Application is stopping. Aborting...");
+                    LOG.error("Application is stopping. Aborting...");
                     break;
                 }
             }


Mime
View raw message