Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove extra metastore call in indexing service #3668

Merged
merged 1 commit into from
Jul 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions quickwit/quickwit-indexing/src/actors/indexing_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,17 +238,14 @@ impl IndexingService {
source_config: SourceConfig,
pipeline_ord: usize,
) -> Result<IndexingPipelineId, IndexingServiceError> {
let index_metadata = self.metastore.index_metadata(index_id.as_str()).await?;
let index_metadata = self.index_metadata(ctx, &index_id).await?;
let pipeline_id = IndexingPipelineId {
index_uid: index_metadata.index_uid,
index_uid: index_metadata.index_uid.clone(),
source_id: source_config.source_id.clone(),
node_id: self.node_id.clone(),
pipeline_ord,
};
let index_config = self
.index_metadata(ctx, pipeline_id.index_uid.index_id())
.await?
.into_index_config();
let index_config = index_metadata.into_index_config();
self.spawn_pipeline_inner(ctx, pipeline_id.clone(), index_config, source_config)
.await?;
Ok(pipeline_id)
Expand Down
Loading