Re: Checkpointing with custom metadata

2015-08-04 Thread Jason Gustafson
I couldn't find a jira for this, so I added KAFKA-2403. -Jason On Tue, Aug 4, 2015 at 9:36 AM, Jay Kreps wrote: > Hey James, > > You are right the intended use of that was to have a way to capture some > very small metadata about your state at the time of offset commit in an > atomic way. > > T

Re: Checkpointing with custom metadata

2015-08-04 Thread Jay Kreps
Hey James, You are right the intended use of that was to have a way to capture some very small metadata about your state at the time of offset commit in an atomic way. That field isn't exposed but we do need to add it to the new consumer api (I think just no one has done it yet. -Jay On Mon, Au

Re: Checkpointing with custom metadata

2015-08-03 Thread Gwen Shapira
If it was my architecture, I'd consider publishing a "control message" either to same topic or separate saying "done with topic A". The "thing" that needs to continue copying A also needs to know where to continue, so presumably if the "done with A" message is missing, it will read from sorted-topi

Re: Checkpointing with custom metadata

2015-08-03 Thread James Cheng
Nice new email address, Gwen. :) On Aug 3, 2015, at 3:17 PM, Gwen Shapira wrote: > You are correct. You can see that ZookeeperConsumerConnector is hardcoded > with null metadata. > https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/consumer/ZookeeperConsumerConnector.scala#L310

Re: Checkpointing with custom metadata

2015-08-03 Thread Gwen Shapira
You are correct. You can see that ZookeeperConsumerConnector is hardcoded with null metadata. https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/consumer/ZookeeperConsumerConnector.scala#L310 More interesting, it looks like the Metadata is not exposed in the new KafkaConsumer eit