Skip to content

Flaky near cache test [API-2275] #725

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

Open
yuce opened this issue May 15, 2025 · 1 comment
Open

Flaky near cache test [API-2275] #725

yuce opened this issue May 15, 2025 · 1 comment
Labels
to-jira Use to create a placeholder Jira issue in Jira APIs Project Type: Test-Failure

Comments

@yuce
Copy link
Contributor

yuce commented May 15, 2025

This test failed in the compatibility suite for Hz 5.3.8:
https://github.com/hazelcast/client-compatibility-suites/actions/runs/15042583719/job/42277600444

=================================== FAILURES ===================================
______________________ MapTest.test_invalidate_single_key ______________________

self = <tests.integration.backward_compatible.proxy.map_nearcache_test.MapTest testMethod=test_invalidate_single_key>

    def test_invalidate_single_key(self):
        self.fill_map_and_near_cache(10)
        initial_cache_size = len(self.map._wrapped._near_cache)
        script = """map = instance_0.getMap("{}");map.remove("key-5")""".format(self.map.name)
        response = self.rc.executeOnController(self.cluster.id, script, Lang.PYTHON)
        self.assertTrue(response.success)
        self.assertEqual(initial_cache_size, 10)
    
        def assertion():
            self.assertEqual(len(self.map._wrapped._near_cache), 9)
    
>       self.assertTrueEventually(assertion)

tests/integration/backward_compatible/proxy/map_nearcache_test.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/base.py:76: in assertTrueEventually
    raise last_exception
tests/base.py:67: in assertTrueEventually
    assertion()
tests/integration/backward_compatible/proxy/map_nearcache_test.py:75: in assertion
    self.assertEqual(len(self.map._wrapped._near_cache), 9)
E   AssertionError: 10 != 9
=========================== short test summary info ============================
FAILED tests/integration/backward_compatible/proxy/map_nearcache_test.py::MapTest::test_invalidate_single_key
============ 1 failed, [142](https://github.com/hazelcast/client-compatibility-suites/actions/runs/15042583719/job/42277600444#step:15:143)1 passed, 32 skipped in 446.89s (0:07:26) ============
@yuce yuce added Type: Test-Failure to-jira Use to create a placeholder Jira issue in Jira APIs Project labels May 15, 2025
Copy link

github-actions bot commented May 15, 2025

Internal Jira issue: API-2275

@github-actions github-actions bot changed the title Flaky near cache test Flaky near cache test [API-2275] May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to-jira Use to create a placeholder Jira issue in Jira APIs Project Type: Test-Failure
Projects
None yet
Development

No branches or pull requests

1 participant