Skip to content

chore: change the liverootpath and archiverootpath to absolute paths as default#656

Merged
ata-nas merged 3 commits into
mainfrom
371-chore-change-the-liverootpath-and-archiverootpath-to-absolute-paths-as-default
Feb 20, 2025
Merged

chore: change the liverootpath and archiverootpath to absolute paths as default#656
ata-nas merged 3 commits into
mainfrom
371-chore-change-the-liverootpath-and-archiverootpath-to-absolute-paths-as-default

Conversation

@ata-nas
Copy link
Copy Markdown
Contributor

@ata-nas ata-nas commented Feb 17, 2025

Reviewer Notes

  • change persistence config liveRootPath default to /opt/hashgraph/blocknode/data/live
  • change persistence config archiveRootPath default to /opt/hashgraph/blocknode/data/archive
  • both configs now use Path instead of String for their type
  • docker user now has access to /opt
  • change persistence config key archiveBatchSize to archiveGroup size for improved semantics (todo left from the past)
  • config record no longer creates roots, it is just a value holder, it has no logic and is no decision maker
  • remove deprecated usage of ConfigrationHolder (it also caused issues for tests)
  • updated tests to pass with the new default paths
  • updated documentation

Related Issue(s)

Closes #371

@ata-nas ata-nas added the Block Node Issues/PR related to the Block Node. label Feb 17, 2025
@ata-nas ata-nas added this to the 0.5.0 milestone Feb 17, 2025
@ata-nas ata-nas self-assigned this Feb 17, 2025
@ata-nas ata-nas force-pushed the 371-chore-change-the-liverootpath-and-archiverootpath-to-absolute-paths-as-default branch from 44ba365 to 695935c Compare February 17, 2025 16:00
Copy link
Copy Markdown
Contributor Author

@ata-nas ata-nas left a comment

Choose a reason for hiding this comment

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

Some general comments to consider.

@ata-nas ata-nas marked this pull request as ready for review February 18, 2025 09:12
@ata-nas ata-nas requested a review from a team as a code owner February 18, 2025 09:12
Copy link
Copy Markdown
Contributor

@Nana-EC Nana-EC left a comment

Choose a reason for hiding this comment

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

Some initial thoughts.

Comment thread server/docker/Dockerfile
@ata-nas ata-nas force-pushed the 371-chore-change-the-liverootpath-and-archiverootpath-to-absolute-paths-as-default branch from 004934d to a7b222c Compare February 19, 2025 12:01
…as default

- change persistence config liveRootPath default to /opt/hashgraph/blocknode/data/live
- change persistence config archiveRootPath default to /opt/hashgraph/blocknode/data/archive
- both configs now use Path instead of String for their type
- docker user now has access to /opt
- change persistence config key archiveBatchSize to archiveGroup size for improved semantics (todo left from the past)
- config record no longer creates roots, it is just a value holder, it has no logic and is no decision maker
- remove deprecated usage of ConfigrationHolder (it also caused issues for tests)
- updated tests to pass with the new default paths

Signed-off-by: Atanas Atanasov <a.v.atanasov98@gmail.com>
- the preconditions change to only require non-null values
- if a blank value exists (no matter it's source) it will be used instead of falling back to the default
- tests are updated to reflect the change
- addressing PR comment

Signed-off-by: Atanas Atanasov <a.v.atanasov98@gmail.com>
Signed-off-by: Atanas Atanasov <a.v.atanasov98@gmail.com>
@ata-nas ata-nas force-pushed the 371-chore-change-the-liverootpath-and-archiverootpath-to-absolute-paths-as-default branch from a85a0b2 to b65a7e9 Compare February 19, 2025 13:19
Copy link
Copy Markdown
Contributor

@Nana-EC Nana-EC left a comment

Choose a reason for hiding this comment

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

LG

@ata-nas ata-nas merged commit cd2284b into main Feb 20, 2025
@ata-nas ata-nas deleted the 371-chore-change-the-liverootpath-and-archiverootpath-to-absolute-paths-as-default branch February 20, 2025 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Block Node Issues/PR related to the Block Node.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: change the liveRootPath and archiveRootPath to absolute paths as default

3 participants