Uploaded image for project: 'Serverless logic'
  1. Serverless logic
  2. SRVLOGIC-298

Exception in greeting workflow pod when running concurrent requests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • False
    • None
    • False

      While running with jmeter, I noticed that the greeting workflow pod was throwing an exception, even though the execution of the flow did not render an error in the RHDH orchestrator UI. The exception is

      2024-05-13 14:29:54,101 ERROR [org.kie.kog.eve.pro.ReactiveMessagingEventPublisher] (executor-thread-26) Error while publishing message org.eclipse.microprofile.reactive.messaging.Message$8@6573e82a: java.lang.IllegalStateException: SRMSG00034: Insufficient downstream requests to emit item
      	at io.smallrye.reactive.messaging.providers.extension.ThrowingEmitter.emit(ThrowingEmitter.java:60)
      	at io.smallrye.reactive.messaging.providers.extension.AbstractEmitter.emit(AbstractEmitter.java:162)
      	at io.smallrye.reactive.messaging.providers.extension.MutinyEmitterImpl.lambda$sendMessage$4(MutinyEmitterImpl.java:72)
      	at io.smallrye.context.impl.wrappers.SlowContextualConsumer.accept(SlowContextualConsumer.java:21)
      	at io.smallrye.mutiny.operators.uni.builders.UniCreateWithEmitter.subscribe(UniCreateWithEmitter.java:22)
      	at io.smallrye.mutiny.operators.AbstractUni.subscribe(AbstractUni.java:36)
      	at io.smallrye.mutiny.operators.uni.UniEmitOn.subscribe(UniEmitOn.java:22)
      	at io.smallrye.mutiny.operators.AbstractUni.subscribe(AbstractUni.java:36)
      	at io.smallrye.mutiny.groups.UniSubscribe.withSubscriber(UniSubscribe.java:51)
      	at io.smallrye.mutiny.groups.UniSubscribe.with(UniSubscribe.java:110)
      	at io.smallrye.mutiny.groups.UniSubscribe.with(UniSubscribe.java:88)
      	at io.smallrye.reactive.messaging.providers.extension.MutinyEmitterImpl.sendMessageAndForget(MutinyEmitterImpl.java:50)
      	at org.kie.kogito.events.process.ReactiveMessagingEventPublisher$ReactiveMessageEmitter.accept(ReactiveMessagingEventPublisher.java:164)
      	at org.kie.kogito.events.process.ReactiveMessagingEventPublisher$ReactiveMessageEmitter.accept(ReactiveMessagingEventPublisher.java:161)
      	at org.kie.kogito.events.process.ReactiveMessagingEventPublisher.publishToTopic(ReactiveMessagingEventPublisher.java:135)
      	at org.kie.kogito.events.process.ReactiveMessagingEventPublisher.publish(ReactiveMessagingEventPublisher.java:98)
      	at org.kie.kogito.events.process.ReactiveMessagingEventPublisher.publish(ReactiveMessagingEventPublisher.java:120)
      	at org.kie.kogito.event.impl.BaseEventManager.lambda$publish$0(BaseEventManager.java:58)
      	at java.base/java.lang.Iterable.forEach(Iterable.java:75)
      	at org.kie.kogito.event.impl.BaseEventManager.publish(BaseEventManager.java:58)
      	at org.kie.kogito.services.uow.CollectingUnitOfWork.end(CollectingUnitOfWork.java:69)
      	at org.kie.kogito.services.uow.ManagedUnitOfWork.end(ManagedUnitOfWork.java:54)
      	at org.kie.kogito.services.uow.UnitOfWorkExecutor.executeInUnitOfWork(UnitOfWorkExecutor.java:41)
      	at org.kie.kogito.process.impl.ProcessServiceImpl.createProcessInstance(ProcessServiceImpl.java:70)
      	at org.kie.kogito.serverless.GreetingResource.createResource_greeting(GreetingResource.java:83)
      	at org.kie.kogito.serverless.GreetingResource_ClientProxy.createResource_greeting(Unknown Source)
      

      From discussion in the serverless-workflows-parodos in slack, it looks like the problem is that the latest runtime build (quay.io/kiegroup/kogito-swf-builder-nightly:latest) does not contain a fix for this issue that was merged a few weeks ago. The fix would be to release a new image of the builder with the latest commit.

              kverlaen@redhat.com Kris Verlaenen
              jgil@redhat.com Jordi Gil
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: