> On Aug. 15, 2014, 12:12 a.m., Neha Narkhede wrote: > > clients/src/main/java/org/apache/kafka/common/protocol/Errors.java, line 56 > > <https://reviews.apache.org/r/24620/diff/3/?file=661064#file661064line56> > > > > I meant adding the existing InvalidTopicException here. I'm not sure if > > there is value in differentiting amongst all the reasons the topic is > > invalid. We could just return the generic InvalidTopicException. > > > > Sorry if my suggestion wasn't clear enough. > > Jonathan Natkins wrote: > Yeah, I understood the suggestion, I just have some mixed feelings about > giving a relatively generic error message. I guess it's sufficient to have a > more specific error message on the server, but it's a little unfortunate that > there's not a way to pass a customized error message back to a Producer when > something goes wrong. Makes for a more frustrating debugging session down the > line, which is why I changed this to be more specific. Thoughts?
That said, I believe revision 4 is the patch you were hoping for - Jonathan ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24620/#review50669 ----------------------------------------------------------- On Aug. 15, 2014, 1:21 a.m., Jonathan Natkins wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/24620/ > ----------------------------------------------------------- > > (Updated Aug. 15, 2014, 1:21 a.m.) > > > Review request for kafka. > > > Bugs: KAFKA-1580 > https://issues.apache.org/jira/browse/KAFKA-1580 > > > Repository: kafka > > > Description > ------- > > KAFKA-1580 Reject producer requests to internal topics > > > Diffs > ----- > > > clients/src/main/java/org/apache/kafka/common/errors/InvalidTopicException.java > PRE-CREATION > clients/src/main/java/org/apache/kafka/common/protocol/Errors.java > 3374bd98be8e565608c4e764ed10afdae383fb6f > core/src/main/scala/kafka/common/ErrorMapping.scala > 5559d26ba2b96059f719754a351fa4598ca8a70b > core/src/main/scala/kafka/server/KafkaApis.scala > bb94673c8f3079a4053e0a7d58689e69775cdf8b > core/src/test/scala/integration/kafka/api/ProducerFailureHandlingTest.scala > 789e74c776d99f204e0ef87eba1f55a3551abdf2 > > Diff: https://reviews.apache.org/r/24620/diff/ > > > Testing > ------- > > > Thanks, > > Jonathan Natkins > >