Skip to content

[python] Accept lookup config keys - #4543

Merged
fresh-borzoni merged 1 commit into
apache:mainfrom
fresh-borzoni:python-lookup-config
Oct 4, 2026
Merged

fresh-borzoni merged 1 commit into
apache:mainfrom
fresh-borzoni:python-lookup-config

Conversation

@fresh-borzoni

Copy link
Copy Markdown
Member

closes #4542

Python lookup waits up to 100 ms for other lookups to join its batch, so a caller that awaits each lookup before the next one pays about 100 ms per key. Java, Rust and C++ let callers lower that window, but the Python Config rejects every lookup.* key.

This change makes Config accept lookup.queue-size, lookup.max-batch-size, lookup.batch-timeout-ms, lookup.max-inflight-requests and lookup.max-retries. It passes them to the Rust client's config and rejects a value that doesn't parse. Each setting also gets a property with a getter and a setter, the stub file declares them, and both Python API references list them with their defaults.

@fresh-borzoni

Copy link
Copy Markdown
Member Author

@leekeiabstraction @charlesdong1991 PTAL 🙏

@leekeiabstraction leekeiabstraction left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@fresh-borzoni
fresh-borzoni merged commit 3053673 into apache:main Oct 4, 2026
3 checks passed
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.

[python] Config rejects the lookup settings

2 participants