Closed jzhn closed 1 year ago
Left the error code the same as we will pull this into 2.9.22. Can look at expanding the error description possibly in 2.10.
And if you want to move a stream, you can place it in any cluster or provide placement tags that it will use to select new peers and possibly a new cluster.
Defect
Make sure that these boxes are checked before submitting your issue -- thank you!
nats-server -DV
outputVersions of
nats-server
and affected client libraries used:OS/Container environment:
macOS 13.5 (22G74)
Steps or code to reproduce the issue:
╭────────────────────────────────────────────────────────────╮ │ RAFT Meta Group Information │ ├──────┬──────────┬────────┬─────────┬────────┬────────┬─────┤ │ Name │ ID │ Leader │ Current │ Online │ Active │ Lag │ ├──────┼──────────┼────────┼─────────┼────────┼────────┼─────┤ │ n1 │ fjFyEjc1 │ yes │ true │ true │ 0.00s │ 0 │ │ n2 │ 44jzkV9D │ │ true │ true │ 0.44s │ 0 │ │ n3 │ BXScrY9i │ │ true │ true │ 0.44s │ 0 │ ╰──────┴──────────┴────────┴─────────┴────────┴────────┴─────╯
$ nats --context east stream add \ --subjects test \ --storage file \ --replicas 1 \ --retention limits \ --discard old \ --max-age 1m \ --max-msgs=100 \ --max-msgs-per-subject=-1 \ --max-msg-size=-1 \ --max-bytes=-1 \ --dupe-window=1m \ --no-allow-rollup \ --no-deny-delete \ --no-deny-purge \ test
$ nats --context east stream report Obtaining Stream stats
╭─────────────────────────────────────────────────────────────────────────────────────────╮ │ Stream Report │ ├────────┬─────────┬───────────┬───────────┬──────────┬───────┬──────┬─────────┬──────────┤ │ Stream │ Storage │ Placement │ Consumers │ Messages │ Bytes │ Lost │ Deleted │ Replicas │ ├────────┼─────────┼───────────┼───────────┼──────────┼───────┼──────┼─────────┼──────────┤ │ test │ File │ │ 0 │ 0 │ 0 B │ 0 │ 0 │ n2* │ ╰────────┴─────────┴───────────┴───────────┴──────────┴───────┴──────┴─────────┴──────────╯
$ nats --context east stream cluster peer-remove test ? Select a Peer n2 11:33:19 Removing peer "n2" nats: error: peer remap failed (10075)
$ nats --context east stream report Obtaining Stream stats
╭─────────────────────────────────────────────────────────────────────────────────────────╮ │ Stream Report │ ├────────┬─────────┬───────────┬───────────┬──────────┬───────┬──────┬─────────┬──────────┤ │ Stream │ Storage │ Placement │ Consumers │ Messages │ Bytes │ Lost │ Deleted │ Replicas │ ├────────┼─────────┼───────────┼───────────┼──────────┼───────┼──────┼─────────┼──────────┤ │ test │ File │ │ 0 │ 0 │ 0 B │ 0 │ 0 │ │ ╰────────┴─────────┴───────────┴───────────┴──────────┴───────┴──────┴─────────┴──────────╯
$ nats --context east stream edit test nats: error: could not request Stream test configuration: stream is offline (10118)
$ nats --context east stream rm test ? Really delete Stream test Yes nats: error: could not remove Stream: stream is offline (10118)
$ nats --context east stream info test nats: error: could not request Stream info: stream is offline (10118)