VOL-1406: Deploy voltha 2.0 in a k8s cluster
- Also added sleep to watching rw-core to ensure that the
watching core does not respond to a request before the
core that seized it.
Change-Id: I9998975b6dda42b3bd58112115c5122bf2b49d42
diff --git a/rw_core/core/transaction.go b/rw_core/core/transaction.go
index a8bcfd6..397299e 100644
--- a/rw_core/core/transaction.go
+++ b/rw_core/core/transaction.go
@@ -217,6 +217,10 @@
default:
acquired = false
}
+ // Ensure the request watcher does not reply before the request server
+ if !acquired {
+ time.Sleep(1 * time.Second)
+ }
return acquired
}