mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-06-03 13:50:40 +00:00
Update open region capability validation
This commit is contained in:
committed by
GitHub
parent
cbc8657f77
commit
d89bd201d2
@@ -74,7 +74,10 @@ impl OpenCandidateRegion {
|
||||
if matches!(open_reason, OpenRegionReason::RegionFailover) {
|
||||
let wal_options = region_wal_options
|
||||
.get(®ion_number)
|
||||
.map(|wal_options| serde_json::from_str::<WalOptions>(wal_options))
|
||||
.map(|wal_options| {
|
||||
serde_json::from_str::<WalOptions>(wal_options)
|
||||
.context(common_meta::error::SerdeJsonSnafu)
|
||||
})
|
||||
.transpose()
|
||||
.context(error::ParseWalOptionsSnafu)?;
|
||||
|
||||
|
||||
@@ -186,7 +186,6 @@ async fn test_batch_catchup_with_format(factory: Option<LogStoreFactory>, flat_f
|
||||
metadata_entry_id: None,
|
||||
location_id: None,
|
||||
checkpoint: None,
|
||||
required_capabilities: Default::default(),
|
||||
},
|
||||
)
|
||||
})
|
||||
@@ -234,7 +233,6 @@ async fn test_batch_catchup_err_with_format(factory: Option<LogStoreFactory>, fl
|
||||
metadata_entry_id: None,
|
||||
location_id: None,
|
||||
checkpoint: None,
|
||||
required_capabilities: Default::default(),
|
||||
},
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user