Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Initial implementation of checkpoint state #315

Merged
merged 6 commits into from
Oct 22, 2013

Conversation

aniket486
Copy link
Contributor

Still need to complete tests

"work with CheckpointState" in {
// TODO complete this
implicit val fixedBatcher : Batcher = new MillisecondBatcher(30*60*1000L)
val path:String = "/Users/amokashi/work/apache"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Get a temp path here than /Users....

case Some(b) => {
// checkpoint batches until b (exclusive)
BatchID.range(startBatch, b.prev)
.foreach(t => versionedStore.succeedVersion(fixedBatcher.earliestTimeOf(t).as[Long]));
Copy link
Collaborator

Choose a reason for hiding this comment

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

shouldn't this be done in the succeed method below? We have not actually suceeded yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We do this here to mark it as running. This avoids multiple runs of same batch at the same time.

Copy link
Collaborator

Choose a reason for hiding this comment

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

The issue is the whole process can crash on mesos, and then you leave behind the claim that it was finished. This actually happens, so it is not failsafe.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

With the change we discussed yesterday, the new run of the same thing would prefer startdate over hdfs checkpoint.

ianoc added a commit that referenced this pull request Oct 22, 2013
Initial implementation of checkpoint state
@ianoc ianoc merged commit 972eb34 into twitter:develop Oct 22, 2013
snoble pushed a commit to snoble/summingbird that referenced this pull request Sep 8, 2017
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants