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

Only throw exception when creating directory really failed in HandleFailureTrait #2341

Merged
merged 1 commit into from
Oct 9, 2019

Conversation

gedimin45
Copy link
Contributor

When multiple processes try to create a directory at the same time mkdir is going to fail and return false. This should not warrant an exception.

This change ensures the directory exists - and only throws when it does not.

…ailureTrait

When multiple processes try to create a directory at the same time `mkdir` is going to fail and return false. This should not warrant an exception.

This change ensures the directory exists - and only throws when it does not.
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 20, 2019
@jdpedrie jdpedrie added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 20, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 20, 2019
@codecov
Copy link

codecov bot commented Sep 20, 2019

Codecov Report

Merging #2341 into master will decrease coverage by <.01%.
The diff coverage is 20%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2341      +/-   ##
============================================
- Coverage     92.49%   92.49%   -0.01%     
- Complexity     4479     4480       +1     
============================================
  Files           311      311              
  Lines         13358    13357       -1     
============================================
- Hits          12355    12354       -1     
  Misses         1003     1003
Impacted Files Coverage Δ Complexity Δ
Core/src/Batch/HandleFailureTrait.php 79.16% <20%> (-0.84%) 9 <0> (+1)

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 7e133f1...4d7e38e. Read the comment docs.

Copy link
Contributor

@dwsupplee dwsupplee left a comment

Choose a reason for hiding this comment

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

This is really solid, thanks @Ged15 👍 . Always appreciate your contributions.

@dwsupplee dwsupplee merged commit 65d3f6d into googleapis:master Oct 9, 2019
@gedimin45 gedimin45 deleted the patch-4 branch October 10, 2019 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: core cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants