Map with Near Cache causes get_all operations to fail with exception.
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- python
- Lĩnh vực
- distributed-systems
Hướng nghiên cứu
Bắt đầu bằng cách chạy bản tái hiện Python được cung cấp với Hazelcast Python Client, cả khi có và không có Near Cache, tập trung vào get_all(keys) và ngoại lệ chuyển đổi dictionary được báo cáo. Truy vết đường đi Near Cache được get_all sử dụng và so sánh nó với thao tác map không được cache. Hoàn thành nghĩa là get_all chạy thành công cho map Near Cache mà không có ngoại lệ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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)
- Ngôn ngữ chính
- Python
- Star
- 115
- Fork
- 78
- Merge trung bình
- 2 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của hazelcast/hazelcast-python-client
-
Type: Test-Failure
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Type: Test-Failure
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
-
asyncio Type: Test-Failure
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
-
asyncio to-jira Type: Test-Failure
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
hazelcast/hazelcast-python-client#761 · 1 bình luận ·
-
asyncio to-jira Type: Test-Failure
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
hazelcast/hazelcast-python-client#760 · 1 bình luận ·
Tất cả issue của hazelcast/hazelcast-python-client
Issue tương tự
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
aws-samples/sample-spec-driven-presentation-maker#648 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
firestore: enable live window.yaml pipeline system tests once add_window_fields is in productionĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 64/100
googleapis/google-cloud-python#19115 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Feyisara2108/stellargive#1377 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CRS WKT default to WKT2Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày