[xCluster] Improve IsBootstrapRequired check #18698
Labels
area/docdb
YugabyteDB core features
kind/enhancement
This is an enhancement of an existing feature
priority/low
Low priority
Jira Link: DB-7607
Description
Today we check latest opid is 1 to determine if any WAL entries exist. This is over aggressive as we can have WAL entries that dont add any data like change metadata ops. Also we can have data even without any WAL in cases where we restore a DB.
A better option is to check if there are any rows in the tablet instead of relying on WAL opIDs.
Warning: Please confirm that this issue does not contain any sensitive information
The text was updated successfully, but these errors were encountered: