You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2022/05/17 08:54:10 UTC
[shardingsphere] branch master updated: Fix scaling ci sometimes failed (#17735)
This is an automated email from the ASF dual-hosted git repository.
zhonghongsheng 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 ce46ee82036 Fix scaling ci sometimes failed (#17735)
ce46ee82036 is described below
commit ce46ee8203630614404612a6920e29470d6c3eb6
Author: azexcy <10...@users.noreply.github.com>
AuthorDate: Tue May 17 16:54:04 2022 +0800
Fix scaling ci sometimes failed (#17735)
---
.../integration/data/pipeline/cases/base/BaseITCase.java | 4 +++-
.../integration/data/pipeline/cases/base/BaseMySQLITCase.java | 2 --
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-scaling/src/test/java/org/apache/shardingsphere/integration/data/pipeline/cases/base/BaseITCase.java b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-scaling/src/test/java/org/apache/shardingsphere/integration/data/pipeline/cases/base/BaseITCase.java
index 6c0d5223a64..63c7dde3fc7 100644
--- a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-scaling/src/test/java/org/apache/shardingsphere/integration/data/pipeline/cases/base/BaseITCase.java
+++ b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-scaling/src/test/java/org/apache/shardingsphere/integration/data/pipeline/cases/base/BaseITCase.java
@@ -146,9 +146,11 @@ public abstract class BaseITCase {
}
}
- protected void initShardingAlgorithm() {
+ protected void initShardingAlgorithm() throws InterruptedException {
jdbcTemplate.execute(getCommonSQLCommand().getCreateDatabaseShardingAlgorithm());
+ TimeUnit.SECONDS.sleep(2);
jdbcTemplate.execute(getCommonSQLCommand().getCreateOrderShardingAlgorithm());
+ TimeUnit.SECONDS.sleep(2);
jdbcTemplate.execute(getCommonSQLCommand().getCreateOrderItemShardingAlgorithm());
}
diff --git a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-scaling/src/test/java/org/apache/shardingsphere/integration/data/pipeline/cases/base/BaseMySQLITCase.java b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-scaling/src/test/java/org/apache/shardingsphere/integration/data/pipeline/cases/base/BaseMySQLITCase.java
index 9c09210b25d..3f0aee29fef 100644
--- a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-scaling/src/test/java/org/apache/shardingsphere/integration/data/pipeline/cases/base/BaseMySQLITCase.java
+++ b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-scaling/src/test/java/org/apache/shardingsphere/integration/data/pipeline/cases/base/BaseMySQLITCase.java
@@ -69,8 +69,6 @@ public abstract class BaseMySQLITCase extends BaseITCase {
protected void createNoUseTable() {
getJdbcTemplate().execute("CREATE SHARDING TABLE RULE no_use (RESOURCES(ds_0, ds_1), SHARDING_COLUMN=sharding_id, TYPE(NAME=MOD,PROPERTIES('sharding-count'=4)))");
getJdbcTemplate().execute("CREATE TABLE no_use(id int(11) NOT NULL,sharding_id int(11) NOT NULL, PRIMARY KEY (id))");
- getJdbcTemplate().execute("INSERT INTO no_use(id,sharding_id) values (1,1)");
- getJdbcTemplate().execute("INSERT INTO no_use(id,sharding_id) values (2,2)");
}
@Override