Stream cannot be replicated on non-leader nodes after partition #13768
-
Community Support Policy
RabbitMQ version used4.0.8 Erlang version used27.3.x Operating system (distribution) usedUbuntu 22.04 How is RabbitMQ deployed?Community Docker image rabbitmq-diagnostics status outputSee https://www.rabbitmq.com/docs/cli to learn how to use rabbitmq-diagnostics
Logs from node 1 (with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs
Logs from node 2 (if applicable, with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs
Logs from node 3 (if applicable, with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs
rabbitmq.confSee https://www.rabbitmq.com/docs/configure#config-location to learn how to find rabbitmq.conf file location
Steps to deploy RabbitMQ clusterThree node cluster Steps to reproduce the behavior in question
advanced.configSee https://www.rabbitmq.com/docs/configure#config-location to learn how to find advanced.config file location
Application code# PASTE CODE HERE, BETWEEN BACKTICKS Kubernetes deployment file# Relevant parts of K8S deployment that demonstrate how RabbitMQ is deployed
# PASTE YAML HERE, BETWEEN BACKTICKS What problem are you trying to solve?I run a 3-node setup with a stream created with node 2 as leader. After network partition and restoring to 3 nodes again, the leader cannot create replica on the non-leader nodes. Is this a known issue, what's might be missing in the setup to handle a situation like this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
@malmetom according to the logs, all replicas report a missing local file. This is not a known problem. Perhaps the stream could never finish replicating even the initial "chunk". Can you share data directories of these nodes? That's the only way to suggest anything specific. |
Beta Was this translation helpful? Give feedback.
-
@malmetom also, if you can reproduce this behavior reliably, please use |
Beta Was this translation helpful? Give feedback.
@malmetom max segment of 256 bytes is way too low to be practically useful. That setting supports values up to 3 GiB.