search: Guarantee search-after-write consistency (#109972)

This commit is contained in:
Peter Štibraný
2025-08-25 10:13:07 +02:00
committed by GitHub
parent 9a668ce06f
commit 4c996a8a7f
11 changed files with 863 additions and 133 deletions
@@ -86,7 +86,7 @@ func runTestSearchBackendBuildIndex(t *testing.T, backend resource.SearchBackend
return 0, err
}
return 1, nil
})
}, nil)
require.NoError(t, err)
require.NotNil(t, index)
@@ -152,7 +152,7 @@ func runTestResourceIndex(t *testing.T, backend resource.SearchBackend, nsPrefix
})
require.NoError(t, err)
return int64(2), nil
})
}, nil)
require.NoError(t, err)
require.NotNil(t, index)
@@ -294,7 +294,7 @@ func runTestResourceIndex(t *testing.T, backend resource.SearchBackend, nsPrefix
})
require.NoError(t, err)
return int64(3), nil
})
}, nil)
require.NoError(t, err)
require.NotNil(t, index)