Skip to content

feat(udf): allow different iginx nodes to have same udf when needInitBasicUDFFunctions is true#2

Open
ChihuaYing wants to merge 1 commit into
mainfrom
feat_ych_20260427
Open

feat(udf): allow different iginx nodes to have same udf when needInitBasicUDFFunctions is true#2
ChihuaYing wants to merge 1 commit into
mainfrom
feat_ych_20260427

Conversation

@ChihuaYing
Copy link
Copy Markdown
Owner

当配置文件的needInitBasicUDFFunctions为true时,原本逻辑下不同的iginx不能同时拥有同名的UDF(会覆盖),现在则支持。

Copilot AI review requested due to automatic review settings April 27, 2026 08:50
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Enables multiple IginX nodes to share the same UDF name when needInitBasicUDFFunctions=true, avoiding unintended overwrites by appending the current node’s ip:port to the existing UDF metadata instead of replacing it.

Changes:

  • Update existing UDF metadata (taskMeta) by adding the current node ip:port and persisting it, rather than updating with the newly created meta.
  • Ensures UDF metadata aggregation across nodes during basic UDF initialization.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 179 to 186
if (taskMeta == null) {
metaManager.addPyFunction(meta);
} else if (!taskMeta.containsIpPort(config.getIp(), config.getPort())) {
meta.addIpPort(config.getIp(), config.getPort());
metaManager.updatePyFunction(meta);
taskMeta.addIpPort(config.getIp(), config.getPort());
metaManager.updatePyFunction(taskMeta);
}

if (!meta.getType().equals(UDFType.TRANSFORM)) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants