Skip to content
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

Node to shard control #3875

Closed
wants to merge 7 commits into from
Closed

Conversation

undertome
Copy link
Contributor

High Level Overview of Change

This change extends the rpc interface by allowing starting, stopping and polling a nodestore to shardstore database import from a single command.

Context of Change

This is a new feature that allows users to control database imports with the following rpc command syntax:

node_to_shard [status|start|stop]

This change also includes a bug fix from @ximinez that corrects a false positive in the shard unit tests.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (non-breaking change that only restructures code)
  • Tests (You added tests for code that already exists, or your new feature included in this PR)
  • Documentation Updates
  • Release

@undertome undertome added the Documentation README changes, code comments, etc. label Jun 30, 2021
@undertome undertome force-pushed the node-to-shard-control branch from 5ad9f80 to 90c2126 Compare July 1, 2021 18:43
@undertome undertome force-pushed the node-to-shard-control branch 2 times, most recently from e34482f to 3280111 Compare July 11, 2021 12:43
Copy link
Collaborator

@ximinez ximinez left a comment

Choose a reason for hiding this comment

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

Fails to build under Windows. Here's the fix: ximinez@d4e26b0

Consider pulling that lambda into a separate function, since it's duplicated.

ximinez added a commit to ximinez/rippled that referenced this pull request Jul 15, 2021
This fix has been included in XRPLF#3875, so watch out for merge conflicts
@undertome
Copy link
Contributor Author

Fails to build under Windows. Here's the fix: ximinez@d4e26b0

Consider pulling that lambda into a separate function, since it's duplicated.

Done

ximinez added a commit to ximinez/rippled that referenced this pull request Jul 27, 2021
This fix has been included in XRPLF#3875, so watch out for merge conflicts
ximinez added a commit to ximinez/rippled that referenced this pull request Jul 28, 2021
This fix has been included in XRPLF#3875, so watch out for merge conflicts
@undertome undertome force-pushed the node-to-shard-control branch from 8ce8744 to fa41d3c Compare July 29, 2021 18:07
ximinez added a commit to ximinez/rippled that referenced this pull request Jul 29, 2021
This fix has been included in XRPLF#3875, so watch out for merge conflicts
src/ripple/nodestore/impl/DatabaseShardImp.cpp Outdated Show resolved Hide resolved
src/ripple/rpc/impl/Handler.cpp Outdated Show resolved Hide resolved
src/ripple/rpc/handlers/NodeToShard.cpp Outdated Show resolved Hide resolved
src/test/rpc/NodeToShardRPC_test.cpp Outdated Show resolved Hide resolved
src/test/rpc/NodeToShardRPC_test.cpp Outdated Show resolved Hide resolved
ximinez added a commit to ximinez/rippled that referenced this pull request Sep 15, 2021
This fix has been included in XRPLF#3875, so watch out for merge conflicts
Copy link
Collaborator

@ximinez ximinez left a comment

Choose a reason for hiding this comment

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

Other than rephrasing the status message, I think this is good to go.

src/ripple/nodestore/impl/DatabaseShardImp.cpp Outdated Show resolved Hide resolved
ximinez added a commit to ximinez/rippled that referenced this pull request Oct 7, 2021
This fix has been included in XRPLF#3875, so watch out for merge conflicts
alloynetworks and others added 2 commits October 13, 2021 15:25
Update defaults from 20/5 to 10/2 for account and owner reserves respectively. The network has been voting for 10/2 for an adequate period of time and a new server installation should default to the new reserves.
non-existant -> non-existent
Copy link
Collaborator

@ximinez ximinez left a comment

Choose a reason for hiding this comment

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

Good to go

@undertome undertome force-pushed the node-to-shard-control branch from 404d637 to ca741ec Compare October 14, 2021 20:18
Copy link
Contributor

@miguelportilla miguelportilla left a comment

Choose a reason for hiding this comment

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

👍

@undertome undertome force-pushed the node-to-shard-control branch from ca741ec to 114728a Compare October 15, 2021 23:13
This was referenced Oct 18, 2021
legleux pushed a commit to legleux/rippled that referenced this pull request Dec 19, 2021
This fix has been included in XRPLF#3875, so watch out for merge conflicts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation README changes, code comments, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants