mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-06-11 06:27:51 +00:00
And make index_not_found error asynchronous, since we can't know whether the index will exist by the time the index swap task is processed. Improve the index-swap test to verify that future tasks are not swapped and to test the new error messages that were introduced.
59 lines
2.2 KiB
Plaintext
59 lines
2.2 KiB
Plaintext
---
|
|
source: index-scheduler/src/lib.rs
|
|
---
|
|
### Autobatching Enabled = true
|
|
### Processing Tasks:
|
|
[]
|
|
----------------------------------------------------------------------
|
|
### All Tasks:
|
|
0 {uid: 0, status: succeeded, details: { primary_key: Some("id") }, kind: IndexCreation { index_uid: "b", primary_key: Some("id") }}
|
|
1 {uid: 1, status: succeeded, details: { primary_key: Some("id") }, kind: IndexCreation { index_uid: "a", primary_key: Some("id") }}
|
|
2 {uid: 2, status: succeeded, details: { primary_key: Some("id") }, kind: IndexCreation { index_uid: "d", primary_key: Some("id") }}
|
|
3 {uid: 3, status: succeeded, details: { primary_key: Some("id") }, kind: IndexCreation { index_uid: "c", primary_key: Some("id") }}
|
|
4 {uid: 4, status: succeeded, details: { swaps: [IndexSwap { indexes: ("a", "b") }, IndexSwap { indexes: ("c", "d") }] }, kind: IndexSwap { swaps: [IndexSwap { indexes: ("a", "b") }, IndexSwap { indexes: ("c", "d") }] }}
|
|
5 {uid: 5, status: enqueued, details: { swaps: [IndexSwap { indexes: ("a", "c") }] }, kind: IndexSwap { swaps: [IndexSwap { indexes: ("a", "c") }] }}
|
|
----------------------------------------------------------------------
|
|
### Status:
|
|
enqueued [5,]
|
|
succeeded [0,1,2,3,4,]
|
|
----------------------------------------------------------------------
|
|
### Kind:
|
|
"indexCreation" [0,1,2,3,]
|
|
"indexSwap" [4,5,]
|
|
----------------------------------------------------------------------
|
|
### Index Tasks:
|
|
a [1,4,5,]
|
|
b [0,4,]
|
|
c [3,4,5,]
|
|
d [2,4,]
|
|
----------------------------------------------------------------------
|
|
### Index Mapper:
|
|
["a", "b", "c", "d"]
|
|
----------------------------------------------------------------------
|
|
### Enqueued At:
|
|
[timestamp] [0,]
|
|
[timestamp] [1,]
|
|
[timestamp] [2,]
|
|
[timestamp] [3,]
|
|
[timestamp] [4,]
|
|
[timestamp] [5,]
|
|
----------------------------------------------------------------------
|
|
### Started At:
|
|
[timestamp] [0,]
|
|
[timestamp] [1,]
|
|
[timestamp] [2,]
|
|
[timestamp] [3,]
|
|
[timestamp] [4,]
|
|
----------------------------------------------------------------------
|
|
### Finished At:
|
|
[timestamp] [0,]
|
|
[timestamp] [1,]
|
|
[timestamp] [2,]
|
|
[timestamp] [3,]
|
|
[timestamp] [4,]
|
|
----------------------------------------------------------------------
|
|
### File Store:
|
|
|
|
----------------------------------------------------------------------
|
|
|