-
Bug
-
Resolution: Done
-
Critical
-
AMQ 7.5.0.GA
The broker crashes after publishing a new message using MQTT protocol if some conditions are met. One single message can make the server fails and stop.
The errors raised in the log before stopping are:
WARN [org.apache.activemq.artemis.core.server] AMQ222010: Critical IO Error, shutting down the server. file=AIOSequentialFile:/home/amq-broker-7.5.0/brokers/broker01/data/journal/activemq-data-1.amq, message=Can't write records (size=4363) bigger than the bufferSize(2048) on the journal: java.lang.IllegalStateException: Can't write records (size=4363) bigger than the bufferSize(2048) on the journal ERROR [org.apache.activemq.artemis.core.journal.impl.JournalImpl] appendAddRecordTransactional:java.lang.IllegalStateException: Can't write records (size=4363) bigger than the bufferSize(2048) on the journal: java.lang.IllegalStateException: Can't write records (size=4363) bigger than the bufferSize(2048) on the journal
If you send using MQTT a message meeting all of the following conditions, the broker will crash:
- Message size greater than the configured value for the broker property <journal-buffer-size>
- Quality of service: 2 (that's it EXACTLY_ONCE)
- Retain flag: TRUE
The error has been tested on AMQ 7.5 but it could also happen working with the latest version.
- is cloned by
-
ENTMQBR-5360 [LTS] [MQTT] Server shuts down processing received message
- Closed