@ -54,13 +55,12 @@ public class ProcessorContextImpl extends AbstractProcessorContext implements Re
@@ -54,13 +55,12 @@ public class ProcessorContextImpl extends AbstractProcessorContext implements Re
@ -69,7 +69,7 @@ public class ProcessorContextImpl extends AbstractProcessorContext implements Re
@@ -69,7 +69,7 @@ public class ProcessorContextImpl extends AbstractProcessorContext implements Re
}
if(!currentNode().stateStores.contains(name)){
throwneworg.apache.kafka.streams.errors.TopologyBuilderException("Processor "+currentNode().name()+" has no access to StateStore "+name);
thrownewStreamsException("Processor "+currentNode().name()+" has no access to StateStore "+name);
@ -694,7 +695,7 @@ public class StreamsPartitionAssignor implements PartitionAssignor, Configurable
@@ -694,7 +695,7 @@ public class StreamsPartitionAssignor implements PartitionAssignor, Configurable
continue;
}
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()));
&&cause.getMessage().equals("Invalid topology building: Processor "+badNodeName+" has no access to StateStore "+LocalMockProcessorSupplier.STORE_NAME)){
throw(TopologyBuilderException)cause;
}else{
thrownewRuntimeException("Did expect different exception. Did catch:",e);
}
finalStringerror=e.toString();
finalStringexpectedMessage="org.apache.kafka.streams.errors.StreamsException: failed to initialize processor "+badNodeName;
&&cause.getMessage().equals("Invalid topology building: Processor "+badNodeName+" has no access to StateStore "+LocalMockProcessorSupplier.STORE_NAME)){
throw(TopologyBuilderException)cause;
}else{
thrownewRuntimeException("Did expect different exception. Did catch:",e);
}
finalStringerror=e.toString();
finalStringexpectedMessage="org.apache.kafka.streams.errors.StreamsException: failed to initialize processor "+badNodeName;
||!cause.getMessage().equals("Invalid topology building: Processor "+badNodeName+" has no access to StateStore "+LocalMockProcessorSupplier.STORE_NAME)){
thrownewRuntimeException("Did expect different exception. Did catch:",expected);
}
}catch(finalStreamsExceptione){
finalStringerror=e.toString();
finalStringexpectedMessage="org.apache.kafka.streams.errors.StreamsException: failed to initialize processor "+badNodeName;