Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ private class UpdateBookie extends CliCommand {
description = "Bookie address (format: `address:port`)", required = true)
private String bookieAddress;

@Parameter(names = { "-r", "--rack" }, description = "Bookie rack name", required = true)
@Parameter(names = { "-r", "--rack" }, description = "Bookie rack name. "
+ "If you set a bookie rack name to slash (/) "
+ "or an empty string (\"\"): "
+ "if you use Pulsar earlier than 2.7.5, 2.8.3, and 2.9.2, "
+ "an an exception is thrown; "
+ "if you use Pulsar later than 2.7.5, 2.8.3, and 2.9.2, "
+ "it falls back to /default-rack or /default-region/default-rack.", required = true)
private String bookieRack;

@Parameter(names = { "--hostname" }, description = "Bookie host name", required = false)
Expand Down
4 changes: 4 additions & 0 deletions site2/docs/administration-isolation.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ bin/pulsar-admin namespaces set-bookie-affinity-group public/default \
--primary-group group-bookie1
```

> **Note**
>
> Do not set a bookie rack name to slash (`/`) or an empty string (`""`) if you use Pulsar earlier than 2.7.5, 2.8.3, and 2.9.2. For the bookie rack name restrictions, see [pulsar-admin bookies set-bookie-rack](https://pulsar.apache.org/tools/pulsar-admin/).

<!--REST API-->

[POST /admin/v2/namespaces/{tenant}/{namespace}/persistence/bookieAffinity](https://pulsar.apache.org/admin-rest-api/?version=master&apiversion=v2#operation/setBookieAffinityGroup)
Expand Down