Skip to content

Coordination semaphores listing#1

Draft
zinal wants to merge 1 commit into
mainfrom
cursor/coordination-semaphores-listing-2efe
Draft

Coordination semaphores listing#1
zinal wants to merge 1 commit into
mainfrom
cursor/coordination-semaphores-listing-2efe

Conversation

@zinal

@zinal zinal commented Feb 17, 2026

Copy link
Copy Markdown
Owner

Changelog entry

Added API and implementation to list semaphores within a coordination node.

Changelog category

  • New feature

Description for reviewers

This PR implements the ListSemaphores functionality for coordination nodes, allowing users to retrieve the names of semaphores.

The implementation follows existing patterns within the YDB coordination service, specifically mirroring the approach used for ListResources in rate limiters. This includes:

  • Extending ydb_coordination.proto and ydb_coordination_v1.proto with ListSemaphores RPC.
  • Introducing internal Kesus protocol messages (TEvListSemaphores, TEvListSemaphoresResult).
  • Implementing a new Kesus tablet transaction (TTxSemaphoresList) to iterate and list semaphores.
  • Creating a gRPC handler (rpc_list_semaphores_coordination_node.cpp) that resolves the coordination node path via the scheme cache and communicates with the Kesus tablet via a pipe.
  • Updating Kesus service wiring and counters.

Open in Cursor Open in Web

Enhance ydb_coordination_v1.proto API by adding ListSemaphores RPC that
allows users to list semaphores within a coordination node.

Changes:
- Add ListSemaphoresRequest, ListSemaphoresResponse, ListSemaphoresResult
  messages to ydb_coordination.proto
- Add ListSemaphores RPC to ydb_coordination_v1.proto
- Add TEvListSemaphores and TEvListSemaphoresResult to kesus.proto
- Implement TTxSemaphoresList transaction in kesus tablet
- Add RPC handler that resolves path via scheme cache and queries tablet
- Register ListSemaphores in kesus gRPC service

All changes follow YDB code style and standard approaches.

Co-authored-by: Maksim Zinal <zinal@ydb.tech>
@cursor

cursor Bot commented Feb 17, 2026

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

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