Skip to content

Conversation

@adutra
Copy link
Contributor

@adutra adutra commented Jun 30, 2022

Fixes #431.

@adutra adutra added this to the 1.10.0 milestone Jun 30, 2022
@adutra adutra force-pushed the resume-failed branch 2 times, most recently from aca9892 to ddabf10 Compare July 4, 2022 15:48
@adutra adutra force-pushed the resume-failed branch 2 times, most recently from dba1080 to a4021e5 Compare August 11, 2022 12:24
if (!manager.isEmpty()) {
writeCheckpointFile(manager);
LOGGER.info("Checkpoints for the current operation were written to {}.", CHECKPOINT_CSV);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does it make sense to add another line in the log with something like the following, so that the user won't have to look up in the manual on how to leverage this checkpoint file?

LOGGER.info("To resume the current operation, add the following command line flag --dsbulk.log.checkpoint.file={} .", CHECKPOINT_CSV);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, good idea. I also think we should skip this message completely if the operation completed successfully, wdyt? It doesn't make any sense to resume a completed operation.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Agreed. If the job didn't get interrupted, it will be confusing to see this message.

Copy link
Collaborator

@weideng1 weideng1 left a comment

Choose a reason for hiding this comment

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

I've tested the new resume feature with a failed job and I was able to get it to pick up where it left off. LGTM

@weideng1 weideng1 merged commit 44fe069 into datastax:1.x Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to resume a failed operation

2 participants