@@ -60,8 +60,8 @@ func TestAllocSet_filterByTainted(t *testing.T) {
6060 ID : "draining" ,
6161 DrainStrategy : mock .DrainNode ().DrainStrategy ,
6262 },
63- "lost " : {
64- ID : "lost " ,
63+ "down " : {
64+ ID : "down " ,
6565 Status : structs .NodeStatusDown ,
6666 },
6767 "nil" : nil ,
@@ -162,12 +162,12 @@ func TestAllocSet_filterByTainted(t *testing.T) {
162162 Job : testJob ,
163163 NodeID : "draining" ,
164164 },
165- // Terminal allocs are always untainted, even on lost nodes
165+ // Terminal allocs are always untainted, even on down nodes
166166 "untainted4" : {
167167 ID : "untainted4" ,
168168 ClientStatus : structs .AllocClientStatusComplete ,
169169 Job : testJob ,
170- NodeID : "lost " ,
170+ NodeID : "down " ,
171171 },
172172 // Non-terminal alloc with migrate=true should migrate on a draining node
173173 "migrating1" : {
@@ -207,12 +207,12 @@ func TestAllocSet_filterByTainted(t *testing.T) {
207207 Job : testJob ,
208208 NodeID : "draining" ,
209209 },
210- // Terminal allocs are always untainted, even on lost nodes
210+ // Terminal allocs are always untainted, even on down nodes
211211 "untainted4" : {
212212 ID : "untainted4" ,
213213 ClientStatus : structs .AllocClientStatusComplete ,
214214 Job : testJob ,
215- NodeID : "lost " ,
215+ NodeID : "down " ,
216216 },
217217 },
218218 migrate : allocSet {
@@ -247,19 +247,19 @@ func TestAllocSet_filterByTainted(t *testing.T) {
247247 // false failures, so don't perform that test if in this case.
248248 skipNilNodeTest : true ,
249249 all : allocSet {
250- // Non-terminal allocs on lost nodes are lost
250+ // Non-terminal allocs on lost nodes are down
251251 "lost1" : {
252252 ID : "lost1" ,
253253 ClientStatus : structs .AllocClientStatusPending ,
254254 Job : testJob ,
255- NodeID : "lost " ,
255+ NodeID : "down " ,
256256 },
257- // Non-terminal allocs on lost nodes are lost
257+ // Non-terminal allocs on lost nodes are down
258258 "lost2" : {
259259 ID : "lost2" ,
260260 ClientStatus : structs .AllocClientStatusRunning ,
261261 Job : testJob ,
262- NodeID : "lost " ,
262+ NodeID : "down " ,
263263 },
264264 },
265265 untainted : allocSet {},
@@ -268,19 +268,19 @@ func TestAllocSet_filterByTainted(t *testing.T) {
268268 reconnecting : allocSet {},
269269 ignore : allocSet {},
270270 lost : allocSet {
271- // Non-terminal allocs on lost nodes are lost
271+ // Non-terminal allocs on lost nodes are down
272272 "lost1" : {
273273 ID : "lost1" ,
274274 ClientStatus : structs .AllocClientStatusPending ,
275275 Job : testJob ,
276- NodeID : "lost " ,
276+ NodeID : "down " ,
277277 },
278- // Non-terminal allocs on lost nodes are lost
278+ // Non-terminal allocs on lost nodes are down
279279 "lost2" : {
280280 ID : "lost2" ,
281281 ClientStatus : structs .AllocClientStatusRunning ,
282282 Job : testJob ,
283- NodeID : "lost " ,
283+ NodeID : "down " ,
284284 },
285285 },
286286 expiring : allocSet {},
@@ -864,12 +864,12 @@ func TestAllocSet_filterByTainted(t *testing.T) {
864864 Job : testJobSingle ,
865865 NodeID : "draining" ,
866866 },
867- // Terminal allocs are always untainted, even on lost nodes
867+ // Terminal allocs are always untainted, even on down nodes
868868 "untainted4" : {
869869 ID : "untainted4" ,
870870 ClientStatus : structs .AllocClientStatusComplete ,
871871 Job : testJobSingle ,
872- NodeID : "lost " ,
872+ NodeID : "down " ,
873873 },
874874 // Non-terminal alloc with migrate=true should migrate on a draining node
875875 "migrating1" : {
@@ -909,12 +909,12 @@ func TestAllocSet_filterByTainted(t *testing.T) {
909909 Job : testJobSingle ,
910910 NodeID : "draining" ,
911911 },
912- // Terminal allocs are always untainted, even on lost nodes
912+ // Terminal allocs are always untainted, even on down nodes
913913 "untainted4" : {
914914 ID : "untainted4" ,
915915 ClientStatus : structs .AllocClientStatusComplete ,
916916 Job : testJobSingle ,
917- NodeID : "lost " ,
917+ NodeID : "down " ,
918918 },
919919 },
920920 migrate : allocSet {
@@ -949,19 +949,19 @@ func TestAllocSet_filterByTainted(t *testing.T) {
949949 // false failures, so don't perform that test if in this case.
950950 skipNilNodeTest : true ,
951951 all : allocSet {
952- // Non-terminal allocs on lost nodes are lost
952+ // Non-terminal allocs on lost nodes are down
953953 "lost1" : {
954954 ID : "lost1" ,
955955 ClientStatus : structs .AllocClientStatusPending ,
956956 Job : testJobSingle ,
957- NodeID : "lost " ,
957+ NodeID : "down " ,
958958 },
959- // Non-terminal allocs on lost nodes are lost
959+ // Non-terminal allocs on lost nodes are down
960960 "lost2" : {
961961 ID : "lost2" ,
962962 ClientStatus : structs .AllocClientStatusRunning ,
963963 Job : testJobSingle ,
964- NodeID : "lost " ,
964+ NodeID : "down " ,
965965 },
966966 },
967967 untainted : allocSet {},
@@ -970,19 +970,19 @@ func TestAllocSet_filterByTainted(t *testing.T) {
970970 reconnecting : allocSet {},
971971 ignore : allocSet {},
972972 lost : allocSet {
973- // Non-terminal allocs on lost nodes are lost
973+ // Non-terminal allocs on lost nodes are down
974974 "lost1" : {
975975 ID : "lost1" ,
976976 ClientStatus : structs .AllocClientStatusPending ,
977977 Job : testJobSingle ,
978- NodeID : "lost " ,
978+ NodeID : "down " ,
979979 },
980- // Non-terminal allocs on lost nodes are lost
980+ // Non-terminal allocs on lost nodes are down
981981 "lost2" : {
982982 ID : "lost2" ,
983983 ClientStatus : structs .AllocClientStatusRunning ,
984984 Job : testJobSingle ,
985- NodeID : "lost " ,
985+ NodeID : "down " ,
986986 },
987987 },
988988 expiring : allocSet {},
0 commit comments