Skip to content

Conversation

@jeffngo
Copy link
Contributor

@jeffngo jeffngo commented Mar 11, 2020

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build was run locally and any changes were pushed
  • Lint has passed locally and any fixes were made for failures

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

The dvp upload command issues an upload job to a Delphix Engine but does not wait for the upload to complete before returning. This can be problematic for both testing and end-users since we can't tell whether the upload job finished successfully or not.

What is the new behavior?

Introduce a wait flag in the dvp upload command that waits for the upload job to complete. We query the upload action and job every 5 seconds until the job succeeds, fails, or times out (60 min).

Does this introduce a breaking change?

  • Yes
  • No

Other information

@jeffngo jeffngo added the enhancement New feature or request label Mar 11, 2020
@jeffngo jeffngo added this to the VaaP Sprint 2/27-3/19 milestone Mar 11, 2020
@jeffngo jeffngo self-assigned this Mar 11, 2020
Copy link
Contributor

@nhlien93 nhlien93 left a comment

Choose a reason for hiding this comment

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

took a quick pass, I'll try to look again in a bit! looks overall good though.

mothslaw
mothslaw previously approved these changes Mar 12, 2020
Copy link
Contributor

@mothslaw mothslaw left a comment

Choose a reason for hiding this comment

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

Looks good. Ship it modulo others' comments.

nhlien93
nhlien93 previously approved these changes Mar 12, 2020
@jeffngo jeffngo dismissed stale reviews from nhlien93 and mothslaw via 6cf5dc0 March 12, 2020 22:39
@jeffngo
Copy link
Contributor Author

jeffngo commented Mar 12, 2020

Addressed feedback from Lindsey and Ravi. Added new formatting to the command after discussions with QA.

@jeffngo jeffngo requested a review from ravi-cm March 12, 2020 22:43
Copy link
Contributor

@ravi-cm ravi-cm left a comment

Choose a reason for hiding this comment

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

Looks good.

@jeffngo jeffngo merged commit ceed0ad into delphix:develop Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

No error displayed by the dvp upload command when file upload job fails

4 participants