Skip to content

Commit

Permalink
Merge pull request #9237 from gyuho/log-backend
Browse files Browse the repository at this point in the history
etcdserver: clarify warnings on backend open taking >10 seconds
  • Loading branch information
gyuho authored Jan 26, 2018
2 parents 5b95494 + 0365a9d commit 3808c04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etcdserver/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ func openBackend(cfg ServerConfig) backend.Backend {
select {
case be := <-beOpened:
return be
case <-time.After(time.Second):
plog.Warningf("another etcd process is using %q and holds the file lock.", fn)
case <-time.After(10 * time.Second):
plog.Warningf("another etcd process is using %q and holds the file lock, or loading backend file is taking >10 seconds", fn)
plog.Warningf("waiting for it to exit before starting...")
}
return <-beOpened
Expand Down

0 comments on commit 3808c04

Please sign in to comment.