From 996067201df1ec05167187ad1340cb5e8205e7a3 Mon Sep 17 00:00:00 2001 From: Miral Gadani Date: Tue, 11 Apr 2023 20:25:35 +0000 Subject: [PATCH] roachtest: roachprod: Remove check for Pebble CURRENT file in favour of marker.* files Epic: none Fixes: #95170 Release note: None --- .../roachtest/roachtestutil/clusterupgrade/clusterupgrade.go | 2 +- pkg/roachprod/install/cluster_synced.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/roachtest/roachtestutil/clusterupgrade/clusterupgrade.go b/pkg/cmd/roachtest/roachtestutil/clusterupgrade/clusterupgrade.go index eef93e3622db..86f91c3d5954 100644 --- a/pkg/cmd/roachtest/roachtestutil/clusterupgrade/clusterupgrade.go +++ b/pkg/cmd/roachtest/roachtestutil/clusterupgrade/clusterupgrade.go @@ -133,7 +133,7 @@ func InstallFixtures( } } // Extract fixture. Fail if there's already an LSM in the store dir. - c.Run(ctx, nodes, "cd {store-dir} && [ ! -f {store-dir}/CURRENT ] && tar -xf fixture.tgz") + c.Run(ctx, nodes, "ls {store-dir}/marker.* 1> /dev/null 2>&1 && exit 1 || (cd {store-dir} && tar -xf fixture.tgz)") return nil } diff --git a/pkg/roachprod/install/cluster_synced.go b/pkg/roachprod/install/cluster_synced.go index 6859e60a3f90..fe1ec0dfe9e7 100644 --- a/pkg/roachprod/install/cluster_synced.go +++ b/pkg/roachprod/install/cluster_synced.go @@ -640,7 +640,7 @@ func (c *SyncedCluster) Monitor( snippet := ` {{ if .IgnoreEmpty }} -if [ ! -f "{{.Store}}/CURRENT" ]; then +if ! ls {{.Store}}/marker.* 1> /dev/null 2>&1; then echo "skipped" exit 0 fi