Skip to content

MANTA-5504 buckets-mdapi should provide discovery endpoints for sharkspotter#66

Draft
cneira wants to merge 5 commits into
masterfrom
MANTA-5504
Draft

MANTA-5504 buckets-mdapi should provide discovery endpoints for sharkspotter#66
cneira wants to merge 5 commits into
masterfrom
MANTA-5504

Conversation

@cneira
Copy link
Copy Markdown
Contributor

@cneira cneira commented Feb 23, 2026

We need to be able to enumerate all the buckets across a data center to evacuate objects to a new storage node.
Meta-data in manta-buckets-api is partitioned into vnodes. The metadata of interest in this case are buckets and their objects. The proposed solution is to have two new RPC calls that will enable callers to map all existing buckets and objects in deployment.

The new RPC calls are :

  • listvnodes() returns a vector of integers that represent the current vnodes that exist.

  • listowners(vnode: u64) returns UUIDs for bucket owners in a target vnode.

The caller should call first listvnodes to get the list of vnodes, then use that list to enumerate all the existing owners, which are the accounts that have created buckets and objects.

cneira and others added 5 commits March 2, 2026 13:48
New Fast RPC endpoint that accepts multiple UpdateObjectPayload
items, groups them by vnode, and executes each vnode group
within a single PostgreSQL transaction. Objects in the same
vnode succeed or fail atomically.

=== AI-METADATA ===
AI-Role: code generation
Human-Role: code review, implementation guidance, design decisions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fix syntax error (missing dot and semicolon) on the 'which pg_tmp'
expect call and replace generic "failed to execute process" messages
with descriptive ones that name the command and suggest what to check.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add discovery RPCs for vnode enumeration and per-vnode owner
listing. Includes functional, concurrency, randomized, and
performance integration tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant