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 4e3f5de Modify the initial capacity of HashMap (#11513)
4e3f5de is described below
commit 4e3f5dea2639888f4a77404944ebc508831a9dd7
Author: yx9o <[email protected]>
AuthorDate: Mon Jul 26 22:31:00 2021 +0800
Modify the initial capacity of HashMap (#11513)
---
.../scaling/mysql/component/checker/MySQLDataSourceChecker.java | 2 +-
.../test/integration/junit/compose/GovernanceContainerCompose.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git
a/shardingsphere-scaling/shardingsphere-scaling-dialect/shardingsphere-scaling-mysql/src/main/java/org/apache/shardingsphere/scaling/mysql/component/checker/MySQLDataSourceChecker.java
b/shardingsphere-scaling/shardingsphere-scaling-dialect/shardingsphere-scaling-mysql/src/main/java/org/apache/shardingsphere/scaling/mysql/component/checker/MySQLDataSourceChecker.java
index 7b1552b..6652311 100644
---
a/shardingsphere-scaling/shardingsphere-scaling-dialect/shardingsphere-scaling-mysql/src/main/java/org/apache/shardingsphere/scaling/mysql/component/checker/MySQLDataSourceChecker.java
+++
b/shardingsphere-scaling/shardingsphere-scaling-dialect/shardingsphere-scaling-mysql/src/main/java/org/apache/shardingsphere/scaling/mysql/component/checker/MySQLDataSourceChecker.java
@@ -44,7 +44,7 @@ public final class MySQLDataSourceChecker extends
AbstractDataSourceChecker {
private static final String SHOW_VARIABLES_SQL = "SHOW VARIABLES LIKE
'%s'";
- private static final Map<String, String> REQUIRED_VARIABLES = new
HashMap<>(2);
+ private static final Map<String, String> REQUIRED_VARIABLES = new
HashMap<>(3);
static {
REQUIRED_VARIABLES.put("LOG_BIN", "ON");
diff --git
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/junit/compose/GovernanceContainerCompose.java
b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/junit/compose/GovernanceContainerCompose.java
index 930c82f..0b4a484 100644
---
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/junit/compose/GovernanceContainerCompose.java
+++
b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/junit/compose/GovernanceContainerCompose.java
@@ -64,7 +64,7 @@ public final class GovernanceContainerCompose extends
ContainerCompose {
@Override
public Map<String, DataSource> getDataSourceMap() {
- Map<String, DataSource> result = new HashMap<>(2);
+ Map<String, DataSource> result = new HashMap<>(2, 1);
result.put("adapterForWriter", adapterContainer.getDataSource());
result.put("adapterForReader",
adapterContainerForReader.getDataSource());
return result;