| | |
| | | # may finish after CORE135; only timeouts before that startup marker are candidates. |
| | | # Admin/schema domains have their own DS IDs; another live RS may win the retry. |
| | | # Keep the full error as evidence so another record cannot inherit the allowance. |
| | | scale_record_reconnected_timeouts() { # <DS> <rolling RS> <direction> |
| | | scale_record_reconnected_timeouts() { # <restarted node> <rolling RS> <direction> |
| | | local node=$1 direction=$3 window="$OUT/logs/$1.window-$3-$1" |
| | | local before after mark candidate address addresses= target="$OUT/scale-progress/timeouts-$3-$1.txt" |
| | | [ -f "$window" ] && [ -f "$OUT/logs/$node.mark" ] || return 0 |
| | |
| | | # Startup opens LDAP before the background join has finished its administrative |
| | | # JVMs. Keep this group paused until every join succeeds, while the other DSs keep |
| | | # writing. This also completes the group before the next surviving writer rolls. |
| | | scale_wait "the join of $rolling_rs ends" bootstrap_ended "$rolling_rs" || return 1 |
| | | for node in "$first" "$second"; do |
| | | for node in "$rolling_rs" "$first" "$second"; do |
| | | scale_wait "the join of $node ends" bootstrap_ended "$node" || return 1 |
| | | scale_record_reconnected_timeouts "$node" "$rolling_rs" "$direction" || return 1 |
| | | done |