{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/24126","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/24126/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/24126/comments","events_url":"https://api.github.com/repos/golang/go/issues/24126/events","html_url":"https://github.com/golang/go/issues/24126","id":300143602,"number":24126,"title":"encoding/gob: not decodable from another instance of same program","user":{"login":"pjebs","id":5377970,"avatar_url":"https://avatars1.githubusercontent.com/u/5377970?v=4","gravatar_id":"","url":"https://api.github.com/users/pjebs","html_url":"https://github.com/pjebs","followers_url":"https://api.github.com/users/pjebs/followers","following_url":"https://api.github.com/users/pjebs/following{/other_user}","gists_url":"https://api.github.com/users/pjebs/gists{/gist_id}","starred_url":"https://api.github.com/users/pjebs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjebs/subscriptions","organizations_url":"https://api.github.com/users/pjebs/orgs","repos_url":"https://api.github.com/users/pjebs/repos","events_url":"https://api.github.com/users/pjebs/events{/privacy}","received_events_url":"https://api.github.com/users/pjebs/received_events","type":"User","site_admin":false},"labels":[{"id":357033853,"url":"https://api.github.com/repos/golang/go/labels/WaitingForInfo","name":"WaitingForInfo","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/6","html_url":"https://github.com/golang/go/milestone/6","labels_url":"https://api.github.com/repos/golang/go/milestones/6/labels","id":1055141,"number":6,"title":"Unplanned","description":"No plan to fix in any specific release.\r\n","creator":{"login":"rsc","id":104030,"avatar_url":"https://avatars1.githubusercontent.com/u/104030?v=4","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":1126,"closed_issues":952,"state":"open","created_at":"2015-04-06T20:47:19Z","updated_at":"2018-02-26T21:38:27Z","due_on":"2099-12-31T08:00:00Z","closed_at":null},"comments":4,"created_at":"2018-02-26T08:15:26Z","updated_at":"2018-02-26T22:16:33Z","closed_at":null,"author_association":"NONE","body":"I have the same program running on 2 different nodes (kubernetes scaling).\r\n\r\nI called `gob Register` and then `Encode` the `interface{}` struct and store the value in a common redis instance.\r\n\r\nThis works as intended and perfectly if the `Decode` occurs from the same instance that encoded it.\r\n\r\nIf the decode occurs from the other instance it fails.\r\n\r\nI suspect the `Register` function is the culprit when dealing with encoding interfaces.\r\n\r\nIs this a bug. If not, this greatly detracts from the portability of the gob package."},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/368670598","html_url":"https://github.com/golang/go/issues/24126#issuecomment-368670598","issue_url":"https://api.github.com/repos/golang/go/issues/24126","id":368670598,"user":{"login":"andizzle","id":864065,"avatar_url":"https://avatars2.githubusercontent.com/u/864065?v=4","gravatar_id":"","url":"https://api.github.com/users/andizzle","html_url":"https://github.com/andizzle","followers_url":"https://api.github.com/users/andizzle/followers","following_url":"https://api.github.com/users/andizzle/following{/other_user}","gists_url":"https://api.github.com/users/andizzle/gists{/gist_id}","starred_url":"https://api.github.com/users/andizzle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andizzle/subscriptions","organizations_url":"https://api.github.com/users/andizzle/orgs","repos_url":"https://api.github.com/users/andizzle/repos","events_url":"https://api.github.com/users/andizzle/events{/privacy}","received_events_url":"https://api.github.com/users/andizzle/received_events","type":"User","site_admin":false},"created_at":"2018-02-26T22:16:33Z","updated_at":"2018-02-26T22:16:33Z","author_association":"NONE","body":"@pjebs, @cznic could be right, we are not using `init()` to `Register`. The `Register` can occur multiple times in dynamic order in the current program. Let's investigate."}}
{"actor":{"display_login":"andizzle"}}