forked from apache/geode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GEODE-2954 Old client gets null memberID in cache listener
I've added a new test that demonstrates that a new-version server sends an EventID to a client that the client is unable to deserialize completely. It gets an error when deserializing its member ID, causing cache listeners to get a null when requesting the ID of the member that effected the change. The fix is to reserialize the member ID in EventID.toData if the destination stream is for an older version, such as a 1.1.0 client. This ensures the proper on-wire format is used for that version of Geode. I've also bumped up the version ordinal for 1.2 since version 59 is marked as unusable in Version.java. I've changed the Banner to show the version ordinal because the other version information in the banner isn't completely trustworthy. It looks for a GemFireVersion.properties file on the classpath to get this information and so it may not get it from the Geode jar file as expected.
- Loading branch information
1 parent
096c22d
commit e79d27d
Showing
7 changed files
with
215 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.