tools/dx-admin.sh stop overwrites state file when run twice in a row.
search cancel

tools/dx-admin.sh stop overwrites state file when run twice in a row.

book

Article ID: 447450

calendar_today

Updated On:

Products

DX Operational Observability

Issue/Introduction

When executing the shutdown script tools/dx-admin.sh stop multiple times consecutively, the second execution overwrites the valid deployment state file.

This occurs because the script does not verify if the instance is already stopped before updating the state tracking.

Cause

DE681559: The script lacks a conditional check to detect an already-stopped state on successive runs, resulting in the state file being blanked out or incorrectly updated.

Resolution

Development is currently working on formal code improvements to resolve this issue in a future distribution release. Subscribe this article for further updates.