Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hazelcast Client dynamic configuration issue #16927

Closed
ilkerkorkut opened this issue Apr 24, 2020 · 1 comment
Closed

Hazelcast Client dynamic configuration issue #16927

ilkerkorkut opened this issue Apr 24, 2020 · 1 comment
Assignees
Labels
Source: Internal PR or issue was opened by an employee Team: Client Type: Defect
Milestone

Comments

@ilkerkorkut
Copy link

ilkerkorkut commented Apr 24, 2020

Describe the bug
Hazelcast client is acting like overriding map configuration dynamically. but actually it's not overriding the map configuration dynamically. The client didn't throw any exception.

Expected behavior
Client has to throw com.hazelcast.config.InvalidConfigurationException: Cannot add a new dynamic configuration which is the current member side behavior

To Reproduce
Hazelcast 3.11.1 and upper

hazelcast.xml

<map name="mymap">
        <in-memory-format>BINARY</in-memory-format>
        <statistics-enabled>true</statistics-enabled>
        <optimize-queries>false</optimize-queries>
        <cache-deserialized-values>INDEX-ONLY</cache-deserialized-values>
        <backup-count>1</backup-count>
        <async-backup-count>0</async-backup-count>
        <time-to-live-seconds>1800</time-to-live-seconds>
        <max-idle-seconds>0</max-idle-seconds>
        <eviction-policy>LRU</eviction-policy>
        <map-eviction-policy-class-name>com.hazelcast.map.eviction.LRUEvictionPolicy</map-eviction-policy-class-name>
        <max-size policy="PER_NODE">5000</max-size>
        <eviction-percentage>25</eviction-percentage>
        <min-eviction-check-millis>100</min-eviction-check-millis>
        <merge-policy batch-size="100">PutIfAbsentMergePolicy</merge-policy>
        <read-backup-data>false</read-backup-data>
        <metadata-policy>CREATE_ON_UPDATE</metadata-policy>
        <hot-restart enabled="false">
            <fsync>false</fsync>
        </hot-restart>
        <map-store enabled="false" initial-mode="LAZY">
            <write-delay-seconds>0</write-delay-seconds>
            <write-batch-size>1</write-batch-size>
        </map-store>
</map>

Client-side code:

public static void main(String[] args) {
        HazelcastInstance hz = HazelcastClient.newHazelcastClient();

        MapConfig mapConfig = new MapConfig();
        mapConfig.setName("mymap");
        mapConfig.setMaxIdleSeconds(1900);
        mapConfig.setEvictionPolicy(EvictionPolicy.LFU);
        hz.getConfig().addMapConfig(mapConfig);
}
@sancar sancar added this to the 3.12.8 milestone Apr 24, 2020
@mmedenjak mmedenjak added the Source: Internal PR or issue was opened by an employee label Apr 26, 2020
@sancar sancar modified the milestones: 3.12.8, 3.12.9 Jun 19, 2020
@sancar sancar self-assigned this Jun 24, 2020
@sancar
Copy link
Contributor

sancar commented Jun 29, 2020

Closed via #17125

@sancar sancar closed this as completed Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Source: Internal PR or issue was opened by an employee Team: Client Type: Defect
Projects
None yet
Development

No branches or pull requests

3 participants