You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by ja...@apache.org on 2018/01/16 19:12:05 UTC

[geode] branch develop updated: GEODE-4144: Do not client side event id if port has not been set(#1277)

This is an automated email from the ASF dual-hosted git repository.

jasonhuynh pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new 6ceeb12  GEODE-4144: Do not client side event id if port has not been set(#1277)
6ceeb12 is described below

commit 6ceeb1242ec8a78d8c511ab84050d84bbeb20594
Author: Jason Huynh <hu...@gmail.com>
AuthorDate: Tue Jan 16 11:12:02 2018 -0800

    GEODE-4144: Do not client side event id if port has not been set(#1277)
    
      * fixes race condition where internal region puts occur before client connection is established
      * If port is 0, do not cache the system variable, in turn does not cache the client event id
---
 geode-core/src/main/java/org/apache/geode/internal/cache/EventID.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/EventID.java b/geode-core/src/main/java/org/apache/geode/internal/cache/EventID.java
index 9208963..cb9da65 100755
--- a/geode-core/src/main/java/org/apache/geode/internal/cache/EventID.java
+++ b/geode-core/src/main/java/org/apache/geode/internal/cache/EventID.java
@@ -565,7 +565,9 @@ public class EventID implements DataSerializableFixedID, Serializable, Externali
                 .toLocalizedString(),
             ioe);
       }
-      EventID.system = sys;
+      if (((InternalDistributedMember) EventID.systemMemberId).getPort() != 0) {
+        EventID.system = sys;
+      }
     }
     return EventID.client_side_event_identity;
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@geode.apache.org" <co...@geode.apache.org>'].