What is happening
At startup the broker checks CommitLog records and dispatches them into ConsumeQueue and index structures. Abnormal shutdown recovery can truncate invalid tails, which is appropriate only after the last valid physical offset is established on protected copies. In replicated deployments, broker copies may differ because of acknowledgment mode and replication lag.