Skip to content

Conversation

@akutz
Copy link
Collaborator

@akutz akutz commented May 3, 2017

This patch introduces the ability to configure a retry count and duration for integration driver mount operations. It satisfies a condition encountered by a user with the Ceph driver in concert with K8s.

/cc @cduchesne

@akutz akutz self-assigned this May 3, 2017
@akutz akutz requested review from cduchesne and codenrhoden May 3, 2017 05:07
@codecov-io
Copy link

codecov-io commented May 3, 2017

Codecov Report

Merging #543 into release/0.6.0 will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##           release/0.6.0    #543   +/-   ##
=============================================
  Coverage           28.4%   28.4%           
=============================================
  Files                 34      34           
  Lines               2003    2003           
=============================================
  Hits                 569     569           
  Misses              1373    1373           
  Partials              61      61

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1937a13...a406c09. Read the comment docs.

if err == nil {
break
}
time.Sleep(d.retryWait)
Copy link
Contributor

Choose a reason for hiding this comment

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

My only comment is whether this Sleep() should instead be before the call to Mount inside this for loop. That way there will be delay between the initial mount attempt and the first retry. As written, if the retry wait was 1, there would be no delay between the initial attempt and the one and only retry.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You, sir, are correct. Fixing now.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

This patch introduces the ability to configure a retry count and
duration for integration driver mount operations. It satisfies a
condition encountered by a user with the Ceph driver in concert with
K8s
@akutz akutz force-pushed the feature/mount-retry branch from b4e3050 to a406c09 Compare May 3, 2017 05:42
@akutz akutz merged commit c3b1dc1 into thecodeteam:release/0.6.0 May 3, 2017
@akutz akutz deleted the feature/mount-retry branch May 3, 2017 11:05
@codenrhoden codenrhoden modified the milestone: 2017.04 May 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants