> On Dec. 19, 2014, 2:36 a.m., Eric Olander wrote: > > core/src/main/scala/kafka/tools/ConsoleProducer.scala, line 269 > > <https://reviews.apache.org/r/29231/diff/1/?file=797000#file797000line269> > > > > 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()
Will do. Thanks for the tip, Eric :) - Gwen ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/29231/#review65582 ----------------------------------------------------------- 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 > >