VOL-5175 : olt-adapter crash during olt-reboot process.
Change-Id: I82cebbcef1e39da75a0606be137640d372ece1da
diff --git a/VERSION b/VERSION
index cca25a9..1d068c6 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-4.4.1
+4.4.2
diff --git a/internal/pkg/core/device_handler.go b/internal/pkg/core/device_handler.go
index 3f77346..0382f71 100755
--- a/internal/pkg/core/device_handler.go
+++ b/internal/pkg/core/device_handler.go
@@ -2873,6 +2873,8 @@
// Immediately return, otherwise accessing a null 'device' struct would cause panic
return
}
+ //Starting the cleanup process
+ dh.setDeviceDeletionInProgressFlag(true)
logger.Warnw(ctx, "update-state-rebooted", log.Fields{"device-id": dh.device.Id, "connect-status": device.ConnectStatus,
"admin-state": device.AdminState, "oper-status": device.OperStatus, "conn-status": voltha.ConnectStatus_UNREACHABLE})
@@ -2939,6 +2941,8 @@
}
}
+ //Cleanup completed , reset the flag
+ dh.setDeviceDeletionInProgressFlag(false)
logger.Infow(ctx, "cleanup complete after reboot , moving to init", log.Fields{"deviceID": device.Id})
dh.transitionMap.Handle(ctx, DeviceInit)