BPMN
step1:
payload := map[string]interface{}{“user”:“zeebe0”,“level”:“high”}
zbClient.NewCreateInstanceCommand().BPMNProcessId(“my bpmn process id”).LatestVersion().PayloadFromMap(payload).Send()
step2:
zbClient.NewPublishMessageCommand().MessageName(“handle”).CorrelationKey(“zeebe”).PayloadFromMap(otherPayload).Send()
(I give a wrong CorrelationKey(“zeebe”) where need CorrelationKey(“zeebe0”) ~~~)
after step2, zeebe broker go wrong, and error log:
17:38:55.001 [zb-stream-processor] [0.0.0.0:26501-zb-actors-0] ERROR io.zeebe.logstreams - Stream processor ‘zb-stream-processor’ failed to process event. It stop processing further events.
java.lang.IllegalStateException: Expected to find subscription with key 3458764513820540966, but no subscription found
at io.zeebe.broker.subscription.message.state.MessageSubscriptionState.lambda$visitSubscriptions$0(MessageSubscriptionState.java:216) ~[zeebe-broker-core-0.14.0.jar:0.14.0]
at io.zeebe.logstreams.rocksdb.ZbRocksDb.forEachPrefixed(ZbRocksDb.java:277) ~[zb-logstreams-0.14.0.jar:0.14.0]
at io.zeebe.broker.subscription.message.state.MessageSubscriptionState.visitSubscriptions(MessageSubscriptionState.java:206) ~[zeebe-broker-core-0.14.0.jar:0.14.0]
at io.zeebe.broker.subscription.message.processor.PublishMessageProcessor.handleNewMessage(PublishMessageProcessor.java:98) ~[zeebe-broker-core-0.14.0.jar:0.14.0]
at io.zeebe.broker.subscription.message.processor.PublishMessageProcessor.processRecord(PublishMessageProcessor.java:82) ~[zeebe-broker-core-0.14.0.jar:0.14.0]
at io.zeebe.broker.logstreams.processor.TypedRecordProcessor.processRecord(TypedRecordProcessor.java:56) ~[zeebe-broker-core-0.14.0.jar:0.14.0]
…