Flaky: map_nearcache_test.py::MapTest::test_invalidate_nonexist_key

Aperta
#844 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
testing

Direzione di ricerca

Start with tests/integration/backward_compatible/proxy/map_nearcache_test.py, especially MapTest.test_invalidate_nonexist_key and the reported assertion near line 90. Run that test in the compatibility suite and inspect how the near cache changes after the JavaScript map operations. Done means the test reliably preserves the expected cache size of 10 and the compatibility suite passes.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Type: Test-Failure

Test failure at compatibility test run: https://github.com/hazelcast/client-compatibility-suites/actions/runs/40719377083/job/122936352327

=================================== FAILURES ===================================
_____________________ MapTest.test_invalidate_nonexist_key _____________________

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

    def test_invalidate_nonexist_key(self):
        self.fill_map_and_near_cache(10)
        initial_cache_size = len(self.map._wrapped._near_cache)
        script = """
        var map = instance_0.getMap("%s");
        map.put("key-99","x");
        map.put("key-NonExist","x");
        map.remove("key-NonExist");""" % self.map.name
    
        response = self.rc.executeOnController(self.cluster.id, script, Lang.JAVASCRIPT)
        self.assertTrue(response.success)
>       self.assertEqual(initial_cache_size, 10)
E       AssertionError: 9 != 10

master/tests/integration/backward_compatible/proxy/map_nearcache_test.py:90: AssertionError
=============================== warnings summary ===============================
master/hazelcast/reactor.py:2
  /home/runner/work/client-compatibility-suites/client-compatibility-suites/master/hazelcast/reactor.py:2: DeprecationWarning: The asyncore module is deprecated and will be removed in Python 3.12. The recommended replacement is asyncio
    import asyncore

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED master/tests/integration/backward_compatible/proxy/map_nearcache_test.py::MapTest::test_invalidate_nonexist_key - AssertionError: 9 != 10
= 1 failed, 1254 passed, 20 skipped, 181 deselected, 1 warning in 180.05s (0:03:00) =
Lingua principale
Python
Stelle
115
Fork
78
Merge medio
2g 23h
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di hazelcast/hazelcast-python-client

Tutte le issue di hazelcast/hazelcast-python-client

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.