NullPointerException when sending out a response with no request metadata #1011
Labels
area/reliability
Relates to reliability
area/ux
Relates to user experience
kind/bug
Categorizes issue or PR as related to a bug.
severity/high
Marks a bug as having a noticeable impact on the user with no known workaround
support
Description
The
GrpcResponseWriter
currently always expects a pending request for every response it sends out, and will explode withNullPointerException
if this is not the case. Unfortunately, in the Zeebe engine, we sometimes send out responses anyway because the transport there simply ignores responses with no request metadata, i.e. request ID and stream ID are both the SBE null value, orTypedRecord#hasRequestMetadata
returns false.We should either mimic this behavior, or fix it on the Zeebe side. This currently prevents users from using any intermediate signal throw event.
See: camunda/camunda#15649
Support: https://jira.camunda.com/browse/SUPPORT-19727
Expected behaviour
No NPEs are thrown, or the issue is fixed on the Zeebe side (no responses are sent without request metadata). It would likely be good to anyway catch it here.
Reproduction steps
Test code
The text was updated successfully, but these errors were encountered: