Skip to content

Commit 1b2b2a6

Browse files
committed
[fix](test) preserve runner-facing FE ports
1 parent 40e1569 commit 1b2b2a6

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎regression-test/suites/insert_p0/test_insert_visible_timeout_return_mode.groovy‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ suite("test_insert_visible_timeout_return_mode", "nonConcurrent") {
2525
}
2626

2727
def debugPoint = "PublishVersionDaemon.stop_publish"
28-
// PublishVersionDaemon runs on the master FE. Use the configured runner-reachable host and master FE ports,
29-
// because SHOW FRONTENDS can expose loopback or internal addresses in regression deployments.
30-
def feHost = context.config.feHttpAddress.split(":")[0]
31-
def feHttpPort = getMasterPort()
32-
def feQueryPort = getMasterPort("query")
33-
def masterJdbcUrl = Config.buildUrlWithDb(feHost, feQueryPort, context.dbName)
28+
// PublishVersionDaemon runs on the master FE. The pipeline config provides runner-facing
29+
// master FE endpoints; do not replace their mapped ports with raw SHOW FRONTENDS values.
30+
def feHttpAddress = context.config.feHttpAddress
31+
def feHost = feHttpAddress.split(":")[0]
32+
def feHttpPort = Integer.parseInt(feHttpAddress.split(":")[1])
33+
def masterJdbcUrl = Config.buildUrlWithDb(context.getJdbcUrl(), context.dbName)
3434
context.connectTo(masterJdbcUrl, context.config.jdbcUser, context.config.jdbcPassword)
3535

3636
// Prepare a single-replica table so publish blocking deterministically drives the visible timeout path.

0 commit comments

Comments
 (0)