fix: compactor with block org (#2646)

This commit is contained in:
Hengfei Yang
2024-02-03 21:40:38 +08:00
committed by GitHub
parent 15183b588d
commit d2f5914d73
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -209,7 +209,7 @@ impl Writer {
Arc::new(immutable::Immutable::new(thread_id, key.clone(), old_mem)),
);
log::info!(
"[INGESTER:WAL] done add to IMMUTABLES, file: {}/{}/{}/{}.wal",
"[INGESTER:WAL] done add to IMMUTABLES, file: {}/{}/{}/{}.wal",
thread_id,
&key.org_id,
&key.stream_type,
+7
View File
@@ -173,6 +173,13 @@ pub async fn run_merge() -> Result<(), anyhow::Error> {
StreamType::Metadata,
];
for org_id in orgs {
// check backlist
if !db::file_list::BLOCKED_ORGS.is_empty()
&& db::file_list::BLOCKED_ORGS.contains(&org_id.as_str())
{
continue;
}
// get the working node for the organization
let (_, node) = db::compact::organization::get_offset(&org_id, "merge").await;
if !node.is_empty() && LOCAL_NODE_UUID.ne(&node) && get_node_by_uuid(&node).is_some() {