[Documentation] Stop half plus one car Follower members and set reviving followers down (otherwsise tipping followers cannot join cluster).
... Mark most of stopped members as explicitly down, to allow the surviving leader make progress.
ClusterManagement.Stop_Members_From_List_Or_All member_index_list=${list_of_stopping} confirm=True
- : FOR ${index} IN @{list_of_reviving}
- \ ${data} OperatingSystem.Get File ${CLUSTER_DIR}/member_down.json
- \ ${member_ip} = Collections.Get_From_Dictionary ${ClusterManagement__index_to_ip_mapping} ${index}
- \ ${data} String.Replace String ${data} {member_ip} ${member_ip}
- \ TemplatedRequests.Post_To_Uri uri=jolokia data=${data} content_type=${HEADERS} accept=${ACCEPT_EMPTY} session=${car_leader_session}
+ FOR ${index} IN @{list_of_reviving}
+ ${data} OperatingSystem.Get File ${CLUSTER_DIR}/member_down.json
+ ${member_ip} = Collections.Get_From_Dictionary ${ClusterManagement__index_to_ip_mapping} ${index}
+ ${data} String.Replace String ${data} {member_ip} ${member_ip}
+ TemplatedRequests.Post_To_Uri uri=jolokia data=${data} content_type=${HEADERS} accept=${ACCEPT_EMPTY} session=${car_leader_session}
+ END
Attempt_To_Add_Cars_To_Leader
[Documentation] Adding cars should fail, as majority of Followers are down.
See_Cars_On_Existing_Members
[Documentation] On each up member: GET cars, should match the ones added on tipping Follower.
- : FOR ${session} IN @{list_of_majority}
- \ TemplatedRequests.Get_As_Json_Templated folder=${VAR_DIR}/cars session=${session} verify=True iterations=${CAR_ITEMS} iter_start=${MAJORITY_START_I}
+ FOR ${session} IN @{list_of_majority}
+ TemplatedRequests.Get_As_Json_Templated folder=${VAR_DIR}/cars session=${session} verify=True iterations=${CAR_ITEMS} iter_start=${MAJORITY_START_I}
+ END
Start_Other_Followers
[Documentation] Start other followers without persisted data.