Applies to: MQTT (paho) transport sessions. Audience: on-call operators. Risk: for a cap-violating publish, each poison drop is an acknowledged, deliberate message loss — the bridge acks a publish it refuses to process. The session itself stays healthy; the urgency is finding the publisher, not saving the bridge. A malformed or oversized packet from the broker is different: nothing is acked, but the session drops its connection and reads not ready for at least 30 s after each reject; see Broker sends a malformed or oversized packet.
The MQTT CONNECT advertises one inbound limit the broker can enforce: the
whole-packet Maximum Packet Size (max_payload_bytes + a 128 KiB metadata
allowance). The bridge’s finer caps — max_payload_bytes itself, the ingress
metadata byte cap (128 KiB), and the User Property count cap (128) — are
local: a compliant broker forwards any packet whose total fits, even when
an individual cap is violated. Any authorized publisher can therefore produce
such a packet, accidentally or deliberately.
The bridge acks-and-drops these packets (MQTTIngressPoisonDropped,
Error log once per violation class, Debug for repeats). It must not do
anything else: an un-acked rejection is redelivered by the broker on every
clean_start=false resume, and a session-terminal rejection would loop
restart → redeliver → terminal forever — a permanent, publisher-triggerable
kill switch for every route on the session.
Two violation classes are handled earlier, at the raw pre-decode guard, because only a broken broker can produce them: malformed MQTT structure and a packet larger than the advertised Maximum Packet Size. See Broker sends a malformed or oversized packet.
MQTTIngressPoisonDropped is non-zero (tagged session_id).mqtt: acked-and-dropped inbound packet violating a local ingress cap ...
with class = payload | user_properties | metadata, plus topic and
payload_bytes.ready; traffic on other topics flows.MQTTIngressUserPropertiesTruncated is non-zero alongside user_properties
drops: the publisher sent more than 129 User Properties per packet and the
pre-decode guard cut the list to 129 before the SDK decoded it, so the Error
log’s count reads 129 whatever was sent. The count on the wire is in the
session’s Debug log (wire_user_properties).class, topic, and sizes. Repeated
drops of the same class log at Debug — raise the log level temporarily if
you need per-message evidence, and for the real User Property count of a
truncated packet.max_payload_bytes): raise the cap.options.session.max_payload_bytes
(payload class). The metadata (128 KiB) and User Property (128) caps are
fixed adapter constants; traffic that exceeds them needs
a producer-side fix, not a bridge knob.Alert on ANY non-zero MQTTIngressPoisonDropped rate: it is always either a
misconfigured cap, a broken producer, or hostile traffic — never steady-state
normal.
The raw pre-decode guard rejects a packet with a malformed MQTT structure, or
one larger than the Maximum Packet Size the bridge advertised in CONNECT
(max_payload_bytes + 128 KiB), before Paho decodes it. The packet never
reaches a route, and nothing is acked. The guard drops the connection, not the
session: the session reconnects and is never terminal
(ADR 0021).
MQTTIngressRejected advances, tagged session_id. MQTTRouterDropped does
not count these rejects.mqtt: rejected inbound packet before Paho decoding; dropping the connection,
with client_id, error and streak (the number of consecutive rejects).
The error is mqtt: inbound packet size N exceeds Maximum Packet Size M before decoding
or mqtt: malformed inbound packet rejected before decoding.reconnect_delay and doubles with
each consecutive reject, up to reconnect_max_delay, with jitter. The extra
delay stops once no reject has arrived for 30 s.ready: false with service_level: none,
even while connected is true. It stays that way until a connection that
came up after the last reject has stayed up for 30 s, so expect at least 30 s
of not-ready after every reject.Received DISCONNECT from <client id> at debug level
and Client <client id> disconnected. The DISCONNECT is best effort: when
the bridge was writing a packet at that moment, it closes the socket without
one, and the broker logs a plain connection drop.ReconcileFailures). A session that is not lease-managed keeps restarting
(SessionRestarts), each time after a longer reject backoff. A lease-managed
session (exclusive, with a lease store) releases its lease and its unit is
rebuilt (SessionRebuilds), after a backoff of 1 s doubling to 30 s; a
standby may take the lease and hit the same packet. Either way the session
stays not ready, but the other sessions and routes in the process keep
running.Alert on ANY non-zero MQTTIngressRejected: a compliant broker never sends the
packets it counts. On an MQTT 3.1.1 session there is one more cause, a broker
in-flight limit above receive_maximum; see the next section.
A session with protocol_version: v3.1.1 changes three things on this page
(MQTT 3.1.1):
max_payload_bytes + 1
payload bytes and discards the rest, and the publish is acked and dropped on
MQTTIngressPoisonDropped with class payload. Follow the poison steps at
the top of this page. To bound how long such a transfer takes, set the
broker’s own maximum packet size (Mosquitto max_packet_size, EMQX
max_packet_size).MQTTIngressRejected can mean a window mismatch. MQTT 3.1.1 has no
Receive Maximum, so the session enforces receive_maximum itself. A broker
whose per-client in-flight limit is above it sends one publish too many, and
the session rejects it on every connection. The Error log names
receive_maximum and the remedy. Raise receive_maximum to at least the
broker’s limit (broker defaults: Mosquitto max_inflight_messages 20, EMQX
max_inflight 32, AWS IoT 100), or lower the broker’s limit. Nothing was
acked or lost: the broker redelivers once the limits fit. A malformed 3.1.1
packet, or an oversized packet other than a PUBLISH, is still a broker or
intermediary fault, as described above.