[HUDI-2016] Fixed bootstrap of Metadata Table when some actions are in progress. (#3083)
Metadata Table cannot be bootstrapped when any action is in progress. This is detected by the presence of inflight or requested instants. The bootstrapping is initiated in preWrite and postWrite of each commit. So bootstrapping will be retried again until it succeeds. Also added metrics for when the bootstrapping fails or a table is re-bootstrapped. This will help detect tables which are not getting bootstrapped.
This commit is contained in:
@@ -48,6 +48,8 @@ public class HoodieMetadataMetrics implements Serializable {
|
||||
public static final String BASEFILE_READ_STR = "basefile_read";
|
||||
public static final String INITIALIZE_STR = "initialize";
|
||||
public static final String SYNC_STR = "sync";
|
||||
public static final String REBOOTSTRAP_STR = "rebootstrap";
|
||||
public static final String BOOTSTRAP_ERR_STR = "bootstrap_error";
|
||||
|
||||
// Stats names
|
||||
public static final String STAT_TOTAL_BASE_FILE_SIZE = "totalBaseFileSizeInBytes";
|
||||
|
||||
Reference in New Issue
Block a user