Skip to content
This repository was archived by the owner on Dec 28, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/en/start-v2/docker/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ networks:
run `docker-compose up -d` command to start the cluster.


You can run `docker logs -f seatunne_master`, `docker logs -f seatunnel_worker_1` to check the node log.
You can run `docker logs -f seatunnel_master`, `docker logs -f seatunnel_worker_1` to check the node log.
And when you call `http://localhost:5801/hazelcast/rest/maps/system-monitoring-information`, you will see there are 2 nodes as we excepted.

After that, you can use client or restapi to submit job to this cluster.
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/start-v2/docker/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ networks:
运行 `docker-compose up`命令来启动集群,该配置会启动一个master节点,2个worker节点


启动完成后,可以运行`docker logs -f seatunne_master`, `docker logs -f seatunnel_worker_1`来查看节点的日志
启动完成后,可以运行`docker logs -f seatunnel_master`, `docker logs -f seatunnel_worker_1`来查看节点的日志
当你访问`http://localhost:5801/hazelcast/rest/maps/system-monitoring-information` 时,可以看到集群的状态为1个master节点,2个worker节点.

#### 集群扩容
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,26 @@ public void testDatabendSinkCDC(TestContainer container) throws Exception {
container.executeJob("/databend/fake_to_databend_cdc.conf");
Assertions.assertEquals(0, execResult.getExitCode(), execResult.getStderr());

// Wait for the merge operation to complete
// Increased wait time to ensure merge operations finish
Thread.sleep(10000);
Awaitility.await()
.atMost(120, TimeUnit.SECONDS)
.pollInterval(1, TimeUnit.SECONDS)
.ignoreExceptions()
.untilAsserted(
() -> {
try (Statement stmt = connection.createStatement();
ResultSet rs =
stmt.executeQuery(
"SELECT COUNT(*) as count FROM sink_table")) {
if (rs.next()) {
int count = rs.getInt("count");
LOG.info(
"Current record count in sink_table: {}, expecting 3",
count);
Assertions.assertEquals(
3, count, "Expected 3 records in sink_table");
}
}
});

// Verify the sink results
try (Statement statement = connection.createStatement()) {
Expand Down Expand Up @@ -270,23 +287,6 @@ private boolean createMinIOBucketWithAWSSDK(String bucketName) {
}
}

// private synchronized Connection getConnection() throws SQLException {
// if (this.connection == null || this.connection.isClosed()) {
// LOG.info("Creating new database connection");
// final Properties info = new Properties();
// info.put("user", "root");
// info.put("password", "");
//
// String jdbcUrl =
// String.format(
// "jdbc:databend://%s:%d/%s?ssl=false",
// container.getHost(), container.getMappedPort(8000), DATABASE);
//
// this.connection = DriverManager.getConnection(jdbcUrl, info);
// }
// return this.connection;
// }

private void initConnection()
throws SQLException, ClassNotFoundException, InstantiationException,
IllegalAccessException {
Expand Down
Loading