Skip to content

Negotiate long polling for endpoint discovery automatically - #952

Merged
vgvoleg merged 5 commits into
mainfrom
discovery-long-polling
Dec 3, 2026
Merged

vgvoleg merged 5 commits into
mainfrom
discovery-long-polling

Conversation

@vgvoleg

@vgvoleg vgvoleg commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

The sync and asyncio drivers automatically use long polling when ListEndpoints returns a snapshot hash. They echo the hash to wait for topology changes and resume periodic discovery when the server returns an empty hash. A poll deadline preserves the current endpoints. A disconnect triggers a fresh request without a hash.

Update ydb-api-protos to #86 and regenerate the protobuf bindings for v3 through v6. The submodule update also includes the JSON and vector index definitions merged before the discovery change.

@codecov

codecov Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.81%. Comparing base (44d2d96) to head (eaa1d98).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #952      +/-   ##
==========================================
+ Coverage   84.66%   84.81%   +0.15%     
==========================================
  Files         102      102              
  Lines       14200    14262      +62     
  Branches     1499     1508       +9     
==========================================
+ Hits        12022    12097      +75     
+ Misses       1730     1722       -8     
+ Partials      448      443       -5     
Flag Coverage Δ
integration 79.95% <86.86%> (+0.10%) ⬆️
unit 58.72% <100.00%> (+1.20%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
ydb/aio/pool.py 85.50% <100.00%> (+1.35%) ⬆️
ydb/aio/resolver.py 100.00% <100.00%> (+17.64%) ⬆️
ydb/pool.py 91.26% <100.00%> (ø)
ydb/resolver.py 90.05% <100.00%> (+2.73%) ⬆️

... and 3 files with indirect coverage changes

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

@vgvoleg vgvoleg changed the title Support opt-in long polling for endpoint discovery Negotiate long polling for endpoint discovery automatically Dec 3, 2026
@vgvoleg vgvoleg added the SLO label Dec 3, 2026
@github-actions github-actions Bot removed the SLO label Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

🌋 SLO Test Results

🟢 6 workload(s) tested — All thresholds passed

Commit: c2e8546 · View run

Workload Thresholds Duration Report
sync-query 🟢 OK 10m 10s 📄 Report
async-topic 🟢 OK 10m 3s 📄 Report
sync-topic 🟢 OK 10m 7s 📄 Report
sync-table 🟢 OK 10m 2s 📄 Report
sync-topic-multiwriter 🟢 OK 10m 7s 📄 Report
async-query 🟢 OK 10m 3s 📄 Report

Generated by ydb-slo-action

@vgvoleg
vgvoleg force-pushed the discovery-long-polling branch from 86b1bd6 to e21f9dd Compare December 3, 2026 20:03
@vgvoleg
vgvoleg enabled auto-merge (squash) December 3, 2026 20:21
@vgvoleg
vgvoleg merged commit 90abacf into main Dec 3, 2026
34 checks passed
@vgvoleg
vgvoleg deleted the discovery-long-polling branch December 3, 2026 20:22
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.

2 participants