-
Notifications
You must be signed in to change notification settings - Fork 102
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
How to backup a topic with partition and offset data using camel-minio-sink plugin #1561
Comments
If the partition was originally assigned from the message key, you need to restore the messages using the same key. That requires some extra work that might or not be possible doing ootb depending on the fact that is possible to easily extract the key from s3 saved data. |
Thanks for the answer :) |
Well in theory you could save the partition of each message in s3 then reuse it to send it to a specific partition. Mind that I am not sure there are all the bits accessible already to achieve this. It sounds like a potentially interesting use case though. |
I agree that this is an interesting use case. Do you know if this is part of the road map? |
Well there is a part that is specific to your data that is not easy to generalize: do you have partition and/or key in the data you save to s3? |
I have partition and key in the data I want to safe to s3. But it seems to me that only the message (value) will be stored in the s3 objects. And restoring will result in publishing the messages to the same partition without any keys. |
For example, there is a message in Key (1 bytes): test-key
Value (4 bytes): test
Timestamp: 1693840308197 Partition: 1 Offset: 4 The object in the s3 bucket: $ mc cat mybucket/myobject
test After restoring the message to a new topic it looks like this:
|
Hi,
I am trying to backup Kafka topics to an s3 bucket and restore the data back to a Kafka topic with the camel-minio-sink plugin version 3.20.6.
What I am observing is that the offset will be restored but all messages will be written to the same partition in the restored topic, even if they were in the original topic in different partitions.
For example:
If we consume from the original topic with kcat:
If we backup the data and restore it back to a new topic:
Is it possible to backup the partition and offset data as well?
The text was updated successfully, but these errors were encountered: