Skip to content

branch-4.1: [refact](udf) remove the udf cache expiration_time ‌property‌ #63897#63991

Merged
yiguolei merged 1 commit into
branch-4.1from
auto-pick-63897-branch-4.1
Jun 2, 2026
Merged

branch-4.1: [refact](udf) remove the udf cache expiration_time ‌property‌ #63897#63991
yiguolei merged 1 commit into
branch-4.1from
auto-pick-63897-branch-4.1

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Jun 2, 2026

Cherry-picked from #63897

### What problem does this PR solve?
Problem Summary:
doc apache/doris-website#3845
```
CREATE FUNCTION print_12() RETURNS int 
PROPERTIES (
    "file" = "file:///path/to/java-udf-demo-jar-with-dependencies.jar",
    "symbol" = "org.apache.doris.udf.Print", 
    "always_nullable"="true",
    "type" = "JAVA_UDF",
    "static_load" = "true", // default value is false
    "expiration_time" = "60" // default value is 360 minutes
);
```

```
before in the java-udf could use  static_load and expiration_time to control the cache jar times in BE.
which use a backgroud thread to scan the jars every ten minutes, check it's init times, and then drop it if time expire.
those will cause some long running query failed when the backgroud thread remove it.
Now, remove the expiration_time, and the jar will be clean when drop fucntion immediately

```
@github-actions github-actions Bot requested a review from yiguolei as a code owner June 2, 2026 05:05
@hello-stephen
Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@hello-stephen
Copy link
Copy Markdown
Contributor

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 0.00% (0/73) 🎉
Increment coverage report
Complete coverage report

@yiguolei yiguolei merged commit ba921e3 into branch-4.1 Jun 2, 2026
29 of 32 checks passed
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.

3 participants