Change-Id: I0838c8a80bd218e3b9f82679b923e7555f8f94e8
Signed-off-by: rangajal <ranjit.angajala@nokia.com>
+### v0.4.10
+* Temporary Fix for R3 (E2M->E2T issue) - retrying when is_Ready flag in socket handle is false
+
### v0.4.8
* Entry in meid map will only contain the delta change
### v0.4.8
* Entry in meid map will only contain the delta change
# By default this file is in the docker build directory,
# but the location can configured in the JJB template.
---
# By default this file is in the docker build directory,
# but the location can configured in the JJB template.
---
_ "nanomsg.org/go/mangos/v2/transport/all"
"routing-manager/pkg/rtmgr"
"strconv"
_ "nanomsg.org/go/mangos/v2/transport/all"
"routing-manager/pkg/rtmgr"
"strconv"
+/*
+func (c *NngPush) DistributeAll(policies *[]string) error {
+ xapp.Logger.Debug("Invoked: sbi.DistributeAll")
+ xapp.Logger.Debug("args: %v", *policies)
+ for _, ep := range rtmgr.Eps {
+ if ep.IsReady {
+ go c.send(ep, policies)
+ } else {
+ xapp.Logger.Warn("Endpoint " + ep.Uuid + " is not ready")
+ }
+ }
+ }
+ return nil
+}
+
+*/
+
+/*
+ Temporary solution for R3 - E2M -> E2T issue
+*/
func (c *NngPush) DistributeAll(policies *[]string) error {
xapp.Logger.Debug("Invoked: sbi.DistributeAll")
xapp.Logger.Debug("args: %v", *policies)
for _, ep := range rtmgr.Eps {
func (c *NngPush) DistributeAll(policies *[]string) error {
xapp.Logger.Debug("Invoked: sbi.DistributeAll")
xapp.Logger.Debug("args: %v", *policies)
for _, ep := range rtmgr.Eps {
- if ep.IsReady {
- go c.send(ep, policies)
- } else {
- xapp.Logger.Warn("Endpoint " + ep.Uuid + " is not ready")
+ i := 1
+ for i< 5 {
+ if ep.IsReady {
+ go c.send(ep, policies)
+ break
+ } else {
+ xapp.Logger.Warn("Endpoint " + ep.Uuid + " is not ready" + " Retry count " + strconv.Itoa(i))
+ time.Sleep(10 * time.Millisecond)
+ i++
+ }