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 the DTP framework call the appropriate metric hooks #689

Merged
merged 1 commit into from Apr 13, 2019

Conversation

bwillard
Copy link
Contributor

Removes importFinished and exportFinished as because we interleave the processing they don't make sense.

This addresses issue #41.

@bwillard bwillard requested a review from holachuy April 12, 2019 19:50
Copy link
Collaborator

@holachuy holachuy left a comment

Choose a reason for hiding this comment

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

Very nice! One minor fix.

Stopwatch stopwatch = Stopwatch.createStarted();
try {
ExportResult result = exporterProvider.get().export(jobId, authData, exportInformation);
success = result.getType() != ExportResult.ResultType.ERROR;
Copy link
Collaborator

Choose a reason for hiding this comment

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

For consistency with the importer, we should probably use == ResultType.OK for the success condition here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, for export there are 3 conditions: END, CONTINUE, and ERROR, so I think we have to do != ERROR, or == with an or, so I think the != is cleaner.

@bwillard bwillard merged commit fcc3560 into master Apr 13, 2019
@bwillard bwillard deleted the willard-stats2 branch April 13, 2019 00:39
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