{"action":"created","issue":{"url":"https://api.github.com/repos/zeebe-io/zeebe/issues/2917","repository_url":"https://api.github.com/repos/zeebe-io/zeebe","labels_url":"https://api.github.com/repos/zeebe-io/zeebe/issues/2917/labels{/name}","comments_url":"https://api.github.com/repos/zeebe-io/zeebe/issues/2917/comments","events_url":"https://api.github.com/repos/zeebe-io/zeebe/issues/2917/events","html_url":"https://github.com/zeebe-io/zeebe/issues/2917","id":476698652,"node_id":"MDU6SXNzdWU0NzY2OTg2NTI=","number":2917,"title":"Broker keeps throwing exception when deploying a large BPMN file","user":{"login":"echou","id":161378,"node_id":"MDQ6VXNlcjE2MTM3OA==","avatar_url":"https://avatars1.githubusercontent.com/u/161378?v=4","gravatar_id":"","url":"https://api.github.com/users/echou","html_url":"https://github.com/echou","followers_url":"https://api.github.com/users/echou/followers","following_url":"https://api.github.com/users/echou/following{/other_user}","gists_url":"https://api.github.com/users/echou/gists{/gist_id}","starred_url":"https://api.github.com/users/echou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/echou/subscriptions","organizations_url":"https://api.github.com/users/echou/orgs","repos_url":"https://api.github.com/users/echou/repos","events_url":"https://api.github.com/users/echou/events{/privacy}","received_events_url":"https://api.github.com/users/echou/received_events","type":"User","site_admin":false},"labels":[{"id":1150253323,"node_id":"MDU6TGFiZWwxMTUwMjUzMzIz","url":"https://api.github.com/repos/zeebe-io/zeebe/labels/Type:%20Bug","name":"Type: Bug","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-08-05T07:26:27Z","updated_at":"2019-08-05T07:45:27Z","closed_at":null,"author_association":"NONE","body":"**Describe the bug**\r\n\r\nWhen I deploy a 60KB BPMN file, the broker keeps logging IllegalStateException very rapidly.\r\n\r\n**To Reproduce**\r\nDeploy a large BPMN file (base64 encoded > 64KB)\r\n\r\nIf possible add a minimal reproducer code sample\r\n - when using the Java client: https://github.com/zeebe-io/zeebe-test-template-java\r\n\r\n**Expected behavior**\r\nA clear and concise description of what you expected to happen.\r\n\r\n**Log/Stacktrace**\r\n\r\n15:16:43.026 [stream-processor] [10.123.96.200:26501-zb-actors-0] ERROR io.zeebe.processor - Expected to process event 'TypedEventImpl{metadata=RecordMetadata{recordType=COMMAND, intentValue=255, intent=DISTRIBUTE, requestStreamId=-2147483648, requestId=-1, protocolVersion=1, valueType=DEPLOYMENT, rejectionType=NULL_VAL, rejectionReason=}, value={  .... }\r\njava.lang.IllegalStateException: length > maxValue for type: 75830\r\n\tat io.zeebe.protocol.record.RecordMetadataEncoder.putRejectionReason(RecordMetadataEncoder.java:469) ~[zeebe-protocol-0.21.0-SNAPSHOT.jar:0.21.0-SNAPSHOT]\r\n\tat io.zeebe.protocol.impl.record.RecordMetadata.write(RecordMetadata.java:110) ~[zeebe-protocol-impl-0.21.0-SNAPSHOT.jar:0.21.0-SNAPSHOT]\r\n\tat io.zeebe.logstreams.log.LogStreamBatchWriterImpl.copyExistingEventToBuffer(LogStreamBatchWriterImpl.java:179) ~[zeebe-logstreams-0.21.0-SNAPSHOT.jar:0.21.0-SNAPSHOT]\r\n\tat io.zeebe.logstreams.log.LogStreamBatchWriterImpl.done(LogStreamBatchWriterImpl.java:151) ~[zeebe-logstreams-0.21.0-SNAPSHOT.jar:0.21.0-SNAPSHOT]\r\n\tat io.zeebe.engine.processor.TypedCommandWriterImpl.appendRecord(TypedCommandWriterImpl.java:94) ~[zeebe-workflow-engine-0.21.0-SNAPSHOT.jar:0.21.0-SNAPSHOT]\r\n\tat io.zeebe.engine.processor.TypedStreamWriterImpl.appendRejection(TypedStreamWriterImpl.java:29) ~[zeebe-workflow-engine-0.21.0-SNAPSHOT.jar:0.21.0-SNAPSHOT]\r\n\tat io.zeebe.engine.processor.ProcessingStateMachine.writeRejectionOnCommand(ProcessingStateMachine.java:312) ~[zeebe-workflow-engine-0.21.0-SNAPSHOT.jar:0.21.0-SNAPSHOT]\r\n\tat io.zeebe.engine.processor.ProcessingStateMachine.lambda$errorHandlingInTransaction$4(ProcessingStateMachine.java:296) ~[zeebe-workflow-engine-0.21.0-SNAPSHOT.jar:0.21.0-SNAPSHOT]\r\n\tat io.zeebe.db.impl.rocksdb.transaction.ZeebeTransaction.run(ZeebeTransaction.java:69) ~[zeebe-db-0.21.0-SNAPSHOT.jar:0.21.0-SNAPSHOT]\r\n\tat io.zeebe.engine.processor.ProcessingStateMachine.errorHandlingInTransaction(ProcessingStateMachine.java:291) ~[zeebe-workflow-engine-0.21.0-SNAPSHOT.jar:0.21.0-SNAPSHOT]\r\n\tat io.zeebe.engine.processor.ProcessingStateMachine.lambda$onError$3(ProcessingStateMachine.java:279) ~[zeebe-workflow-engine-0.21.0-SNAPSHOT.jar:0.21.0-SNAPSHOT]\r\n\tat io.zeebe.util.sched.future.FutureContinuationRunnable.run(FutureContinuationRunnable.java:27) [zeebe-util-0.21.0-SNAPSHOT.jar:0.21.0-SNAPSHOT]\r\n\tat io.zeebe.util.sched.ActorJob.invoke(ActorJob.java:76) [zeebe-util-0.21.0-SNAPSHOT.jar:0.21.0-SNAPSHOT]\r\n\tat io.zeebe.util.sched.ActorJob.execute(ActorJob.java:39) [zeebe-util-0.21.0-SNAPSHOT.jar:0.21.0-SNAPSHOT]\r\n\tat io.zeebe.util.sched.ActorTask.execute(ActorTask.java:128) [zeebe-util-0.21.0-SNAPSHOT.jar:0.21.0-SNAPSHOT]\r\n\tat io.zeebe.util.sched.ActorThread.executeCurrentTask(ActorThread.java:108) [zeebe-util-0.21.0-SNAPSHOT.jar:0.21.0-SNAPSHOT]\r\n\tat io.zeebe.util.sched.ActorThread.doWork(ActorThread.java:92) [zeebe-util-0.21.0-SNAPSHOT.jar:0.21.0-SNAPSHOT]\r\n\tat io.zeebe.util.sched.ActorThread.run(ActorThread.java:196) [zeebe-util-0.21.0-SNAPSHOT.jar:0.21.0-SNAPSHOT]\r\n\r\n**Environment:**\r\n - OS: Linux\r\n - Zeebe Version: 0.21.0-SNAPSHOT (from docker camunda/zeebe:SNAPSHOT)\r\n - Configuration: [e.g. exporters etc.]\r\n\r\n[cluster]\r\nnodeId = 0\r\nreplicationFactor = 2\r\npartitionsCount = 2\r\nclusterSize = 2\r\nclusterName = \"zeebe-cluster-0\"\r\n\r\n[data]\r\ndirectories = [ \"data\" ]\r\nsnapshotPeriod = \"15m\"\r\nmaxSnapshots = \"3\"\r\n\r\n[[exporters]]\r\nid = \"elasticsearch\"\r\nclassName = \"io.zeebe.exporter.ElasticsearchExporter\"\r\n  [exporters.args]\r\n  url = \"...\"\r\n  [exporters.args.bulk]\r\n  delay = 5\r\n  size = 1000\r\n  [exporters.args.index]\r\n  prefix = \"zeebe-record-0\"\r\n  createTemplate = true\r\n  command = false\r\n  event = true\r\n  rejection = false\r\n  deployment = true\r\n  error = true\r\n  incident = true\r\n  job = true\r\n  jobBatch = false\r\n  message = true\r\n  messageSubscription = true\r\n  variable = true\r\n  variableDocument = false\r\n  workflowInstance = true\r\n  workflowInstanceCreation = false\r\n  workflowInstanceSubscription = true\r\n"},"comment":{"url":"https://api.github.com/repos/zeebe-io/zeebe/issues/comments/518124552","html_url":"https://github.com/zeebe-io/zeebe/issues/2917#issuecomment-518124552","issue_url":"https://api.github.com/repos/zeebe-io/zeebe/issues/2917","id":518124552,"node_id":"MDEyOklzc3VlQ29tbWVudDUxODEyNDU1Mg==","user":{"login":"echou","id":161378,"node_id":"MDQ6VXNlcjE2MTM3OA==","avatar_url":"https://avatars1.githubusercontent.com/u/161378?v=4","gravatar_id":"","url":"https://api.github.com/users/echou","html_url":"https://github.com/echou","followers_url":"https://api.github.com/users/echou/followers","following_url":"https://api.github.com/users/echou/following{/other_user}","gists_url":"https://api.github.com/users/echou/gists{/gist_id}","starred_url":"https://api.github.com/users/echou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/echou/subscriptions","organizations_url":"https://api.github.com/users/echou/orgs","repos_url":"https://api.github.com/users/echou/repos","events_url":"https://api.github.com/users/echou/events{/privacy}","received_events_url":"https://api.github.com/users/echou/received_events","type":"User","site_admin":false},"created_at":"2019-08-05T07:45:27Z","updated_at":"2019-08-05T07:45:27Z","author_association":"NONE","body":"this issue is not the same as #2851. In my case, the error is thrown repeatedly and the logfile grows very fast.  It seems to be related to cluster sync (intent = \"DISTRIBUTE\")?"}}
{"actor":{"display_login":"echou"}}