Skip to content

Commit 936484d

Browse files
committed
Continuous snapshot data loss
1 parent c3ca182 commit 936484d

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

lib/collection/tests/integration/continuous_snapshot_test.rs

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ async fn test_continuous_snapshot() {
125125
)
126126
.await?;
127127

128+
// Insert one point at a time
128129
for i in 0..points_count {
129-
// Insert one point at a time
130130
let point = PointStructPersisted {
131131
id: i.into(),
132132
vector: VectorStructPersisted::Single(vec![i as f32, 0.0, 0.0, 0.0]),
@@ -192,6 +192,26 @@ async fn test_continuous_snapshot() {
192192
.await?;
193193
assert_eq!(set_result.status, UpdateStatus::Completed);
194194
}
195+
196+
// Retrieve one point at a time again with payload
197+
for i in 0..points_count {
198+
let retrieve_point = PointRequestInternal {
199+
ids: vec![i.into()],
200+
with_payload: Some(true.into()),
201+
with_vector: WithVector::Bool(false),
202+
};
203+
let hw_counter = HwMeasurementAcc::disposable();
204+
let retrieve_result = collection
205+
.retrieve(
206+
retrieve_point,
207+
None,
208+
&ShardSelectorInternal::All,
209+
None,
210+
hw_counter,
211+
)
212+
.await?;
213+
assert_eq!(retrieve_result.len(), 1);
214+
}
195215
}
196216
CollectionResult::Ok(())
197217
})

0 commit comments

Comments
 (0)