Hi team,

We are using beta1. I am going to delete all topics and create them with more 
partitions.
But I don't want to lose any messages.

Assume the consumers are online all the time for the following steps. The 
consumer's
auto.offset.reset is set to largest.

1 stop publishing to the brokers.
2 wait until all N messages on the brokers have been consumed
3 delete all topics. That includes deleting the log files and 
/brokers/topics/mytopic and
/consumers/myusergroup/owners/mytopic and /consumers/myusergroup/offsets/mytopic
4 recreate all the topics with more partitions.
5 start the brokers
6 resume publishing to the brokers

When a consumer tries to get the next message from a newly created topic, will 
the OutOfRange
Exception will reset the offset to 0 in this case?
Thanks,

Libo

Reply via email to