-
Notifications
You must be signed in to change notification settings - Fork 641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Truncate errorMessage
to prevent exceeding maxMessageSize
#11460
Comments
@oleschoenburg Could you explain a situation in which this would occur? Didn't we already fix this with #10402? |
@remcowesterhoud Maybe? I'm not sure tbh. @saig0 recommended to create an issue for this, maybe he can provide more context. |
@remcowesterhoud it's about improving the UX in Zeebe. We want to limit the If a client (i.e. a job worker) provides a too-large error message, we still want to fail the job and create an incident. Since it makes not much sense to store a huge error message and it could exceed the batch size, we cant to shrink the error message to a reasonable size. We raised the issue after seeing that a connector tried to fail a job with a huge error message. By accident, the error message contained a big JSON payload. As a result, the connector was not able to fail the job. See the details here. This situation could happen to any job worker. Or, even within the engine processing, for example, if an expression failed and we try to create an incident with a huge error message. |
12066: Limit error message size in job and incident records r=remcowesterhoud a=berkaycanbc ## Description Currently if a client (e.g. job worker) provides a too large error message (e.g. stack trace of the error), we try to store the whole provided message. That can cause the overall broker message size (set to 4mb at the moment) to be exceeded. Therefore, we fail to create records at all. This PR limits the job and incident error message size to 500 characters in order to be able to create job and incident records without hitting the max message size limit. ## Related issues <!-- Which issues are closed by this PR or are related --> closes #11460 Co-authored-by: camunda\berkay.can <[email protected]>
13453: [Backport stable/8.0] Limit error message size in job and incident records r=remcowesterhoud a=nicpuppa backport #12066 relates to #11460 13455: [Backport stable/8.0] fix: more precise and reliable way to force new leaders in tests r=remcowesterhoud a=backport-action # Description Backport of #10066 to `stable/8.0`. relates to #9921 Co-authored-by: camunda\berkay.can <[email protected]> Co-authored-by: Ole Schönburg <[email protected]>
Similar to https://github.com/camunda/connector-sdk/issues/345, Zeebe should truncate error messages it produces to a sensible value. This is to prevent extremely large generated error messages from exceeding the
maxMessageSize
which, for example, can lead to incidents not being created.For users, a truncated error message is more helpful than getting no response at all.
The text was updated successfully, but these errors were encountered: