Skip to content

Commit 4285a64

Browse files
authored
Fix: Built-in pipeline was unexpectedly uninstalled (alibaba#2362)
1 parent 5a51f02 commit 4285a64

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

core/config/watcher/PipelineConfigWatcher.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ void PipelineConfigWatcher::InsertBuiltInPipelines(CollectionConfigDiff& pDiff,
100100
for (const auto& pipeline : builtInPipelines) {
101101
const string& pipelineName = pipeline.first;
102102
const string& pipleineDetail = pipeline.second;
103+
if (configSet.find(pipelineName) != configSet.end()) {
104+
LOG_WARNING(sLogger,
105+
("more than 1 built-in config with the same name is found",
106+
"skip current config")("pipeline name", pipelineName));
107+
continue;
108+
}
109+
configSet.insert(pipelineName);
103110

104111
string errorMsg;
105112
auto iter = mInnerConfigMap.find(pipelineName);

0 commit comments

Comments
 (0)