-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This PR defines the Community version behaviour if a user tries to use the CPSubsystem. There are two cases - _without_ CP Config and _with_ CP Config: 1. default CP subsystem config (`cp-member-count`=0) ``` CPSubsystem cpSubsystem = instance.getCPSubsystem(); // don't throw an exception, returns a stub impl - for compatibility with hazelcast-spring IAtomicLong aLong = cpSubsystem.getAtomicLong("aLong@testGroup"); // throw Unsupported exception ``` 2. user-defined CP subsystem config (`cp-member-count`=3, 5, 7) Member failed to start with `IllegalStateException` This approach is compatible with the previous behaviour, if trying to enable CP persistence in the OS version GitOrigin-RevId: 2fe0e7d9c4d4872d450a143b772d4bbc5048f7b8
- Loading branch information
1 parent
a141cb3
commit 6972f9b
Showing
3 changed files
with
15 additions
and
11 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