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

feat(iota): add data_ingestion_dir to iota start command #4893

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

Thoralf-M
Copy link
Member

Description of change

Add data_ingestion_dir to iota start command so one can set the folder in which executed checkpoints are saved as files.
This is useful, among other things, for testing a custom local reader indexing setup with low overhead.

Porting over MystenLabs/sui#20472

Type of change

  • Enhancement (a non-breaking change which adds functionality)

How the change has been tested

Running cargo run --features=indexer start --force-regenesis --with-faucet --data-ingestion-dir "data-ingestion-dir" --with-indexer created a folder data-ingestion-dir/ with the checkpoint files:

0.chk
1.chk
2.chk
...

@Thoralf-M Thoralf-M requested a review from a team as a code owner January 17, 2025 15:31
Copy link

vercel bot commented Jan 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rebased-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 17, 2025 6:21pm
wallet-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 17, 2025 6:21pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
apps-backend ⬜️ Ignored (Inspect) Visit Preview Jan 17, 2025 6:21pm
apps-ui-kit ⬜️ Ignored (Inspect) Visit Preview Jan 17, 2025 6:21pm

@iota-ci iota-ci added dev-tools Issues related to the Developer Tools Team sc-platform Issues related to the Smart Contract Platform group. labels Jan 17, 2025
Comment on lines +766 to +772
if with_indexer.is_some() && data_ingestion_dir.is_none() {
data_ingestion_dir = Some(tempdir()?.into_path())
}

#[cfg(feature = "indexer")]
if let Some(ref dir) = data_ingestion_dir {
swarm_builder = swarm_builder.with_data_ingestion_dir(dir.clone());
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 throw an error if the user tries to use both?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think so, why shouldn't it be fine to have both at the same time?

Copy link
Contributor

Choose a reason for hiding this comment

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

It says they are incompatable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-tools Issues related to the Developer Tools Team sc-platform Issues related to the Smart Contract Platform group.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants