mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-16 03:10:50 +00:00
Fail upgrade for indexes starting with fail-
- take a long time to upgrade for indexes starting with `long-`
This commit is contained in:
@ -25,6 +25,13 @@ impl IndexScheduler {
|
||||
i as u32,
|
||||
indexes.len() as u32,
|
||||
));
|
||||
if uid.starts_with("long-") {
|
||||
tracing::warn!("taking a long time to upgrade for test purposes");
|
||||
std::thread::sleep(std::time::Duration::from_secs(1200));
|
||||
}
|
||||
if uid.starts_with("fail-") {
|
||||
panic!("failing for test purposes");
|
||||
}
|
||||
let index = self.index(uid)?;
|
||||
let mut index_wtxn = index.write_txn()?;
|
||||
let regen_stats = milli::update::upgrade::upgrade(
|
||||
|
Reference in New Issue
Block a user