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

wal: fall back to closing wal if locked dir rename fails #8286

Merged
merged 1 commit into from
Jul 21, 2017

Conversation

heyitsanthony
Copy link
Contributor

Detecting windows at compile time isn't enough since etcd might be
on linux but the fs is backed by windows.

Fixes: #8178
Fixes: #6984

WIP until I can confirm the fix on windows.

Also supersedes #7915

@codecov-io
Copy link

codecov-io commented Jul 20, 2017

Codecov Report

❗ No coverage uploaded for pull request base (master@fb717ae). Click here to learn what that means.
The diff coverage is 21.73%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #8286   +/-   ##
=========================================
  Coverage          ?   76.26%           
=========================================
  Files             ?      345           
  Lines             ?    27074           
  Branches          ?        0           
=========================================
  Hits              ?    20647           
  Misses            ?     4939           
  Partials          ?     1488
Impacted Files Coverage Δ
wal/wal.go 59.03% <21.73%> (ø)

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 fb717ae...fe1ddab. Read the comment docs.

@heyitsanthony
Copy link
Contributor Author

turns out the error is *os.LinkError not os.ErrPermission; works on windows

Detecting windows at compile time isn't enough since etcd might be
on linux but the fs is backed by windows.

Fixes: etcd-io#8178
Fixes: etcd-io#6984
Copy link
Contributor

@gyuho gyuho left a comment

Choose a reason for hiding this comment

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

lgtm. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Etcd does not run on Bash on Ubuntu on Windows Failed to initialize wal on Azure File Storage
3 participants