geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstew...@apache.org
Subject geode git commit: GEODE-2414: ExportLogsCacheWriter ignores events intended for other locators
Date Thu, 16 Feb 2017 23:05:31 GMT
Repository: geode
Updated Branches:
  refs/heads/feature/GEODE-2267 d690012f8 -> c2fdea18a


GEODE-2414: ExportLogsCacheWriter ignores events intended for other locators


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

Branch: refs/heads/feature/GEODE-2267
Commit: c2fdea18af584197b057c87e1757e5e2419b9bdc
Parents: d690012
Author: Jared Stewart <jstewart@pivotal.io>
Authored: Thu Feb 16 15:05:26 2017 -0800
Committer: Jared Stewart <jstewart@pivotal.io>
Committed: Thu Feb 16 15:05:26 2017 -0800

----------------------------------------------------------------------
 .../geode/management/internal/cli/util/ExportLogsCacheWriter.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/c2fdea18/geode-core/src/main/java/org/apache/geode/management/internal/cli/util/ExportLogsCacheWriter.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/org/apache/geode/management/internal/cli/util/ExportLogsCacheWriter.java
b/geode-core/src/main/java/org/apache/geode/management/internal/cli/util/ExportLogsCacheWriter.java
index 5bff192..e5457d4 100644
--- a/geode-core/src/main/java/org/apache/geode/management/internal/cli/util/ExportLogsCacheWriter.java
+++ b/geode-core/src/main/java/org/apache/geode/management/internal/cli/util/ExportLogsCacheWriter.java
@@ -39,7 +39,8 @@ public class ExportLogsCacheWriter extends CacheWriterAdapter implements
Seriali
   @Override
   public void beforeCreate(EntryEvent event) throws CacheWriterException {
     if (currentOutputStream == null) {
-      throw new IllegalStateException("No file is open for writing.");
+      //If no OutputStream is open, then this file chunk is intended for a different locator
+      return;
     }
 
     try {


Mime
View raw message