Uh oh!
There was an error while loading. Please reload this page.
branch-3.0: [fix](create-resource) fix potential concurrent modification exception when creating resource (#50356, #50615) - #50533
Merged
Conversation
hello-stephen
commented
Apr 29, 2025
Contributor
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
morningman
commented
Apr 29, 2025
ContributorAuthor
run buildall |
morningman
commented
May 7, 2025
ContributorAuthor
run buildall |
gavinchou
previously approved these changes
May 7, 2025
Contributor
PR approved by at least one committer and no changes requested. |
Contributor
PR approved by anyone and no changes requested. |
morningman
commented
May 7, 2025
ContributorAuthor
run buildall |
doris-robot
commented
May 7, 2025
TPC-H: Total hot run time: 40004 ms |
doris-robot
commented
May 7, 2025
TPC-DS: Total hot run time: 196614 ms |
doris-robot
commented
May 7, 2025
ClickBench: Total hot run time: 33.12 s |
morningman
commented
May 7, 2025
ContributorAuthor
run buildall |
…n when creating resource (apache#50356) Related PR: apache#48424 Problem Summary: The `CreateResourceCommandTest` may throw concurrent modification exception. This is because in `JdbcResource`, the origin property map may be modified. This PR changes; 1. Change the origin property map to ImmutableMap, to avoid potential exception. 2. Copy the map to the jdbc resource to avoid modifying the origin map
… in CreateStorageVaultStmt (apache#50615) Related PR: apache#50356apache#45155 Problem Summary: ```sql CREATE STORAGE VAULT test PROPERTIES ( "type"="S3", "s3.endpoint"="cos.ap-guangzhou.myqcloud.com", "s3.access_key" = "*****", "s3.secret_key" = "*****", "s3.region" = "ap-guangzhou", "s3.root.path" = "prefix", "s3.bucket" = "test", "provider" = "COS" ) ``` throw Exception: ```java 2025-05-06 15:05:16,395 WARN (mysql-nio-pool-0|235) [StmtExecutor.handleDdlStmt():3216] DDL statement(CREATE STORAGE VAULT test PROPERTIES ( "type"="S3", "s3.endpoint"="cos.ap-guangzhou.myqcloud.com", "s3.access_key" = "*****", "s3.secret_key" = "*****", "s3.region" = "ap-guangzhou", "s3.root.path" = "prefix", "s3.bucket" = "test", "provider" = "COS" )) process failed. java.lang.UnsupportedOperationException: null at com.google.common.collect.ImmutableMap.put(ImmutableMap.java:814) ~[guava-33.2.1-jre.jar:?] at org.apache.doris.catalog.StorageVault.getStorageVaultInstance(StorageVault.java:151) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.catalog.StorageVault.fromStmt(StorageVault.java:103) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.catalog.StorageVaultMgr.createStorageVaultResource(StorageVaultMgr.java:69) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.qe.DdlExecutor.execute(DdlExecutor.java:440) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.qe.StmtExecutor.handleDdlStmt(StmtExecutor.java:3195) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.qe.StmtExecutor.executeByLegacy(StmtExecutor.java:1124) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:644) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.qe.StmtExecutor.queryRetry(StmtExecutor.java:574) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:559) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.qe.ConnectProcessor.executeQuery(ConnectProcessor.java:349) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.qe.ConnectProcessor.handleQuery(ConnectProcessor.java:249) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.qe.MysqlConnectProcessor.handleQuery(MysqlConnectProcessor.java:233) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.qe.MysqlConnectProcessor.dispatch(MysqlConnectProcessor.java:261) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.qe.MysqlConnectProcessor.processOnce(MysqlConnectProcessor.java:444) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.mysql.ReadListener.lambda$handleEvent$0(ReadListener.java:52) ~[doris-fe.jar:1.2-SNAPSHOT] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?] at java.lang.Thread.run(Thread.java:833) ~[?:?] ```
morningman
commented
May 14, 2025
ContributorAuthor
run buildall |
gavinchou
approved these changes
May 15, 2025
Contributor
PR approved by at least one committer and no changes requested. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
bp #50356#50615