-
Notifications
You must be signed in to change notification settings - Fork 806
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
Any plans to migrate off of gogo protobuf? #4781
Comments
I think migrating to an actively maintained lib is always a good idea. I am not sure about the migration effort though since I haven't been working with Go ecosystem for long. @GiedriusS would this be something one can do in few hours? few days, or few weeks? |
Not sure about how much effort is needed for Cortex but I have done this recently for the Thanos codebase so it shouldn't take too long. Glad to hear that you would be open to such changes. I'll try migrating and see 👍 |
@GiedriusS based on thanos-io/thanos#5504 it looks like Thanos moved away from depending on Cortex; in this case, this issue is not blocking your work on thanos-io/thanos#5421 anymore right? |
This issue has been automatically marked as stale because it has not had any activity in the past 60 days. It will be closed in 15 days if no further activity occurs. Thank you for your contributions. |
Not stale |
Hi @GiedriusS :D How is the thanos migration off gogo? I think both projects should try to move out of it before its even harder.. WDYT? I just worried if we will have some perf penalty. |
This issue has been automatically marked as stale because it has not had any activity in the past 60 days. It will be closed in 15 days if no further activity occurs. Thank you for your contributions. |
/remove stale |
Hello from the Thanos project 👋
We've been working on trying to migrate to protobuf v2 API from the unmaintained gogoprotobuf. See this issue for details. Since Thanos calls Cortex code, it means that we need to be synchronized on this. Currently, my work is blocked due to this:
This is because of the problem described here. I think it's impossible workaround this from Thanos side without actually migrating Cortex to v2 protobuf API because Cortex at the moment of writing uses
anypb
, and that calls the code which looks for those fields that don't exist in the newly generated code. Perhaps it would be possible to fix this problem from Thanos side somehow but there is one critical problem - the newerstate
struct member is not recognized by the gogo code which means that it will always panic.I hope this ticket contains enough data. Has the Cortex team ever thought about this? It's tempting to update our fork of Cortex and to do (attempt to do) the migration there.
The text was updated successfully, but these errors were encountered: