Removing stream replica

68 views
Skip to first unread message

Arnaud Morin

unread,
Sep 4, 2023, 5:00:11 AM9/4/23
to rabbitm...@googlegroups.com
Hello rabbit team!

Is there any way to remove a stream replica from a dead node?
Here is my stream:

$ rabbitmq-streams stream_status engine_fanout
Status of stream engine_fanout on node rabbit@rabbit1 ...
┌─────────┬────────────────┬───────────┬───────────┬──────────────────┬──────────────┬───────────┬───────────┐
│ role │ node │ epoch │ offset │ committed_offset │ first_offset │ readers │ segments │
├─────────┼────────────────┼───────────┼───────────┼──────────────────┼──────────────┼───────────┼───────────┤
│ writer │ rabbit@rabbit4 │ 2 │ -1 │ -1 │ 0 │ 10 │ 0 │
├─────────┼────────────────┼───────────┼───────────┼──────────────────┼──────────────┼───────────┼───────────┤
│ replica │ rabbit@rabbit5 │ 2 │ -1 │ -1 │ 0 │ 7 │ 1 │
├─────────┼────────────────┼───────────┼───────────┼──────────────────┼──────────────┼───────────┼───────────┤
│ replica │ rabbit@rabbit6 │ undefined │ undefined │ undefined │ undefined │ undefined │ undefined │
└─────────┴────────────────┴───────────┴───────────┴──────────────────┴──────────────┴───────────┴───────────┘


When trying to delete the faulty replica:
$ rabbitmq-streams delete_replica engine_fanout rabbit@rabbit6
Removing a replica of queue engine_fanout on node rabbit@rabbit6...
Error:
node_not_running


Of course my node is not running, it's dead and will never come back (I have rabbit1 to replace it already up and running).
Is there any way to force the deletion of this faulty replica? I cant find this in documentation.

I am running:
erlang: 25.2.2
rabbit: 3.12.0


Cheers,
Arnaud

kjnilsson

unread,
Sep 4, 2023, 11:31:49 AM9/4/23
to rabbitmq-users
Oh dear it looks like an oversight / bug. I have raised a bug report here: https://github.com/rabbitmq/rabbitmq-server/issues/9282

Arnaud Morin

unread,
Sep 4, 2023, 12:07:50 PM9/4/23
to rabbitm...@googlegroups.com
waw, thanks!
> --
> You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/2d09f75a-9392-4beb-ae4a-6cc79747ecdbn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages