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

Client near cache is not invalidated after IMap.executeOnKeys #15468

Closed
viliam-durina opened this issue Aug 20, 2019 · 0 comments · Fixed by #15477
Closed

Client near cache is not invalidated after IMap.executeOnKeys #15468

viliam-durina opened this issue Aug 20, 2019 · 0 comments · Fixed by #15477
Assignees
Labels
Milestone

Comments

@viliam-durina
Copy link
Contributor

This test fails:

    @Test
    public void executeOnKeysInvalidation() {
        HazelcastInstance server = hazelcastFactory.newHazelcastInstance();
        ClientConfig clientConfig = new ClientConfig().addNearCacheConfig(new NearCacheConfig("map"));
        HazelcastInstance client = hazelcastFactory.newHazelcastClient(clientConfig);
        IMap<String, String> map = client.getMap("map");
        map.put("key", "value1");
        map.get("key"); // put the key to near cache
        map.executeOnKeys(singleton("key"), entry -> {
            entry.setValue("value2");
            return null;
        });
        assertEquals("value2", map.get("key"));
    }
org.junit.ComparisonFailure: 
Expected :value2
Actual   :value1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants