[API-2275] Flaky test: map_nearcache_test.MapTest.test_invalidate_single_key

オープン
#725 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
testing

調査の方向性

tests/integration/backward_compatible/proxy/map_nearcache_test.py から始め、特に MapTest.test_invalidate_single_key を確認し、tests/base.py の assertTrueEventually をレビューしてください。issue にリンクされている Hz 5.3.8 用の Compatibility-Suite を使って失敗を再現してください。テストが near-cache のサイズが 10 から 9 に変化したことを確実に確認できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

to-jira Type: Test-Failure

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) ============
主要言語
Python
スター
115
フォーク
78
平均マージ
2日 23時間
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

hazelcast/hazelcast-python-client のほかの issue

hazelcast/hazelcast-python-client の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。