From 000fb22f62224090f7cbb4bb41e3012b9043c1b9 Mon Sep 17 00:00:00 2001 From: Dolly Talreja Date: Tue, 27 Aug 2024 09:50:50 +0000 Subject: [PATCH] PWX-38611 : Replacing gob.Register with gob.RegisterName Signed-off-by: Dolly Talreja --- cluster/manager/manager.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cluster/manager/manager.go b/cluster/manager/manager.go index c3c56b9ca..2fad35d32 100644 --- a/cluster/manager/manager.go +++ b/cluster/manager/manager.go @@ -1509,7 +1509,9 @@ func (c *ClusterManager) StartWithConfiguration( c.system = systemutils.New() // Start the gossip protocol. - gob.Register(api.Node{}) + // Replacing gob.Register with gob.RegisterName to avoid any issue caused due to the movement from portworx to pure-px + // gossip: Error in unmarshalling peer's local data. Error : gob: name not registered for interface. + gob.RegisterName("github.com/portworx/porx/vendor/github.com/libopenstorage/openstorage/api.Node", api.Node{}) quorumTimeout := types.DEFAULT_QUORUM_TIMEOUT if c.config.QuorumTimeoutInSeconds > 0 { quorumTimeout = time.Duration(c.config.QuorumTimeoutInSeconds) * time.Second