apache / apache/accumulo

Migrate ZooKeeper Tables from /tables to be organized under the /namespaces hierarchy

Open
#5,414 3 comments 0 reactions 1 assignee Claimed by @jkucera0 View on GitHub
Dominant language
Java
Stars
1.2k
Forks
487
Avg merge
4d 5h
Merged PRs (30d)
13

Description

Currently, tables in ZooKeeper are stored flatly under `/tables` with no hierarchy. Under each table node is a `/namespace` node that stores the respective namespace that the table is from.

The tables can all be migrated under `/namespaces/` nodes and organized under their respective namespaces. By doing so, the namespace for each table will already be known from the path and no additional lookup to the `//namespace` node is needed. This allows the `//namespace` nodes to be deleted.

Current ZooKeeper Table structure:

- `/tables/namespaceA.tableA, namespaceB.tableB, etc.`

Proposed Migration:

- `/namespaces/namespaceA/tables/tableA`
- `/namespaces/namespaceB/tables/tableB`
- etc.

Relates to #4698 in which the name-to-Id mappings for each Table will be created in near future.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.