@ -694,7 +695,7 @@ public class StreamsPartitionAssignor implements PartitionAssignor, Configurable
continue;
continue;
}
}
if(numPartitions<0){
if(numPartitions<0){
throwneworg.apache.kafka.streams.errors.TopologyBuilderException(String.format("%sTopic [%s] number of partitions not defined",logPrefix,topic.name()));
thrownewStreamsException(String.format("%sTopic [%s] number of partitions not defined",logPrefix,topic.name()));
finalStringexpectedMessage="org.apache.kafka.streams.errors.StreamsException: failed to initialize processor "+badNodeName;
&&causeinstanceofTopologyBuilderException
&&cause.getMessage().equals("Invalid topology building: Processor "+badNodeName+" has no access to StateStore "+LocalMockProcessorSupplier.STORE_NAME)){
assertThat(error,equalTo(expectedMessage));
throw(TopologyBuilderException)cause;
}else{
thrownewRuntimeException("Did expect different exception. Did catch:",e);
finalStringexpectedMessage="org.apache.kafka.streams.errors.StreamsException: failed to initialize processor "+badNodeName;
&&causeinstanceofTopologyBuilderException
&&cause.getMessage().equals("Invalid topology building: Processor "+badNodeName+" has no access to StateStore "+LocalMockProcessorSupplier.STORE_NAME)){
assertThat(error,equalTo(expectedMessage));
throw(TopologyBuilderException)cause;
}else{
thrownewRuntimeException("Did expect different exception. Did catch:",e);
finalStringexpectedMessage="org.apache.kafka.streams.errors.StreamsException: failed to initialize processor "+badNodeName;
||!(causeinstanceofTopologyBuilderException)
||!cause.getMessage().equals("Invalid topology building: Processor "+badNodeName+" has no access to StateStore "+LocalMockProcessorSupplier.STORE_NAME)){
assertThat(error,equalTo(expectedMessage));
thrownewRuntimeException("Did expect different exception. Did catch:",expected);