meilisearch/.github/workflows
meili-bors[bot] 45636d315c
Merge #3670
3670: Fix addition deletion bug r=irevoire a=irevoire

The first commit of this PR is a revert of https://github.com/meilisearch/meilisearch/pull/3667. It re-enable the auto-batching of addition and deletion of tasks. No new changes have been introduced outside of `milli`. So all the changes you see on the autobatcher have actually already been reviewed.

It fixes https://github.com/meilisearch/meilisearch/issues/3440.

### What was happening?

The issue was that the `external_documents_ids` generated in the `transform` were used in a very strange way that wasn’t compatible with the deletion of documents.
Instead of doing a clear merge between the external document IDs of the DB and the one returned by the transform + writing it on disk, we were doing some weird tricks with the soft-deleted to avoid writing the fst on disk as much as possible.
The new algorithm may be a bit slower but is way more straightforward and doesn’t change depending on if the soft deletion was used or not. Here is a list of the changes introduced:
1. We now do a clear distinction between the `new_external_documents_ids` coming from the transform and only held on RAM and the `external_documents_ids` coming from the DB.
2. The `new_external_documents_ids` (coming out of the transform) are now represented as an `fst`. We don't need to struggle with the hard, soft distinction + the soft_deleted => That's easier to understand
3. When indexing documents, we merge the `external_documents_ids` coming from the DB and the `new_external_documents_ids` coming from the transform.

### Other things introduced in this  PR

Since we constantly have to write small, very specialized fuzzers for this kind of bug, we decided to push the one used to reproduce this bug.
It's not perfect, but it's easy to improve in the future.
It'll also run for as long as possible on every merge on the main branch.

Co-authored-by: Tamo <tamo@meilisearch.com>
Co-authored-by: Loïc Lecrenier <loic.lecrenier@icloud.com>
2023-06-19 09:09:30 +00:00
..
benchmarks-manual.yml Clean CI file names 2023-03-08 19:12:33 +01:00
benchmarks-push-indexing.yml Clean CI file names 2023-03-08 19:12:33 +01:00
benchmarks-push-search-geo.yml Clean CI file names 2023-03-08 19:12:33 +01:00
benchmarks-push-search-songs.yml Clean CI file names 2023-03-08 19:12:33 +01:00
benchmarks-push-search-wiki.yml Clean CI file names 2023-03-08 19:12:33 +01:00
dependency-issue.yml Clean CI file names 2023-03-08 19:12:33 +01:00
flaky-tests.yml Clean CI file names 2023-03-08 19:12:33 +01:00
fuzzer-indexing.yml run the indexing fuzzer on every merge for as long as possible 2023-05-29 14:56:15 +02:00
latest-git-tag.yml Add missingneeds: to the git latest tag workflow 2023-01-12 15:04:11 +01:00
milestone-workflow.yml Remove core mention 2022-12-13 17:34:43 +01:00
publish-apt-brew-pkg.yml Bump svenstaro/upload-release-action from 2.5.0 to 2.6.1 2023-06-01 17:57:43 +00:00
publish-binaries.yml Bump svenstaro/upload-release-action from 2.5.0 to 2.6.1 2023-06-01 17:57:43 +00:00
publish-docker-images.yml Revert "Improve docker cache" 2023-05-25 11:48:26 +02:00
sdks-tests.yml Fix SDK CI for scheduled jobs 2023-06-06 10:38:05 +02:00
test-suite.yml Bump Swatinem/rust-cache from 2.2.1 to 2.4.0 2023-06-01 17:57:40 +00:00
update-cargo-toml-version.yml Update comments in version bump CI 2023-02-21 19:14:59 +01:00