Skip to content

Commit

Permalink
[PLAT-14993] Clean out pg_data_11 dir on onprem node release/delete
Browse files Browse the repository at this point in the history
Summary: There's a new pg_data_11 directory to prepare for pg15 migration which needs to be deleted

Test Plan:
Create an onprem univ with 2024.1, release node and verify this dir is deleted.

```
[yugabyte@sanketh-tf-instance-n4 ~]$ ls /storage
cores  pg_data  pg_data_11  ybc-data  yb-data
```

After both release instance & delete universe ops
```
[yugabyte@sanketh-tf-instance-n4 ~]$ ls /storage
cores  yb-data
```

Reviewers: cwang, svarshney

Reviewed By: cwang, svarshney

Subscribers: yugaware

Differential Revision: https://phorge.dev.yugabyte.com/D37385
  • Loading branch information
iSignal committed Aug 19, 2024
1 parent 5878518 commit 67147d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ clean_data_paths() {
# Only the tserver creates and accesses the pg_data directory, so it
# should be cleaned only when the tserver files are cleaned.
if [ "$daemon" == "tserver" ]; then
rm -rf "${MOUNT_PATHS[i]}"/pg_data
rm -rf "${MOUNT_PATHS[i]}"/pg_data*
fi

if [ "$daemon" == "controller" ]; then
Expand Down

0 comments on commit 67147d2

Please sign in to comment.