apache / apache/bookkeeper

Autorecovery does not process underreplicated empty ledgers

Open
#3,220 0 comments 0 reactions 0 assignees View on GitHub
type/bug
Dominant language
Java
Stars
2k
Forks
976
Avg merge
6d 15h
Merged PRs (30d)
7

Description

**BUG REPORT**

BK 4.14.3

bookie1 is decommissioned.

`bin/bookkeeper shell listunderreplicated -printmissingreplica`

```
2022-04-19T17:17:14,704 [main] INFO org.apache.bookkeeper.tools.cli.commands.autorecovery.ListUnderReplicatedCommand -
2022-04-19T17:17:14,704 [main] INFO org.apache.bookkeeper.tools.cli.commands.autorecovery.ListUnderReplicatedCommand - Ctime : 1650388634626
2022-04-19T17:17:14,705 [main] INFO org.apache.bookkeeper.tools.cli.commands.autorecovery.ListUnderReplicatedCommand - MissingReplica : bookie1:3181
```

```
org.apache.bookkeeper.tools.cli.commands.client.LedgerMetaDataCommand - LedgerMetadata{formatVersion=2, ensembleSize=3, writeQuorumSize=3, ackQuorumSize=2, state=CLOSED, length=0, lastEntryId=-1, digestType=CRC32, password=base64:, ensembles={0=[bookie3:3181, bookie2:3181, bookie1:3181]}, customMetadata={}}
```

Note `state=CLOSED, length=0, lastEntryId=-1`

Autorecovery does not delete it, does not update metadata.

***Additional context***

From prod.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.