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

Make JobStore impls use the new PortabilityJob for #126 #141

Merged
merged 5 commits into from
Feb 15, 2018

Conversation

rtannenbaum
Copy link
Contributor

No description provided.

@@ -88,29 +86,62 @@ public void create(UUID jobId, LegacyPortabilityJob job) throws IOException {
}

/**
* Finds the {@link LegacyPortabilityJob} keyed by {@code jobId} in Datastore, or null if none found.
* Atomically updates the {@link LegacyPortabilityJob} keyed by {@code jobId} to {@code job},
Copy link
Collaborator

Choose a reason for hiding this comment

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

s/LegacyPortabilityJob/PortabilityJob

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Entity previousEntity = transaction.get(key);
if (previousEntity == null) {
transaction.rollback();
throw new IOException("Could not find record for jobId " + jobId);
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's do jobId: " + jobId to distinguish parameterized values or any convention to highlight for future debugging

Copy link
Collaborator

Choose a reason for hiding this comment

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

Here and below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, done

@rtannenbaum rtannenbaum merged commit dc85c0e into master Feb 15, 2018
@rtannenbaum rtannenbaum deleted the portability-job branch February 15, 2018 18:24
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.

None yet

2 participants