Skip to content

List Proxy for Asyncio Client#782

Open
yuce wants to merge 3 commits intohazelcast:masterfrom
yuce:asyncio-list
Open

List Proxy for Asyncio Client#782
yuce wants to merge 3 commits intohazelcast:masterfrom
yuce:asyncio-list

Conversation

@yuce
Copy link
Contributor

@yuce yuce commented Feb 23, 2026

Straightforward port of List to asyncio.

@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 88.65979% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.59%. Comparing base (57b5175) to head (cc80366).

Files with missing lines Patch % Lines
hazelcast/internal/asyncio_proxy/list.py 87.70% 22 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master     #782    +/-   ##
========================================
  Coverage   94.58%   94.59%            
========================================
  Files         393      394     +1     
  Lines       25083    25276   +193     
========================================
+ Hits        23726    23910   +184     
- Misses       1357     1366     +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@yuce yuce changed the title List proxy List Proxy Feb 23, 2026
@yuce yuce requested a review from ihsandemir February 23, 2026 10:08
@yuce yuce changed the title List Proxy List Proxy for Asyncio Client Feb 24, 2026

def __init__(self, service_name, name, context):
super(PartitionSpecificProxy, self).__init__(service_name, name, context)
partition_key = context.serialization_service.to_data(string_partition_strategy(name))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it hard coded string_partition_strategy? In Java, this is configurable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ported that directly from the asyncore client.
I don't think any client other than Java has that configurable.

>>> print("list.size", await my_list.size())

Warning:
Asyncio client list proxy is not thread-safe, do not access it from other threads.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why? different from asyncoore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's how the asyncio client is built. Mixing threading and asyncio is not good practice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants