Flaky: map_nearcache_test.py::MapTest::test_invalidate_nonexist_key

Ouverte
#844 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
52/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
python
Domaine
testing

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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) =
Langage dominant
Python
Étoiles
115
Forks
78
Merge moyen
2 j 23 h
PR mergées (30 j)
2

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de hazelcast/hazelcast-python-client

Toutes les issues de hazelcast/hazelcast-python-client

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.