[ARVADOS] updated: 1.3.0-853-g0f1476fae
Git user
git at public.curoverse.com
Fri May 10 20:39:39 UTC 2019
Summary of changes:
services/keepstore/unix_volume.go | 2 ++
1 file changed, 2 insertions(+)
via 0f1476fae8e60066c536ae85937975b793d6fb08 (commit)
from cafd28756a1465381774ed2e1df500bd148a4a1f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 0f1476fae8e60066c536ae85937975b793d6fb08
Author: Tom Clegg <tclegg at veritasgenetics.com>
Date: Fri May 10 16:36:39 2019 -0400
Log if client hangs up while waiting for unix volume Serialize lock.
No issue #
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg at veritasgenetics.com>
diff --git a/services/keepstore/unix_volume.go b/services/keepstore/unix_volume.go
index c5d719261..4d9e798ac 100644
--- a/services/keepstore/unix_volume.go
+++ b/services/keepstore/unix_volume.go
@@ -679,6 +679,7 @@ func (v *UnixVolume) lock(ctx context.Context) error {
if v.locker == nil {
return nil
}
+ t0 := time.Now()
locked := make(chan struct{})
go func() {
v.locker.Lock()
@@ -686,6 +687,7 @@ func (v *UnixVolume) lock(ctx context.Context) error {
}()
select {
case <-ctx.Done():
+ log.Printf("%s: client hung up while waiting for Serialize lock (%s)", v, time.Since(t0))
go func() {
<-locked
v.locker.Unlock()
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list