Skip to content

Commit 59c357f

Browse files
committed
Merge branch 'master' into strong_password
2 parents 166749d + 226fc6f commit 59c357f

99 files changed

Lines changed: 5175 additions & 874 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/env/AbstractEnv.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ protected void initEnvironment(
258258

259259
if (addAINode) {
260260
this.aiNodeWrapperList = new ArrayList<>();
261-
startAINode(seedConfigNode, testClassName);
261+
startAINode(seedConfigNode, this.dataNodeWrapperList.get(0).getPort(), testClassName);
262262
}
263263

264264
checkClusterStatusWithoutUnknown();
@@ -307,11 +307,13 @@ private DataNodeWrapper newDataNode() {
307307
return dataNodeWrapper;
308308
}
309309

310-
private void startAINode(final String seedConfigNode, final String testClassName) {
310+
private void startAINode(
311+
final String seedConfigNode, final int clusterIngressPort, final String testClassName) {
311312
final String aiNodeEndPoint;
312313
final AINodeWrapper aiNodeWrapper =
313314
new AINodeWrapper(
314315
seedConfigNode,
316+
clusterIngressPort,
315317
testClassName,
316318
testMethodName,
317319
index,

integration-test/src/main/java/org/apache/iotdb/it/env/cluster/node/AINodeWrapper.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public class AINodeWrapper extends AbstractNodeWrapper {
4343
private static final Logger logger = IoTDBTestLogger.logger;
4444
private final long startTime;
4545
private final String seedConfigNode;
46+
private final int clusterIngressPort;
4647

4748
private static final String SCRIPT_FILE = "start-ainode.sh";
4849

@@ -67,13 +68,15 @@ private void replaceAttribute(String[] keys, String[] values, String filePath) {
6768

6869
public AINodeWrapper(
6970
String seedConfigNode,
71+
int clusterIngressPort,
7072
String testClassName,
7173
String testMethodName,
7274
int clusterIndex,
7375
int[] port,
7476
long startTime) {
7577
super(testClassName, testMethodName, port, clusterIndex, false, startTime);
7678
this.seedConfigNode = seedConfigNode;
79+
this.clusterIngressPort = clusterIngressPort;
7780
this.startTime = startTime;
7881
}
7982

@@ -105,8 +108,12 @@ public void start() {
105108

106109
// set attribute
107110
replaceAttribute(
108-
new String[] {"ain_seed_config_node", "ain_rpc_port"},
109-
new String[] {this.seedConfigNode, Integer.toString(getPort())},
111+
new String[] {"ain_seed_config_node", "ain_rpc_port", "ain_cluster_ingress_port"},
112+
new String[] {
113+
this.seedConfigNode,
114+
Integer.toString(getPort()),
115+
Integer.toString(this.clusterIngressPort)
116+
},
110117
propertiesFile);
111118

112119
// start AINode

integration-test/src/test/java/org/apache/iotdb/relational/it/db/it/IoTDBWindowFunctionIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ private static void insertData() {
107107

108108
@BeforeClass
109109
public static void setUp() throws Exception {
110+
EnvFactory.getEnv().getConfig().getCommonConfig().setSortBufferSize(1024 * 1024);
110111
EnvFactory.getEnv().initClusterEnvironment();
111112
insertData();
112113
}

0 commit comments

Comments
 (0)