Skip to content

Commit bfcf56b

Browse files
committed
Merge branch 'master' into strong_password
# Conflicts: # integration-test/src/main/java/org/apache/iotdb/it/env/remote/config/RemoteCommonConfig.java
2 parents f0a9baa + 03e7018 commit bfcf56b

96 files changed

Lines changed: 3662 additions & 1018 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

integration-test/src/main/java/org/apache/iotdb/it/env/cluster/config/MppCommonConfig.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,23 @@ public CommonConfig setQueryMemoryProportion(String queryMemoryProportion) {
527527
}
528528

529529
@Override
530+
public CommonConfig setSubscriptionPrefetchTsFileBatchMaxDelayInMs(
531+
int subscriptionPrefetchTsFileBatchMaxDelayInMs) {
532+
setProperty(
533+
"subscription_prefetch_ts_file_batch_max_delay_in_ms",
534+
String.valueOf(subscriptionPrefetchTsFileBatchMaxDelayInMs));
535+
return this;
536+
}
537+
538+
@Override
539+
public CommonConfig setSubscriptionPrefetchTsFileBatchMaxSizeInBytes(
540+
int subscriptionPrefetchTsFileBatchMaxSizeInBytes) {
541+
setProperty(
542+
"subscription_prefetch_ts_file_batch_max_size_in_bytes",
543+
String.valueOf(subscriptionPrefetchTsFileBatchMaxSizeInBytes));
544+
return this;
545+
}
546+
530547
public CommonConfig setSubscriptionEnabled(boolean subscriptionEnabled) {
531548
setProperty("subscription_enabled", String.valueOf(subscriptionEnabled));
532549
return this;

integration-test/src/main/java/org/apache/iotdb/it/env/cluster/config/MppSharedCommonConfig.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,25 @@ public CommonConfig setQueryMemoryProportion(String queryMemoryProportion) {
542542
}
543543

544544
@Override
545+
public CommonConfig setSubscriptionPrefetchTsFileBatchMaxDelayInMs(
546+
int subscriptionPrefetchTsFileBatchMaxDelayInMs) {
547+
dnConfig.setSubscriptionPrefetchTsFileBatchMaxDelayInMs(
548+
subscriptionPrefetchTsFileBatchMaxDelayInMs);
549+
cnConfig.setSubscriptionPrefetchTsFileBatchMaxDelayInMs(
550+
subscriptionPrefetchTsFileBatchMaxDelayInMs);
551+
return this;
552+
}
553+
554+
@Override
555+
public CommonConfig setSubscriptionPrefetchTsFileBatchMaxSizeInBytes(
556+
int subscriptionPrefetchTsFileBatchMaxSizeInBytes) {
557+
dnConfig.setSubscriptionPrefetchTsFileBatchMaxSizeInBytes(
558+
subscriptionPrefetchTsFileBatchMaxSizeInBytes);
559+
cnConfig.setSubscriptionPrefetchTsFileBatchMaxSizeInBytes(
560+
subscriptionPrefetchTsFileBatchMaxSizeInBytes);
561+
return this;
562+
}
563+
545564
public CommonConfig setSubscriptionEnabled(boolean subscriptionEnabled) {
546565
dnConfig.setSubscriptionEnabled(subscriptionEnabled);
547566
cnConfig.setSubscriptionEnabled(subscriptionEnabled);

integration-test/src/main/java/org/apache/iotdb/it/env/remote/config/RemoteCommonConfig.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,18 @@ public CommonConfig setEnforceStrongPassword(boolean enforceStrongPassword) {
386386
return this;
387387
}
388388

389+
@Override
390+
public CommonConfig setSubscriptionPrefetchTsFileBatchMaxDelayInMs(
391+
int subscriptionPrefetchTsFileBatchMaxDelayInMs) {
392+
return this;
393+
}
394+
395+
@Override
396+
public CommonConfig setSubscriptionPrefetchTsFileBatchMaxSizeInBytes(
397+
int subscriptionPrefetchTsFileBatchMaxSizeInBytes) {
398+
return this;
399+
}
400+
389401
@Override
390402
public CommonConfig setSubscriptionEnabled(boolean subscriptionEnabled) {
391403
return this;

integration-test/src/main/java/org/apache/iotdb/itbase/env/CommonConfig.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,12 @@ CommonConfig setPipeConnectorRequestSliceThresholdBytes(
168168

169169
CommonConfig setQueryMemoryProportion(String queryMemoryProportion);
170170

171+
CommonConfig setSubscriptionPrefetchTsFileBatchMaxDelayInMs(
172+
int subscriptionPrefetchTsFileBatchMaxDelayInMs);
173+
174+
CommonConfig setSubscriptionPrefetchTsFileBatchMaxSizeInBytes(
175+
int subscriptionPrefetchTsFileBatchMaxSizeInBytes);
176+
171177
CommonConfig setSubscriptionEnabled(boolean subscriptionEnabled);
172178

173179
default CommonConfig setDefaultStorageGroupLevel(int defaultStorageGroupLevel) {

integration-test/src/test/java/org/apache/iotdb/pipe/it/dual/tablemodel/manual/basic/IoTDBPipeExtractorIT.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,9 @@ public void testTableModeSQLSupportNowFunc() {
980980

981981
private void assertTimeseriesCountOnReceiver(BaseEnv receiverEnv, int count) {
982982
TestUtils.assertDataEventuallyOnEnv(
983-
receiverEnv, "count timeseries root.db.**", "count(timeseries),", Collections.singleton(count + ","));
983+
receiverEnv,
984+
"count timeseries root.db.**",
985+
"count(timeseries),",
986+
Collections.singleton(count + ","));
984987
}
985988
}

integration-test/src/test/java/org/apache/iotdb/pipe/it/dual/tablemodel/manual/basic/IoTDBPipePermissionIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ public void testReceiverPermission() throws Exception {
243243

244244
try (final SyncConfigNodeIServiceClient client =
245245
(SyncConfigNodeIServiceClient) senderEnv.getLeaderConfigNodeConnection()) {
246-
if (!TestUtils.tryExecuteNonQueryWithRetry(receiverEnv, "create user testUser 'passwD@123456'")) {
246+
if (!TestUtils.tryExecuteNonQueryWithRetry(
247+
receiverEnv, "create user testUser 'passwD@123456'")) {
247248
return;
248249
}
249250

integration-test/src/test/java/org/apache/iotdb/pipe/it/dual/treemodel/auto/basic/IoTDBPipeExtractorIT.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,10 @@ private void assertTimeseriesCountOnReceiver(BaseEnv receiverEnv, int count) {
10441044
// for system password history
10451045
count += 2;
10461046
TestUtils.assertDataEventuallyOnEnv(
1047-
receiverEnv, "count timeseries root.**", "count(timeseries),", Collections.singleton(count + ","));
1047+
receiverEnv,
1048+
"count timeseries root.**",
1049+
"count(timeseries),",
1050+
Collections.singleton(count + ","));
10481051
}
10491052

10501053
private void assertPipeCount(int count) throws Exception {

0 commit comments

Comments
 (0)