From 44c6e85c427adafcd97097a9daf076c7b69e0ee2 Mon Sep 17 00:00:00 2001 From: Lei Jitang Date: Thu, 4 Aug 2016 04:00:06 -0400 Subject: [PATCH] Increase transientTimeout of boltdb to 2m During docker stress test, there are a lot of timeout errors on update libnetwork object to store. `ERRO[0137] docker: Error response from daemon: failed to update store for object type *libnetwork.endpoint: timeout. error=exit status 125` I think we should increase the timeout to 2m because 2m is also the timeout of container starting timeout of docker. Signed-off-by: Lei Jitang --- store/boltdb/boltdb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/boltdb/boltdb.go b/store/boltdb/boltdb.go index 4026e0a2..c3ec1353 100644 --- a/store/boltdb/boltdb.go +++ b/store/boltdb/boltdb.go @@ -45,7 +45,7 @@ type BoltDB struct { const ( libkvmetadatalen = 8 - transientTimeout = time.Duration(10) * time.Second + transientTimeout = time.Duration(120) * time.Second ) // Register registers boltdb to libkv