Skip to content

2.31.0.0-b147

@shubin-yb shubin-yb tagged this 08 Jun 18:45
Summary:
When a new instances is added to an HA setup as a follower, it should get a "demote"
call that indicates it should be restarted. This will ensure all background threads
are correctly stopped as part of being a non-leader
yba instance

Test Plan:
itest + manual testing of HA setup

standby gets restarted when first initiating yba ha
```
[centos@shubin-test-2 yba_installer_full-2.31.0.0-b99943291]$ systemctl status yb-platform
● yb-platform.service - Yugabyte Platform
   Loaded: loaded (/etc/systemd/system/yb-platform.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2026-06-05 21:50:37 UTC; 3min 38s ago
 Main PID: 14122 (java)
    Tasks: 137 (limit: 100606)
   Memory: 1.4G
   CGroup: /system.slice/yb-platform.service
           └─14122 /opt/yugabyte/software/2.31.0.0-b99943291/yba_installer/jdk-17.0.7+7-jre//bin/java -Duser.dir=/opt/yugabyte/software/2.31.0.0-b99943291/yba_installer/packages/>

Jun 05 21:50:37 shubin-test-2 systemd[1]: Started Yugabyte Platform.
[centos@shubin-test-2 yba_installer_full-2.31.0.0-b99943291]$ less /opt/yugabyte/data/logs/application.log
[centos@shubin-test-2 yba_installer_full-2.31.0.0-b99943291]$ systemctl status yb-platform
● yb-platform.service - Yugabyte Platform
   Loaded: loaded (/etc/systemd/system/yb-platform.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2026-06-05 21:54:33 UTC; 8s ago
 Main PID: 15557 (java)
    Tasks: 30 (limit: 100606)
   Memory: 392.5M
   CGroup: /system.slice/yb-platform.service
           └─15557 /opt/yugabyte/software/2.31.0.0-b99943291/yba_installer/jdk-17.0.7+7-jre//bin/java -Duser.dir=/opt/yugabyte/software/2.31.0.0-b99943291/yba_installer/packages/>

Jun 05 21:54:33 shubin-test-2 systemd[1]: Started Yugabyte Platform.
```

Reviewers: #yba-api-review, muthu, nsingh, anijhawan, #db-approvers

Reviewed By: #yba-api-review, muthu, nsingh, anijhawan

Subscribers: muthu, nsingh, yugaware

Differential Revision: https://phorge.dev.yugabyte.com/D54181
Assets 2
Loading