Skip to content

Commit a921d60

Browse files
authored
Add more logging to AbstractLogsdbRollingUpgradeTestCase (elastic#139216)
1 parent 5715b37 commit a921d60

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

x-pack/plugin/logsdb/qa/rolling-upgrade/src/javaRestTest/java/org/elasticsearch/xpack/logsdb/AbstractLogsdbRollingUpgradeTestCase.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,13 @@ protected Settings restClientSettings() {
3636

3737
protected void upgradeNode(int n) throws IOException {
3838
closeClients();
39-
var upgradeVersion = System.getProperty("tests.new_cluster_version") != null
40-
? Version.fromString(System.getProperty("tests.new_cluster_version"))
41-
: Version.CURRENT;
39+
40+
var serverlessBwcStackVersion = System.getProperty("tests.serverless.bwc_stack_version");
41+
var bwcTag = System.getProperty("tests.bwc.tag");
42+
var newClusterVersion = System.getProperty("tests.new_cluster_version");
43+
logger.info("serverlessBwcStackVersion={}, bwcTag={}, newClusterVersion={}", serverlessBwcStackVersion, bwcTag, newClusterVersion);
44+
45+
var upgradeVersion = newClusterVersion != null ? Version.fromString(newClusterVersion) : Version.CURRENT;
4246
logger.info("Upgrading node {} to version {}", n, upgradeVersion);
4347
cluster.upgradeNodeToVersion(n, upgradeVersion);
4448
initClient();

0 commit comments

Comments
 (0)