> On Jan. 12, 2015, 10:53 p.m., Joel Koshy wrote: > > core/src/test/scala/unit/kafka/admin/DeleteTopicTest.scala, line 251 > > <https://reviews.apache.org/r/29210/diff/5/?file=816889#file816889line251> > > > > Rather than an arbitrary sleep can we just use waitUntilTrue and the > > condition would be that the cleaner checkpoint file contains the topic.
Instead of waitUntilTrue, I'm calling LogCleaner.awaitCleaned, to avoid replicating the logic. This required exposing LogCleaner in LogManager. - Gwen ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/29210/#review67717 ----------------------------------------------------------- On Jan. 12, 2015, 7:17 p.m., Gwen Shapira wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/29210/ > ----------------------------------------------------------- > > (Updated Jan. 12, 2015, 7:17 p.m.) > > > Review request for kafka. > > > Bugs: KAFKA-1819 > https://issues.apache.org/jira/browse/KAFKA-1819 > > > Repository: kafka > > > Description > ------- > > added locking > > > improved tests per Joel and Neha's suggestions > > > added cleaner test to DeleteTopicTest > > > Fixes to DeleteTopicTest: clean up servers after cleaner test and move > cleaner verification to the validation function > > > Diffs > ----- > > core/src/main/scala/kafka/log/LogCleaner.scala > f8fcb843c80eec3cf3c931df6bb472c019305253 > core/src/main/scala/kafka/log/LogCleanerManager.scala > bcfef77ed53f94017c06a884e4db14531774a0a2 > core/src/main/scala/kafka/log/LogManager.scala > 4ebaae00ca4b80bf15c7930bae2011d98bbec053 > core/src/test/scala/unit/kafka/admin/DeleteTopicTest.scala > 29cc01bcef9cacd8dec1f5d662644fc6fe4994bc > core/src/test/scala/unit/kafka/log/LogCleanerIntegrationTest.scala > 5bfa764638e92f217d0ff7108ec8f53193c22978 > > Diff: https://reviews.apache.org/r/29210/diff/ > > > Testing > ------- > > > Thanks, > > Gwen Shapira > >