Skip to content

Commit

Permalink
PWX-38611 : Replacing gob.Register with gob.RegisterName (#2472)
Browse files Browse the repository at this point in the history
Signed-off-by: Dolly Talreja <[email protected]>
  • Loading branch information
dtalreja-px authored Aug 27, 2024
1 parent e8c9967 commit f00296e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cluster/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f00296e

Please sign in to comment.