Skip to content

Improvements to ClusterTables #3351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2025
Merged

Improvements to ClusterTables #3351

merged 1 commit into from
Jun 4, 2025

Conversation

AhmedSoliman
Copy link
Contributor

@AhmedSoliman AhmedSoliman commented Jun 3, 2025

This updates cluster tables in datafusion (restatectl sql):

  • Removes node_state as it doesn't align with the admin-less design.
  • Adds state in node table that uses gossip to show liveness
  • partitions table exposes v_current/v_next and replica-sets from gossip
  • Removes persisted_lsn since those tables are not meant to be backward compatible. ClusterTables are still internal/restatectl only

@AhmedSoliman
Copy link
Contributor Author

image Screenshot 2025-06-03 at 16 36 05 Screenshot 2025-06-03 at 16 46 37

@AhmedSoliman AhmedSoliman marked this pull request as ready for review June 3, 2025 15:49
Copy link

github-actions bot commented Jun 3, 2025

Test Results

  7 files  ±0    7 suites  ±0   4m 5s ⏱️ -46s
 54 tests ±0   53 ✅ ±0  1 💤 ±0  0 ❌ ±0 
223 runs  ±0  220 ✅ ±0  3 💤 ±0  0 ❌ ±0 

Results for commit ecdaa13. ± Comparison against base commit f73e1f4.

♻️ This comment has been updated with latest results.

@AhmedSoliman
Copy link
Contributor Author

cc. @pcholakov for persisted_lsn

@pcholakov
Copy link
Contributor

Removes persisted_lsn since those tables are not meant to be backward compatible. ClusterTables are still internal/restatectl only

👍 makes sense to me, it was a PR suggestion that I should have rejected.

Copy link
Contributor

@muhamadazmy muhamadazmy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really good. Thank you @AhmedSoliman for this PR. LGTM!

Copy link
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for updating our df tables @AhmedSoliman. The changes look good to me. +1 for merging :-)

Comment on lines 57 to 58
/// Current known metadata version
metadata_ver: DataType::UInt32,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we rename this into partition table version? I was for a second confused which metadata version this field refers to. On the other hand, it is in the partition table where it makes sense that this is the partition table version.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll follow through with the rest of the tables as well to make them consistent

This updates cluster tables in datafusion (restatectl sql):
- Removes `node_state` as it doesn't align with the admin-less design.
- Adds `state` in `node` table that uses gossip to show liveness
- `partitions` table exposes v_current/v_next and replica-sets from gossip
- Removes `persisted_lsn` since those tables are not meant to be backward compatible. ClusterTables are still internal/restatectl only
@AhmedSoliman AhmedSoliman merged commit 978fe9f into main Jun 4, 2025
59 of 61 checks passed
@AhmedSoliman AhmedSoliman deleted the pr3351 branch June 4, 2025 10:12
@github-actions github-actions bot locked and limited conversation to collaborators Jun 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants