----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/29231/#review65582 -----------------------------------------------------------
core/src/main/scala/kafka/tools/ConsoleProducer.scala <https://reviews.apache.org/r/29231/#comment108830> remove() returns the value assigned to the key being removed, so you could simply do: topic = props.remove("topic") instead of the getProperty() and remove() - Eric Olander On Dec. 19, 2014, 1:56 a.m., Gwen Shapira wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/29231/ > ----------------------------------------------------------- > > (Updated Dec. 19, 2014, 1:56 a.m.) > > > Review request for kafka. > > > Bugs: KAFKA-1824 > https://issues.apache.org/jira/browse/KAFKA-1824 > > > Repository: kafka > > > Description > ------- > > fixing accidental return of "WARN Property topic is not valid" > > > Diffs > ----- > > core/src/main/scala/kafka/tools/ConsoleProducer.scala > 1061cc74fac69693836f1e75add06b09d459a764 > > Diff: https://reviews.apache.org/r/29231/diff/ > > > Testing > ------- > > > Thanks, > > Gwen Shapira > >