Skip to content

Conversation

@github-actions
Copy link
Contributor

Cherry-picked from #58296

…rt fe (#58296)

Even if the map is defined as a ConcurrentHashMap, it becomes a
LinkedHashMap after Gson deserialization. The current PR provides a
simple solution for SqlBlockRuleMgr, but other modules have the same
issue and require a unified approach.

**error msg**
```
2025-11-20 03:02:08,499 WARN (thrift-server-pool-8|216) [StmtExecutor.executeByLegacy():1172] execute Exception. stmt[119845, 6e589b912ba24ce4-aeb134c8d43662b5]
java.util.ConcurrentModificationException: null
at com.google.gson.internal.LinkedTreeMap$LinkedTreeMapIterator.nextNode(LinkedTreeMap.java:572) ~[gson-2.10.1.jar:?]
at com.google.gson.internal.LinkedTreeMap$EntrySet$1.next(LinkedTreeMap.java:596) ~[gson-2.10.1.jar:?]
at com.google.gson.internal.LinkedTreeMap$EntrySet$1.next(LinkedTreeMap.java:594) ~[gson-2.10.1.jar:?]
at java.util.AbstractMap$2$1.next(AbstractMap.java:418) ~[?:?]
at java.util.Iterator.forEachRemaining(Iterator.java:133) ~[?:?]
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?]
at org.apache.doris.blockrule.SqlBlockRuleMgr.matchSql(SqlBlockRuleMgr.java:241) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.checkBlockRulesByRegex(StmtExecutor.java:678) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.checkBlockRules(StmtExecutor.java:670) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.executeByLegacy(StmtExecutor.java:1079) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:653) ~[doris-fe.jar:1.2-SNAPSHOT]
```
@github-actions github-actions bot requested a review from yiguolei as a code owner November 25, 2025 02:13
@Thearas
Copy link
Contributor

Thearas commented Nov 25, 2025

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 Nov 25, 2025
@Thearas
Copy link
Contributor

Thearas commented Nov 25, 2025

run buildall

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage 85.71% (6/7) 🎉
Increment coverage report
Complete coverage report

@yiguolei yiguolei merged commit c1d2ee0 into branch-4.0 Nov 25, 2025
25 of 27 checks passed
@github-actions github-actions bot deleted the auto-pick-58296-branch-4.0 branch November 25, 2025 08:00
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.

6 participants