Commit Graph

214 Commits

Author SHA1 Message Date
43aa3ce1c7 Add the snapshots directory path to the IndexScheduler 2022-10-26 11:33:27 +02:00
e65f82bc86 Rename the Snapshot task into SnapshotCreation 2022-10-26 11:33:27 +02:00
c2842ad25f Rename the index-scheduler module into insta_snapshot 2022-10-26 11:33:27 +02:00
7d92614dcb Fix the inta-snapshot typos in the tests 2022-10-26 11:33:27 +02:00
7b3f156d03 Make sure that we don't delete or cancel future tasks
This should already have been the case before, but there is no harm
in adding another check.
2022-10-25 16:32:43 +02:00
5011ab395d remove an useless dbg 2022-10-25 15:46:36 +02:00
73b2f25f55 fix an issue with the dates 2022-10-25 15:46:36 +02:00
56fbe147ac add more naive tests around the document addition + remove the old unused snapshot files 2022-10-25 15:46:36 +02:00
b08cd4bd0c add some naive document addition tests 2022-10-25 15:46:36 +02:00
513544c1f3 Add index scheduler tests for task cancelation 2022-10-25 12:35:11 +02:00
0218d94054 Merge pull request #2956 from meilisearch/index-swap-empty-crash
Fix crash when batching an index swap task containing 0 swaps
2022-10-25 11:12:35 +02:00
d0c93e3573 rename received_document_ids to matched_documents in the DocumentDeletion task type (reimplementation of #2826) 2022-10-25 11:02:26 +02:00
37119d1295 reformat 2022-10-25 10:59:06 +02:00
4dabd2b8e7 fix clippy 2022-10-25 10:58:55 +02:00
3f0cfff687 Delete unreferenced insta-snapshot files 2022-10-25 10:57:03 +02:00
8d5d92f927 Fix crash when batching an index swap task containing 0 swaps 2022-10-25 10:57:03 +02:00
2a1f4ac4d9 remove a lot of unecessary clone and ref 2022-10-25 10:53:29 +02:00
6f418e73d0 Apply code review suggestions 2022-10-25 10:47:36 +02:00
57c07a533a Revert implementation of get_status to query only the database 2022-10-25 10:47:36 +02:00
c0a58f9141 Pause the index scheduler for one second when a fatal error occurs 2022-10-25 10:47:36 +02:00
44b8c8b713 Fix (hopefully) queries that include processing tasks 2022-10-25 10:47:36 +02:00
c562e380a0 Adjust task details correctly following index swap 2022-10-25 10:47:36 +02:00
dd7d758a6f Start testing unexpected errors and panics in index scheduler 2022-10-25 10:47:36 +02:00
6d9140115f Add assert method to verify validity of index scheduler state 2022-10-25 10:47:36 +02:00
3e45fdf7c5 rename the dumpExport to dumpCreation 2022-10-24 19:08:15 +02:00
3f5622f749 fix the task view and forward the task db size 2022-10-23 11:23:24 +02:00
395766bf26 fix clippy 2022-10-22 17:17:09 +02:00
3a95e6291e remove ununsed function 2022-10-22 17:05:33 +02:00
3283bb0454 fix clippy 2022-10-22 17:04:47 +02:00
e35bc48ba6 fix all the snapshots 2022-10-22 16:24:48 +02:00
b910e65a1d update all the snapshots with the new kind name 2022-10-22 16:24:48 +02:00
8bda5e0787 fix the autobatched document deletion 2022-10-22 16:07:55 +02:00
2387db8ab7 fix the index creation in case an index already exists 2022-10-22 16:07:55 +02:00
9219bec053 fix the failed document addition with a primary key 2022-10-22 16:07:55 +02:00
d065a3e4f0 fix the import of the dumpv4&v5 when there is no instance-uid + rename the Kind+KindWithContent+Details variant for the DocumentImport and the Setting 2022-10-22 16:07:55 +02:00
5bb9023722 fix the error messages and the index stats 2022-10-22 16:07:55 +02:00
e495e2ec9d fix the index creation 2022-10-21 13:58:58 +02:00
85d567e878 Sort the TOML dependencies 2022-10-20 18:03:35 +02:00
3f6bd7fb11 Introduce a rustfmt file 2022-10-20 18:00:07 +02:00
2338eff20b Reapply #2830 2022-10-20 17:33:31 +02:00
2a51161258 Fix allow_index_creation useless field 2022-10-20 16:39:25 +02:00
a257904cf4 Fix the insta tests 2022-10-20 16:39:25 +02:00
cb3ccee401 push the snapshot files 2022-10-20 16:39:25 +02:00
f1acafcf1c fix the index deletion when the index doesn’t exists but would be created by one of the autobatched tasks 2022-10-20 16:39:24 +02:00
f816dc5221 fix the last rule about merging the allow_index_creation 2022-10-20 16:39:24 +02:00
6966256a3b simplify the code A LOT and create less false positive 2022-10-20 16:39:24 +02:00
1fa6193f48 add a whole new batch of tests around the index already exists / allow_index_creation 2022-10-20 16:39:24 +02:00
a65317982f fix all the snapshot tests 2022-10-20 16:39:24 +02:00
3357c439e3 it probably works but it's also horrendous 2022-10-20 16:39:23 +02:00
8514c1c12b Apply review suggestions and stop using rtxn.commit 2022-10-20 16:39:23 +02:00