-
Notifications
You must be signed in to change notification settings - Fork 579
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
Crash while publishing to the schema registry #3559
Comments
If you're publishing protobuf schema, then I'm 95% sure I have a reproducer for this, I'm working on a fix as top priority. |
Yes, this is protobuf schemas. |
I wasn't able to build a minimal repro so far but can reproduce this locally very easily. What I was trying to do is dump and restore the schema registry so it can be migrated from cp-schema-registry to redpanda. Here are the two scripts that I am using: https://gist.github.com/b235775c6191abfee075ac4c4fd3d9af There are currently 39 files generated by the sc-dump.sh script, each with different IDs and at version 1. Then I run the sc-restore.sh script and it fails randomly. If I add a sleep between each curl call the script doesn't fail (so far). Note that since I'm loading the same schema, I don't think it's generating new versions either. |
@zimbatm As a workaround, you may be able to dump and restore the raw records (perhaps something like MirrorMaker) on the |
The previous commits address Core CPP guideline CP.51 and CP.53, but there is still a crash when producing schema in quick succession. Copy the schema to prevent UB. Fix redpanda-data#3559 Signed-off-by: Ben Pope <ben@vectorized.io>
The previous commits address Core CPP guideline CP.51 and CP.53, but there is still a crash when producing schema in quick succession. Copy the schema to prevent UB. Fix redpanda-data#3559 Signed-off-by: Ben Pope <ben@vectorized.io>
The previous commits address Core CPP guideline CP.51 and CP.53, but there is still a crash when producing schema in quick succession. Copy the schema to prevent UB. Fix redpanda-data#3559 Signed-off-by: Ben Pope <ben@vectorized.io>
The previous commits address Core CPP guideline CP.51 and CP.53, but there is still a crash when producing schema in quick succession. There seems to be a miscompilation in sharded_store::make_valid_schema. See redpanda-data#3596 for details. Copying the schema is a workaround. Fix redpanda-data#3559 Signed-off-by: Ben Pope <ben@vectorized.io>
The previous commits address Core CPP guideline CP.51 and CP.53, but there is still a crash when producing schema in quick succession. There seems to be a miscompilation in sharded_store::make_valid_schema. See redpanda-data#3596 for details. Copying the schema is a workaround. Fix redpanda-data#3559 Signed-off-by: Ben Pope <ben@vectorized.io> (cherry picked from commit 5b5b9cf)
The previous commits address Core CPP guideline CP.51 and CP.53, but there is still a crash when producing schema in quick succession. There seems to be a miscompilation in sharded_store::make_valid_schema. See redpanda-data#3596 for details. Copying the schema is a workaround. Fix redpanda-data#3559 Signed-off-by: Ben Pope <ben@vectorized.io>
Version & Environment
Redpanda version:
vectorized/redpanda:v21.11.2
(docker image)What went wrong?
The service crashed while publishing a new schema to the registry.
What should have happened instead?
Not crash? :)
How to reproduce the issue?
It seems to only happen when writing a lot of schemas in short successions in the registry. I will update the issue once I get a better repro.
Additional information
Please attach any relevant logs, backtraces, or metric charts.
Backtrace:
The text was updated successfully, but these errors were encountered: