Skip to content

Commit c657b6b

Browse files
authored
fix: parquet not found on ingester (openobserve#7024)
1 parent c334ffb commit c657b6b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/job/files/parquet.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,7 @@ async fn move_files(
556556
for file in new_file_list.iter() {
557557
// use same lock to combine the operations of check lock and add to removing list
558558
let wal_lock = infra::local_lock::lock("wal").await?;
559+
let lock_guard = wal_lock.lock().await;
559560
let can_delete = if wal::lock_files_exists(&file.key) {
560561
log::warn!(
561562
"[INGESTER:JOB:{thread_id}] the file is in use, set to pending delete list: {}",
@@ -577,7 +578,7 @@ async fn move_files(
577578
db::file_list::local::add_removing(&file.key).await?;
578579
true
579580
};
580-
drop(wal_lock);
581+
drop(lock_guard);
581582

582583
if can_delete {
583584
match remove_file(wal_dir.join(&file.key)) {

src/service/search/grpc/wal.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,7 @@ async fn get_file_list_inner(
558558

559559
// use same lock to combine the operations of filter by pending delete and lock files
560560
let wal_lock = infra::local_lock::lock("wal").await?;
561+
let lock_guard = wal_lock.lock().await;
561562

562563
// filter by pending delete
563564
let files = crate::service::db::file_list::local::filter_by_pending_delete(files).await;
@@ -567,7 +568,7 @@ async fn get_file_list_inner(
567568

568569
// lock theses files
569570
wal::lock_files(&files);
570-
drop(wal_lock);
571+
drop(lock_guard);
571572

572573
let stream_params = Arc::new(StreamParams::new(
573574
&query.org_id,

0 commit comments

Comments
 (0)