This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 92fa4a61453 Refactor MySQLContainerConfigurationFactory on
shardingsphere-test-e2e-transaction (#36465)
92fa4a61453 is described below
commit 92fa4a6145369fbfd790d39430ce5dd969ac975f
Author: Liang Zhang <[email protected]>
AuthorDate: Wed Sep 3 16:14:40 2025 +0800
Refactor MySQLContainerConfigurationFactory on
shardingsphere-test-e2e-transaction (#36465)
---
.../config/storage/dialect/MySQLContainerConfigurationFactory.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/test/e2e/operation/transaction/src/test/java/org/apache/shardingsphere/test/e2e/operation/transaction/framework/container/config/storage/dialect/MySQLContainerConfigurationFactory.java
b/test/e2e/operation/transaction/src/test/java/org/apache/shardingsphere/test/e2e/operation/transaction/framework/container/config/storage/dialect/MySQLContainerConfigurationFactory.java
index e54a7d8b732..d729887d7bc 100644
---
a/test/e2e/operation/transaction/src/test/java/org/apache/shardingsphere/test/e2e/operation/transaction/framework/container/config/storage/dialect/MySQLContainerConfigurationFactory.java
+++
b/test/e2e/operation/transaction/src/test/java/org/apache/shardingsphere/test/e2e/operation/transaction/framework/container/config/storage/dialect/MySQLContainerConfigurationFactory.java
@@ -23,6 +23,7 @@ import
org.apache.shardingsphere.database.connector.core.type.DatabaseType;
import org.apache.shardingsphere.infra.spi.type.typed.TypedSPILoader;
import
org.apache.shardingsphere.test.e2e.env.container.atomic.storage.config.StorageContainerConfiguration;
import
org.apache.shardingsphere.test.e2e.env.container.atomic.storage.impl.MySQLContainer;
+import
org.apache.shardingsphere.test.e2e.env.container.atomic.util.ContainerUtils;
import
org.apache.shardingsphere.test.e2e.env.runtime.scenario.database.DatabaseEnvironmentManager;
import
org.apache.shardingsphere.test.e2e.env.runtime.scenario.path.ScenarioDataPath;
import
org.apache.shardingsphere.test.e2e.env.runtime.scenario.path.ScenarioDataPath.Type;
@@ -50,14 +51,13 @@ public final class MySQLContainerConfigurationFactory {
}
private static String getCommand() {
- return "--sql_mode=
--default-authentication-plugin=mysql_native_password";
+ return "--server-id=" + ContainerUtils.generateMySQLServerId();
}
private static Map<String, String> getContainerEnvironments() {
- Map<String, String> result = new HashMap<>(3, 1F);
+ Map<String, String> result = new HashMap<>(2, 1F);
result.put("LANG", "C.UTF-8");
result.put("MYSQL_RANDOM_ROOT_PASSWORD", "yes");
- result.put("MYSQL_ROOT_HOST", "%");
return result;
}