Skip to content

Commit 476c606

Browse files
authored
Add stopBalancer timeout; Retry setBalancerState; Improve logging (#1929) (#1941)
/cherry-pick Signed-off-by: Arnob kumar saha <arnob@appscode.com>
1 parent a847461 commit 476c606

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/backup.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ func disabelBalancer(mongosHost string) error {
635635

636636
err = json.Unmarshal(output, &v)
637637
if err != nil {
638-
klog.Errorf("Unmarshal error while stopping balancer : %s \n", err.Error())
638+
klog.Errorf("Unmarshal error while stopping balancer : %s ; output = %s \n", err.Error(), output)
639639
return err
640640
}
641641

@@ -813,6 +813,7 @@ func unlockSecondaryMember(mongohost string) error {
813813
"--quiet",
814814
"--eval", "JSON.stringify(db.fsyncUnlock())",
815815
}, mongoCreds...)
816+
816817
output, err := sh.Command(MongoCMD, args...).Output()
817818
if err != nil {
818819
klog.Errorf("Error while running fsyncUnlock on secondary : %s ; output : %s \n", err.Error(), output)

0 commit comments

Comments
 (0)