Map with Near Cache causes get_all operations to fail with exception.
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- python
調査の方向性
まず、提供された Python の再現コードを Hazelcast Python Client に対して Near Cache ありと Near Cache なしで実行し、get_all(keys) と報告された辞書変換例外に注目します。get_all で使用される Near Cache のパスを追跡し、キャッシュされない map 操作と比較します。Near Cache の map で get_all が例外なしに正常完了すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
This code will replicate the issue.
Running the Hazelcast Python Client 5.5.0 driver, with a 3 node cluster running community 5.5.
Downgrading did not fix the issue.
Exception was cannot convert dictionary update sequence element #0 to a sequence
import time
import uuid
import hazelcast
from hazelcast.config import NearCacheConfig, InMemoryFormat
test_size = 10000
test_target_near_cache_config = NearCacheConfig()
test_target_near_cache_config.in_memory_format = InMemoryFormat.BINARY
test_target_near_cache_config.time_to_live = 30
test_target_near_cache_config.max_idle = 15
test_target_near_cache_config.eviction_max_size = test_size * 2
client = hazelcast.HazelcastClient(
cluster_name="hazelcast",
cluster_members=[...
],
near_caches={
"test-target-nc": test_target_near_cache_config
}
)
nc_map = client.get_map('test-target-nc')
uc_map = client.get_map('test-target-uc')
def readSingle(map, keys):
try:
startms = round(time.time() * 1000)
futures = []
for key in keys:
futures.append(map.get(key))
for future in futures:
future.result()
endms = round(time.time()* 1000)
print(f"total time: {endms - startms:0.2f}ms")
print(f"op time: {(endms - startms)/(len(keys)):0.2f}ms")
except Exception as e:
print("operation failed", e)
def readMulti(map, keys):
try:
startms = round(time.time() * 1000)
map.get_all(keys).result()
endms = round(time.time()* 1000)
print(f"total time: {endms - startms:0.2f}ms")
print(f"op time: {(endms - startms)/(len(keys)):0.2f}ms")
except Exception as e:
print("operation failed", e)
content = {}
for index in range(0, test_size):
id = uuid.uuid4()
value = uuid.uuid4()
content[id] = value
keys = list(content.keys())
nc_map.put_all(content)
uc_map.put_all(content)
print("Warm Near Cache")
futures = []
for key in keys:
futures.append(nc_map.get(key))
for future in futures:
future.result()
print('Read Single, No Cache')
readSingle(uc_map, keys)
print('Read Single, With Cache')
readSingle(nc_map, keys)
print('Read Multi, No Cache')
readMulti(uc_map, keys)
print('Read Multi, With Cache')
readMulti(nc_map, keys)
- 主要言語
- Python
- スター
- 115
- フォーク
- 78
- 平均マージ
- 2日 23時間
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hazelcast/hazelcast-python-client のほかの issue
-
Type: Test-Failure
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
Type: Test-Failure
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
-
asyncio Type: Test-Failure
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
-
asyncio to-jira Type: Test-Failure
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
hazelcast/hazelcast-python-client#761 · コメント 1 件 ·
-
asyncio to-jira Type: Test-Failure
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
hazelcast/hazelcast-python-client#760 · コメント 1 件 ·
hazelcast/hazelcast-python-client の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
marketcalls/openalgo#2472 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
marimo-team/marimo#11949 ·
メンテナーはふだん 1 日以内に返信
-
bug server-time v2
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
modelcontextprotocol/servers#5559 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
jxxghp/MoviePilot#7449 ·
メンテナーはふだん 1 日以内に返信
-
devops help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
guaardvark/guaardvark#421 ·
メンテナーはふだん 2 日以内に返信