[VOL-3223] Retrying ONU_INDICATIONs
Change-Id: I23d16fb03f5ab0d0f1d277c077a2e4e3bbbb67f1
diff --git a/VERSION b/VERSION
index 59aa62c..7bf4b6a 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.4.5
+2.4.6
diff --git a/pyvoltha/adapters/kafka/adapter_request_facade.py b/pyvoltha/adapters/kafka/adapter_request_facade.py
index 2159ebe..b0001fe 100644
--- a/pyvoltha/adapters/kafka/adapter_request_facade.py
+++ b/pyvoltha/adapters/kafka/adapter_request_facade.py
@@ -376,7 +376,12 @@
return False, Error(code=ErrorCode.INVALID_PARAMETERS,
reason="msg-invalid")
- return (True, self.adapter.process_inter_adapter_message(m))
+ max_retry = 0
+ # NOTE as per VOL-3223 a race condition on ONU_IND_REQUEST may occur,
+ # so if that's the message retry up to 10 times
+ if m.header.type == 6:
+ max_retry = 10
+ return (True, self.adapter.process_inter_adapter_message(m, max_retry=max_retry))
def receive_packet_out(self, deviceId, outPort, packet, **kwargs):