You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by sr...@apache.org on 2018/03/20 20:03:53 UTC

storm git commit: [STORM-2989] LogCleaner should preserve current worker.log.metrics

Repository: storm
Updated Branches:
  refs/heads/1.x-branch 1349aa798 -> 059f7db6b


[STORM-2989] LogCleaner should preserve current worker.log.metrics


Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/059f7db6
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/059f7db6
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/059f7db6

Branch: refs/heads/1.x-branch
Commit: 059f7db6bcb359176b9929b4dcdf5bae64b901bf
Parents: 1349aa7
Author: Ethan Li <et...@gmail.com>
Authored: Wed Mar 7 09:03:44 2018 -0600
Committer: Stig Rohde Døssing <sr...@apache.org>
Committed: Tue Mar 20 21:02:40 2018 +0100

----------------------------------------------------------------------
 storm-core/src/clj/org/apache/storm/daemon/logviewer.clj | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/storm/blob/059f7db6/storm-core/src/clj/org/apache/storm/daemon/logviewer.clj
----------------------------------------------------------------------
diff --git a/storm-core/src/clj/org/apache/storm/daemon/logviewer.clj b/storm-core/src/clj/org/apache/storm/daemon/logviewer.clj
index 17bea01..d04e69f 100644
--- a/storm-core/src/clj/org/apache/storm/daemon/logviewer.clj
+++ b/storm-core/src/clj/org/apache/storm/daemon/logviewer.clj
@@ -204,7 +204,7 @@
             (into [] (DirectoryCleaner/getFilesForDir port-dir)))))
 
 (defn is-active-log [^File file]
-  (re-find #"\.(log|err|out|current|yaml|pid)$" (.getName file)))
+  (re-find #"\.(log|err|out|current|yaml|pid|metrics)$" (.getName file)))
 
 (defn sum-file-size
   "Given a sequence of Files, sum their sizes."