-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
msgpack dependencies #473
Comments
Hi @SimonRichardson, It looks like there's been a new release of hashicorp/go-msgpack, and presumably that maintains our fork's absention from the new time serialization. We'll update this library to make use of that 1.1.5 release. |
If you update raft, then existing deployments that utilize the 0.5.5 release that upgrades to 1.5.5 will hit the following error, unless a migration is applied.
|
Ah, I think I misunderstood you. I thought you were talking about upgrading to newer hashicorp/go-msgpack versions that already exist. But your actual concern was: if hashicorp/go-msgpack were to pull in the upstream changes from ugorji/go, in particular ugorji/go@debb8e2, then any time.TIme values we serialized with older msgpack versions would be a problem. Is that right? |
Indeed. |
Hey there, |
This is still an issue that it would be good to see a fix for. |
This has been addressed, see #577 (comment). |
This is more of a potential problem that's up and coming, rather than a problem right now (msgpack v1.1.5 tag and mspack v0.5.5 as seen https://github.com/hashicorp/go-msgpack/tags). The upstream msgpack has changed how time was encoded/decoded and the workaround was provided.
I suspect either two options, decode the data with TimeNotBuiltin set and then encode it without, allowing a stable migration or it might be prudent to expose
TimeNotBuiltin
in the raft configuration (under another nameLegacyEncoding
or similar), so this can be changed for users with existing data.The text was updated successfully, but these errors were encountered: