From e61cdd482e40cfb48a361e5a413e8815ace8cea8 Mon Sep 17 00:00:00 2001 From: Mitsunori Komatsu Date: Wed, 19 Jun 2024 16:35:46 +0900 Subject: [PATCH] Reduce the number of concurrent DDLs from 10 to 1 for Cosmos DB in the integration tests (#1920) Co-authored-by: Toshihiro Suzuki --- .../CosmosCrossPartitionScanIntegrationTest.java | 10 ++++++++++ ...CosmosMultipleClusteringKeyScanIntegrationTest.java | 5 +++++ .../CosmosMultiplePartitionKeyIntegrationTest.java | 5 +++++ 3 files changed, 20 insertions(+) diff --git a/core/src/integration-test/java/com/scalar/db/storage/cosmos/CosmosCrossPartitionScanIntegrationTest.java b/core/src/integration-test/java/com/scalar/db/storage/cosmos/CosmosCrossPartitionScanIntegrationTest.java index bdfe5aeeef..767cfc399d 100644 --- a/core/src/integration-test/java/com/scalar/db/storage/cosmos/CosmosCrossPartitionScanIntegrationTest.java +++ b/core/src/integration-test/java/com/scalar/db/storage/cosmos/CosmosCrossPartitionScanIntegrationTest.java @@ -27,6 +27,16 @@ protected Map getCreationOptions() { return CosmosEnv.getCreationOptions(); } + @Override + protected int getThreadNum() { + return 3; + } + + @Override + protected boolean isParallelDdlSupported() { + return false; + } + @Test @Override @Disabled("Cross partition scan with ordering is not supported in Cosmos DB") diff --git a/core/src/integration-test/java/com/scalar/db/storage/cosmos/CosmosMultipleClusteringKeyScanIntegrationTest.java b/core/src/integration-test/java/com/scalar/db/storage/cosmos/CosmosMultipleClusteringKeyScanIntegrationTest.java index fe6be83529..080653ee4a 100644 --- a/core/src/integration-test/java/com/scalar/db/storage/cosmos/CosmosMultipleClusteringKeyScanIntegrationTest.java +++ b/core/src/integration-test/java/com/scalar/db/storage/cosmos/CosmosMultipleClusteringKeyScanIntegrationTest.java @@ -46,6 +46,11 @@ protected int getThreadNum() { return 3; } + @Override + protected boolean isParallelDdlSupported() { + return false; + } + @Override protected Map getCreationOptions() { return CosmosEnv.getCreationOptions(); diff --git a/core/src/integration-test/java/com/scalar/db/storage/cosmos/CosmosMultiplePartitionKeyIntegrationTest.java b/core/src/integration-test/java/com/scalar/db/storage/cosmos/CosmosMultiplePartitionKeyIntegrationTest.java index 3cff4464e6..0d7e4309b7 100644 --- a/core/src/integration-test/java/com/scalar/db/storage/cosmos/CosmosMultiplePartitionKeyIntegrationTest.java +++ b/core/src/integration-test/java/com/scalar/db/storage/cosmos/CosmosMultiplePartitionKeyIntegrationTest.java @@ -24,6 +24,11 @@ protected int getThreadNum() { return 3; } + @Override + protected boolean isParallelDdlSupported() { + return false; + } + @Override protected Map getCreationOptions() { return CosmosEnv.getCreationOptions();