Skip to content

Conversation

@github-actions
Copy link
Contributor

Cherry-picked from #54031

…sue (#54031)

### What problem does this PR solve?

audit loader thread hang, and there are no new audit log in table
__internal_schema.audit_log

```
"audit loader thread" #59 prio=5 os_prio=0 cpu=19288.63ms elapsed=714273.53s tid=0x00007f7edaf559d0 nid=0x302e1e runnable  [0x00007f7e9c3fe000]
   java.lang.Thread.State: RUNNABLE
        at sun.nio.ch.SocketDispatcher.read0(java.base@17.0.13/Native Method)
        at sun.nio.ch.SocketDispatcher.read(java.base@17.0.13/SocketDispatcher.java:47)
        at sun.nio.ch.NioSocketImpl.tryRead(java.base@17.0.13/NioSocketImpl.java:266)
        at sun.nio.ch.NioSocketImpl.implRead(java.base@17.0.13/NioSocketImpl.java:317)
        at sun.nio.ch.NioSocketImpl.read(java.base@17.0.13/NioSocketImpl.java:355)
        at sun.nio.ch.NioSocketImpl$1.read(java.base@17.0.13/NioSocketImpl.java:808)
        at java.net.Socket$SocketInputStream.read(java.base@17.0.13/Socket.java:985)
        at java.io.BufferedInputStream.fill(java.base@17.0.13/BufferedInputStream.java:244)
        at java.io.BufferedInputStream.read1(java.base@17.0.13/BufferedInputStream.java:284)
        at java.io.BufferedInputStream.read(java.base@17.0.13/BufferedInputStream.java:343)
        - locked <0x00000005dbc6ecf8> (a java.io.BufferedInputStream)
        at sun.net.www.http.HttpClient.parseHTTPHeader(java.base@17.0.13/HttpClient.java:826)
        at sun.net.www.http.HttpClient.parseHTTP(java.base@17.0.13/HttpClient.java:761)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(java.base@17.0.13/HttpURLConnection.java:1724)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(java.base@17.0.13/HttpURLConnection.java:1625)
        at java.net.HttpURLConnection.getResponseCode(java.base@17.0.13/HttpURLConnection.java:529)
        at org.apache.doris.plugin.audit.AuditStreamLoader.loadBatch(AuditStreamLoader.java:138)
        at org.apache.doris.plugin.audit.AuditLoader.loadIfNecessary(AuditLoader.java:196)
        - locked <0x00000005c6182238> (a org.apache.doris.plugin.audit.AuditLoader)
        at org.apache.doris.plugin.audit.AuditLoader$LoadWorker.run(AuditLoader.java:234)
        at java.lang.Thread.run(java.base@17.0.13/Thread.java:840)
```

Also modify the label of audit log load, use true FE ip to avoid
conflict between FEs
@github-actions github-actions bot requested a review from yiguolei as a code owner July 31, 2025 16:58
@hello-stephen
Copy link
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?

@dataroaring dataroaring reopened this Jul 31, 2025
@hello-stephen
Copy link
Contributor

run buildall

@yiguolei yiguolei merged commit 89c4d12 into branch-2.1 Aug 1, 2025
20 of 21 checks passed
@github-actions github-actions bot deleted the auto-pick-54031-branch-2.1 branch August 1, 2025 01:13
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.

5 participants