Skip to content

Commit

Permalink
Active Load: Fix load_active_listing_enable & load_active_listing_dir…
Browse files Browse the repository at this point in the history
…s hot load failure (apache#13491)
  • Loading branch information
YC27 authored Sep 12, 2024
1 parent 13097fe commit 5ea1301
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,15 @@ private void hotReloadActiveLoadDirs() {
if (IOTDB_CONFIG.getLoadActiveListeningDirs() != listeningDirsConfig.get()) {
synchronized (this) {
if (IOTDB_CONFIG.getLoadActiveListeningDirs() != listeningDirsConfig.get()) {
listeningDirs.clear();

listeningDirsConfig.set(IOTDB_CONFIG.getLoadActiveListeningDirs());
listeningDirs.addAll(Arrays.asList(IOTDB_CONFIG.getLoadActiveListeningDirs()));
}
}
}
} else {
listeningDirs.clear();
}
// Hot reload active load listening dir for pipe data sync
// Active load is always enabled for pipe data sync
Expand Down

0 comments on commit 5ea1301

Please sign in to comment.