Commit Graph

4366 Commits

Author SHA1 Message Date
Loïc Lecrenier
1f2e253bb6 Display more than one indexUid in a task view if necessary 2022-10-26 13:09:42 +02:00
Loïc Lecrenier
9207ba68db Fix a few index swap bugs.
1. Details of the indexSwap task
2. Query tasks with type=indexUid
3. Synchronous error message for multiple index not found
2022-10-26 13:00:27 +02:00
Irevoire
cf7b82497c Fix the last regression 2022-10-26 12:56:59 +02:00
Kerollmops
38f60b2eb1
Cargo insta test/review 2022-10-26 11:55:22 +02:00
Kerollmops
b2ae44c46c
Patch the IndexScheduler in meilisearch-http to use the options struct 2022-10-26 11:48:10 +02:00
Tamo
27dceaa87e remove useless print
Co-authored-by: Clément Renault <clement@meilisearch.com>
2022-10-26 11:45:19 +02:00
Irevoire
d1720d8431 add tests for the task deletion and task cancelation 2022-10-26 11:45:19 +02:00
Irevoire
1cf081f9a3 test the details of all tasks type 2022-10-26 11:45:19 +02:00
Kerollmops
6167baa9eb Introduce an options struct to create the IndexScheduler 2022-10-26 11:45:04 +02:00
Kerollmops
426246b1b4 cargo insta accept 2022-10-26 11:33:27 +02:00
Kerollmops
3a9938710f Clean-up some TODOs 2022-10-26 11:33:27 +02:00
Kerollmops
9d673f849e Fix some bugs with files 2022-10-26 11:33:27 +02:00
Kerollmops
9d5dfa7552 Handle the CLI options related to snapshots 2022-10-26 11:33:27 +02:00
Kerollmops
90f1334757 Compress the snapshot in a tarball 2022-10-26 11:33:27 +02:00
Kerollmops
19910f912d Reintroduce the versioning functions 2022-10-26 11:33:27 +02:00
Kerollmops
5151bde209 Declare the auth path in the index scheduler 2022-10-26 11:33:27 +02:00
Kerollmops
67566af599 Implement a first version of the snapshots 2022-10-26 11:33:27 +02:00
Kerollmops
43aa3ce1c7 Add the snapshots directory path to the IndexScheduler 2022-10-26 11:33:27 +02:00
Kerollmops
e65f82bc86 Rename the Snapshot task into SnapshotCreation 2022-10-26 11:33:27 +02:00
Kerollmops
c2842ad25f Rename the index-scheduler module into insta_snapshot 2022-10-26 11:33:27 +02:00
Kerollmops
7d92614dcb Fix the inta-snapshot typos in the tests 2022-10-26 11:33:27 +02:00
Kerollmops
2676268804
Patch the delete and cancel tasks routes 2022-10-26 11:11:53 +02:00
Loïc Lecrenier
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
Irevoire
5011ab395d remove an useless dbg 2022-10-25 15:46:36 +02:00
Irevoire
73b2f25f55 fix an issue with the dates 2022-10-25 15:46:36 +02:00
Irevoire
56fbe147ac add more naive tests around the document addition + remove the old unused snapshot files 2022-10-25 15:46:36 +02:00
Irevoire
b08cd4bd0c add some naive document addition tests 2022-10-25 15:46:36 +02:00
Loïc Lecrenier
513544c1f3 Add index scheduler tests for task cancelation 2022-10-25 12:35:11 +02:00
Irevoire
10716b9786
rename received_documents_ids to matched_documents 2022-10-25 12:06:01 +02:00
Clément Renault
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
Irevoire
d0c93e3573
rename received_document_ids to matched_documents in the DocumentDeletion task type (reimplementation of #2826) 2022-10-25 11:02:26 +02:00
Irevoire
37119d1295
reformat 2022-10-25 10:59:06 +02:00
Irevoire
4dabd2b8e7
fix clippy 2022-10-25 10:58:55 +02:00
Loïc Lecrenier
3f0cfff687 Delete unreferenced insta-snapshot files 2022-10-25 10:57:03 +02:00
Loïc Lecrenier
8d5d92f927 Fix crash when batching an index swap task containing 0 swaps 2022-10-25 10:57:03 +02:00
Irevoire
2a1f4ac4d9
remove a lot of unecessary clone and ref 2022-10-25 10:53:29 +02:00
Loïc Lecrenier
6f418e73d0 Apply code review suggestions 2022-10-25 10:47:36 +02:00
Loïc Lecrenier
57c07a533a Revert implementation of get_status to query only the database 2022-10-25 10:47:36 +02:00
Loïc Lecrenier
c0a58f9141 Pause the index scheduler for one second when a fatal error occurs 2022-10-25 10:47:36 +02:00
Loïc Lecrenier
44b8c8b713 Fix (hopefully) queries that include processing tasks 2022-10-25 10:47:36 +02:00
Loïc Lecrenier
c562e380a0 Adjust task details correctly following index swap 2022-10-25 10:47:36 +02:00
Loïc Lecrenier
dd7d758a6f Start testing unexpected errors and panics in index scheduler 2022-10-25 10:47:36 +02:00
Loïc Lecrenier
6d9140115f Add assert method to verify validity of index scheduler state 2022-10-25 10:47:36 +02:00
Irevoire
3e45fdf7c5
rename the dumpExport to dumpCreation 2022-10-24 19:08:15 +02:00
Irevoire
581d8b0a94 move the error types to meilisearch-http 2022-10-24 17:53:14 +02:00
Loïc Lecrenier
2b8b9e0418 Fix the /swap-indexes route API
1. payload
2. error messages
3. auth errors
2022-10-24 17:53:14 +02:00
Loïc Lecrenier
b74e009084 meili-snap: get the test name from the name of the function 2022-10-24 17:25:08 +02:00
Loïc Lecrenier
7fe392dc60 Only store full snapshots if env variable is set to true 2022-10-24 17:25:08 +02:00
Irevoire
3f5622f749
fix the task view and forward the task db size 2022-10-23 11:23:24 +02:00
Irevoire
395766bf26
fix clippy 2022-10-22 17:17:09 +02:00