Skip to content

ListSemaphores streaming RPC and review fixes#15

Draft
zinal wants to merge 5 commits into
mainfrom
cursor/describe-node-semaphore-names-bde7
Draft

ListSemaphores streaming RPC and review fixes#15
zinal wants to merge 5 commits into
mainfrom
cursor/describe-node-semaphore-names-bde7

Conversation

@zinal

@zinal zinal commented May 10, 2026

Copy link
Copy Markdown
Owner

Fix TestListSemaphoresFromTablet: acquiring Lock1 via SendAcquireLock uses TEvAcquireSemaphore (see ut_helpers.cpp), which creates a semaphore row named Lock1, so ListSemaphores correctly returned size 1 before Alpha/Beta. The test no longer sets up that lock; proxy/session attach were unnecessary because ListSemaphoresFromTablet and CreateSemaphore use direct edge messages to the tablet.

Open in Web Open in Cursor 

cursoragent and others added 2 commits May 10, 2026 13:07
Add include_semaphore_names on DescribeNodeRequest and semaphore_names on
DescribeNodeResult, populated by querying the kesus tablet (extended
TEvGetConfig) only when requested. C++ SDK exposes IncludeSemaphoreNames on
TDescribeNodeSettings and GetSemaphoreNames() on TNodeDescription. Tests cover
tablet GetConfig and end-to-end DescribeNode behavior.

Co-authored-by: Maksim Zinal <zinal@ydb.tech>
Introduce CoordinationService.ListSemaphores streaming SemaphoreDescription with
include_details controlling compact vs full fields. Validate SelectRow like
DescribeSemaphore via resolve proxy + security object. Kesus tablet handles
TEvListSemaphores; proxy forwards as a direct request. C++ client exposes
ListSemaphores() with TListSemaphoresIterator. Reverts DescribeNode optional
semaphore names and GetConfig semaphore listing.

Co-authored-by: Maksim Zinal <zinal@ydb.tech>
@cursor cursor Bot changed the title DescribeNode: optional coordination semaphore names Coordination: ListSemaphores streaming RPC + SDK May 10, 2026
…tests

Co-authored-by: Maksim Zinal <zinal@ydb.tech>
@cursor cursor Bot changed the title Coordination: ListSemaphores streaming RPC + SDK ListSemaphores streaming RPC and review fixes May 10, 2026
cursoragent and others added 2 commits May 10, 2026 16:49
Co-authored-by: Maksim Zinal <zinal@ydb.tech>
… Semaphore)

Co-authored-by: Maksim Zinal <zinal@ydb.tech>
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