Skip to content

Commit bbe4aa3

Browse files
committed
[hotfix][oceanbase] Reduce OceanBase container memory requirements for CI
Set OB_MEMORY_LIMIT=2G and OB_SYSTEM_MEMORY=512M to fit within GitHub Actions runner's ~7GB memory. The default OB_MEMORY_LIMIT is 6G which causes OBD-5000 "not enough memory" error when the runner is already occupied by other connector test containers. Also reduce OB_LOG_DISK_SIZE from 4G to 2G and increase startup timeout from 4 to 6 minutes for better reliability.
1 parent b94d7b2 commit bbe4aa3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

flink-cdc-connect/flink-cdc-source-connectors/flink-connector-oceanbase-cdc/src/test/java/org/apache/flink/cdc/connectors/oceanbase/OceanBaseTestUtils.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,17 @@ public class OceanBaseTestUtils {
3838

3939
public static OceanBaseContainer createOceanBaseContainerForJdbc() {
4040
return createOceanBaseContainer(OB_4_3_3_VERSION, "mini")
41-
.withStartupTimeout(Duration.ofMinutes(4));
41+
.withStartupTimeout(Duration.ofMinutes(6));
4242
}
4343

4444
public static OceanBaseContainer createOceanBaseContainer(String version, String mode) {
4545
return new OceanBaseContainer(version)
4646
.withMode(mode)
4747
.withTenantPassword(TEST_PASSWORD)
48+
.withEnv("OB_MEMORY_LIMIT", "2G")
49+
.withEnv("OB_SYSTEM_MEMORY", "512M")
4850
.withEnv("OB_DATAFILE_SIZE", "2G")
49-
.withEnv("OB_LOG_DISK_SIZE", "4G")
51+
.withEnv("OB_LOG_DISK_SIZE", "2G")
5052
.withLogConsumer(new Slf4jLogConsumer(LOG));
5153
}
5254
}

0 commit comments

Comments
 (0)