Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Specify error code when log dir not found

...

The controller accepts the AssignReplicasToDirectories RPC and persists the assignment into metadata records. If the indicated log directory UUID is not a registered log directory then the call fails with an errorerror 57 — LOG_DIR_NOT_FOUND . If the indicated log directory UUID is listed as offline, then the replica is considered offline and the leader and ISR is updated accordingly, same as when the BrokerHeartbeat indicates a new offline log directory.

...