-
Notifications
You must be signed in to change notification settings - Fork 15
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
base: develop
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
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()); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
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
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 folderdata-ingestion-dir/
with the checkpoint files: