From e5fd253b7964f0a06019f2869d03ef946b6ec4dd Mon Sep 17 00:00:00 2001 From: Pouryafard75 Date: Mon, 9 Dec 2024 08:09:11 -0500 Subject: [PATCH] ASTDiff: Test result migration https://github.com/addthis/hydra/commit/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780 --- ...dthis.hydra.job.JobTaskMoveAssignment.json | 11 + ...va.com.addthis.hydra.job.mq.HostState.json | 165 ++ ...m.addthis.hydra.job.spawn.HostManager.json | 33 + ...ava.com.addthis.hydra.job.spawn.Spawn.json | 2002 +++++++++++++++++ ...addthis.hydra.job.spawn.SpawnBalancer.json | 1637 +++++++++++++- ...s.hydra.job.spawn.SpawnBalancerConfig.json | 264 +++ ...ydra.job.spawn.SpawnBalancerTaskSizer.json | 110 + ...ydra.job.web.resources.SystemResource.json | 55 + ...his.hydra.job.spawn.SpawnBalancerTest.json | 352 +++ 9 files changed, 4619 insertions(+), 10 deletions(-) diff --git a/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.JobTaskMoveAssignment.json b/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.JobTaskMoveAssignment.json index e4ea1cb59d..ad66b91953 100644 --- a/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.JobTaskMoveAssignment.json +++ b/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.JobTaskMoveAssignment.json @@ -9,6 +9,17 @@ "secondPos" : 0, "firstEndPos" : 1884, "secondEndPos" : 1929 +}, { + "firstType" : "BlockComment", + "secondType" : "BlockComment", + "firstLabel" : "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */", + "secondLabel" : "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */", + "firstParentType" : "CompilationUnit", + "secondParentType" : "CompilationUnit", + "firstPos" : 0, + "secondPos" : 0, + "firstEndPos" : 557, + "secondEndPos" : 557 }, { "firstType" : "PackageDeclaration", "secondType" : "PackageDeclaration", diff --git a/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.mq.HostState.json b/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.mq.HostState.json index b87291e4a8..e528a35c5a 100644 --- a/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.mq.HostState.json +++ b/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.mq.HostState.json @@ -9,6 +9,17 @@ "secondPos" : 0, "firstEndPos" : 11955, "secondEndPos" : 12000 +}, { + "firstType" : "BlockComment", + "secondType" : "BlockComment", + "firstLabel" : "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */", + "secondLabel" : "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */", + "firstParentType" : "CompilationUnit", + "secondParentType" : "CompilationUnit", + "firstPos" : 0, + "secondPos" : 0, + "firstEndPos" : 557, + "secondEndPos" : 557 }, { "firstType" : "PackageDeclaration", "secondType" : "PackageDeclaration", @@ -1043,6 +1054,28 @@ "secondPos" : 1484, "firstEndPos" : 1454, "secondEndPos" : 1489 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Host State is determined by others zk group membership, by", + "secondLabel" : "// Host State is determined by others zk group membership, by", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 1460, + "secondPos" : 1495, + "firstEndPos" : 1521, + "secondEndPos" : 1556 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// definition it can not persist.", + "secondLabel" : "// definition it can not persist.", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 1526, + "secondPos" : 1561, + "firstEndPos" : 1559, + "secondEndPos" : 1594 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -2682,6 +2715,17 @@ "secondPos" : 2385, "firstEndPos" : 2362, "secondEndPos" : 2397 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "//TODO: remove but need this in for now because de-serialization fails without it", + "secondLabel" : "//TODO: remove but need this in for now because de-serialization fails without it", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 2368, + "secondPos" : 2403, + "firstEndPos" : 2450, + "secondEndPos" : 2485 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -3188,6 +3232,17 @@ "secondPos" : 2742, "firstEndPos" : 2718, "secondEndPos" : 2753 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Do not encode this derived, internal, non-typesafe field", + "secondLabel" : "// Do not encode this derived, internal, non-typesafe field", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 2725, + "secondPos" : 2760, + "firstEndPos" : 2784, + "secondEndPos" : 2819 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -10877,6 +10932,61 @@ "secondPos" : 7017, "firstEndPos" : 6981, "secondEndPos" : 7026 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// You probably only want to print these out when testing locally", + "secondLabel" : "// You probably only want to print these out when testing locally", + "firstParentType" : "MethodInvocation", + "secondParentType" : "MethodInvocation", + "firstPos" : 7009, + "secondPos" : 7054, + "firstEndPos" : 7074, + "secondEndPos" : 7119 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// .add(\"running\", getRunning())", + "secondLabel" : "// .add(\"running\", getRunning())", + "firstParentType" : "MethodInvocation", + "secondParentType" : "MethodInvocation", + "firstPos" : 7099, + "secondPos" : 7144, + "firstEndPos" : 7131, + "secondEndPos" : 7176 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// .add(\"stopped\", getStopped())", + "secondLabel" : "// .add(\"stopped\", getStopped())", + "firstParentType" : "MethodInvocation", + "secondParentType" : "MethodInvocation", + "firstPos" : 7156, + "secondPos" : 7201, + "firstEndPos" : 7188, + "secondEndPos" : 7233 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// .add(\"replicas\", getReplicas())", + "secondLabel" : "// .add(\"replicas\", getReplicas())", + "firstParentType" : "MethodInvocation", + "secondParentType" : "MethodInvocation", + "firstPos" : 7213, + "secondPos" : 7258, + "firstEndPos" : 7247, + "secondEndPos" : 7292 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// .add(\"queued\",getQueued())", + "secondLabel" : "// .add(\"queued\",getQueued())", + "firstParentType" : "MethodInvocation", + "secondParentType" : "MethodInvocation", + "firstPos" : 7272, + "secondPos" : 7317, + "firstEndPos" : 7301, + "secondEndPos" : 7346 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -11273,6 +11383,39 @@ "secondPos" : 7651, "firstEndPos" : 7614, "secondEndPos" : 7659 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "//", + "secondLabel" : "//", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 7629, + "secondPos" : 7674, + "firstEndPos" : 7631, + "secondEndPos" : 7676 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// generic getters / setters", + "secondLabel" : "// generic getters / setters", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 7636, + "secondPos" : 7681, + "firstEndPos" : 7664, + "secondEndPos" : 7709 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "//", + "secondLabel" : "//", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 7669, + "secondPos" : 7714, + "firstEndPos" : 7671, + "secondEndPos" : 7716 }, { "firstType" : "MethodDeclaration", "secondType" : "MethodDeclaration", @@ -13803,6 +13946,17 @@ "secondPos" : 9147, "firstEndPos" : 9109, "secondEndPos" : 9154 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Needed for serialization!", + "secondLabel" : "// Needed for serialization!", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 9122, + "secondPos" : 9167, + "firstEndPos" : 9150, + "secondEndPos" : 9195 }, { "firstType" : "MethodDeclaration", "secondType" : "MethodDeclaration", @@ -14111,6 +14265,17 @@ "secondPos" : 9352, "firstEndPos" : 9318, "secondEndPos" : 9363 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Needed for serialization!", + "secondLabel" : "// Needed for serialization!", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 9331, + "secondPos" : 9376, + "firstEndPos" : 9359, + "secondEndPos" : 9404 }, { "firstType" : "MethodDeclaration", "secondType" : "MethodDeclaration", diff --git a/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.spawn.HostManager.json b/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.spawn.HostManager.json index 65bbcab8be..4e8dbbed7a 100644 --- a/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.spawn.HostManager.json +++ b/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.spawn.HostManager.json @@ -9,6 +9,17 @@ "secondPos" : 0, "firstEndPos" : 3630, "secondEndPos" : 3640 +}, { + "firstType" : "BlockComment", + "secondType" : "BlockComment", + "firstLabel" : "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */", + "secondLabel" : "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */", + "firstParentType" : "CompilationUnit", + "secondParentType" : "CompilationUnit", + "firstPos" : 0, + "secondPos" : 0, + "firstEndPos" : 557, + "secondEndPos" : 557 }, { "firstType" : "PackageDeclaration", "secondType" : "PackageDeclaration", @@ -2209,6 +2220,17 @@ "secondPos" : 2347, "firstEndPos" : 2416, "secondEndPos" : 2416 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 2347, + "secondPos" : 2347, + "firstEndPos" : 2353, + "secondEndPos" : 2353 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -2242,6 +2264,17 @@ "secondPos" : 2424, "firstEndPos" : 2452, "secondEndPos" : 2452 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 2424, + "secondPos" : 2424, + "firstEndPos" : 2431, + "secondEndPos" : 2431 }, { "firstType" : "TextElement", "secondType" : "TextElement", diff --git a/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.spawn.Spawn.json b/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.spawn.Spawn.json index 0ae9433b77..ea01342afd 100644 --- a/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.spawn.Spawn.json +++ b/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.spawn.Spawn.json @@ -9,6 +9,17 @@ "secondPos" : 0, "firstEndPos" : 136567, "secondEndPos" : 136762 +}, { + "firstType" : "BlockComment", + "secondType" : "BlockComment", + "firstLabel" : "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */", + "secondLabel" : "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */", + "firstParentType" : "CompilationUnit", + "secondParentType" : "CompilationUnit", + "firstPos" : 0, + "secondPos" : 0, + "firstEndPos" : 557, + "secondEndPos" : 557 }, { "firstType" : "PackageDeclaration", "secondType" : "PackageDeclaration", @@ -3144,6 +3155,17 @@ "secondPos" : 6623, "firstEndPos" : 6449, "secondEndPos" : 6628 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// misc spawn configs", + "secondLabel" : "// misc spawn configs", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 6463, + "secondPos" : 6642, + "firstEndPos" : 6484, + "secondEndPos" : 6663 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -3892,6 +3914,17 @@ "secondPos" : 7194, "firstEndPos" : 7019, "secondEndPos" : 7198 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// log configs", + "secondLabel" : "// log configs", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 7027, + "secondPos" : 7206, + "firstEndPos" : 7041, + "secondEndPos" : 7220 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -4607,6 +4640,17 @@ "secondPos" : 7620, "firstEndPos" : 7446, "secondEndPos" : 7625 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// metrics", + "secondLabel" : "// metrics", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 7454, + "secondPos" : 7633, + "firstEndPos" : 7464, + "secondEndPos" : 7643 }, { "firstType" : "MethodDeclaration", "secondType" : "MethodDeclaration", @@ -4959,6 +5003,17 @@ "secondPos" : 7776, "firstEndPos" : 7614, "secondEndPos" : 7793 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// register jvm shutdown hook to clean up resources", + "secondLabel" : "// register jvm shutdown hook to clean up resources", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 7626, + "secondPos" : 7805, + "firstEndPos" : 7677, + "secondEndPos" : 7856 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -5938,6 +5993,17 @@ "secondPos" : 8431, "firstEndPos" : 8256, "secondEndPos" : 8435 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "//To track web socket connections", + "secondLabel" : "//To track web socket connections", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 8263, + "secondPos" : 8442, + "firstEndPos" : 8296, + "secondEndPos" : 8475 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -12692,6 +12758,17 @@ "secondPos" : 13164, "firstEndPos" : 12999, "secondEndPos" : 13178 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// look for local object to import", + "secondLabel" : "// look for local object to import", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 13010, + "secondPos" : 13189, + "firstEndPos" : 13044, + "secondEndPos" : 13223 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -13154,6 +13231,17 @@ "secondPos" : 13544, "firstEndPos" : 13379, "secondEndPos" : 13558 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// fix up null pointers", + "secondLabel" : "// fix up null pointers", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 13391, + "secondPos" : 13570, + "firstEndPos" : 13414, + "secondEndPos" : 13593 }, { "firstType" : "EnhancedForStatement", "secondType" : "EnhancedForStatement", @@ -13506,6 +13594,39 @@ "secondPos" : 13787, "firstEndPos" : 13616, "secondEndPos" : 13795 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// XXX Instantiate HostFailWorker/SpawnBalancer before SpawnMQ to avoid NPE during startup", + "secondLabel" : "// XXX Instantiate HostFailWorker/SpawnBalancer before SpawnMQ to avoid NPE during startup", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 13628, + "secondPos" : 13807, + "firstEndPos" : 13718, + "secondEndPos" : 13897 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Once connected, SpawnMQ will call HostFailWorker/SpawnBalancer to get host information, ", + "secondLabel" : "// Once connected, SpawnMQ will call HostFailWorker/SpawnBalancer to get host information, ", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 13727, + "secondPos" : 13906, + "firstEndPos" : 13818, + "secondEndPos" : 13997 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// so the latter components must be created first.", + "secondLabel" : "// so the latter components must be created first.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 13827, + "secondPos" : 14006, + "firstEndPos" : 13877, + "secondEndPos" : 14056 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -13715,6 +13836,17 @@ "secondPos" : 14183, "firstEndPos" : 14015, "secondEndPos" : 14194 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// connect to mesh", + "secondLabel" : "// connect to mesh", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 14027, + "secondPos" : 14206, + "firstEndPos" : 14045, + "secondEndPos" : 14224 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -13825,6 +13957,17 @@ "secondPos" : 14264, "firstEndPos" : 14089, "secondEndPos" : 14268 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// connect to message broker or fail", + "secondLabel" : "// connect to message broker or fail", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 14100, + "secondPos" : 14279, + "firstEndPos" : 14136, + "secondEndPos" : 14315 }, { "firstType" : "IfStatement", "secondType" : "IfStatement", @@ -14474,6 +14617,39 @@ "secondPos" : 14768, "firstEndPos" : 14642, "secondEndPos" : 14821 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// XXX start FailHostTask schedule separately from HostFailWorker instantiation.", + "secondLabel" : "// XXX start FailHostTask schedule separately from HostFailWorker instantiation.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 14664, + "secondPos" : 14843, + "firstEndPos" : 14744, + "secondEndPos" : 14923 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Since FailHostTask has a lot of runtime dependencies on other spawn components such as ", + "secondLabel" : "// Since FailHostTask has a lot of runtime dependencies on other spawn components such as ", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 14753, + "secondPos" : 14932, + "firstEndPos" : 14843, + "secondEndPos" : 15022 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// SpawnBalancer, it's safer to start as late in the spawn init cycle as possible.", + "secondLabel" : "// SpawnBalancer, it's safer to start as late in the spawn init cycle as possible.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 14852, + "secondPos" : 15031, + "firstEndPos" : 14934, + "secondEndPos" : 15113 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -14529,6 +14705,17 @@ "secondPos" : 15137, "firstEndPos" : 14982, "secondEndPos" : 15161 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// start JobAlertManager", + "secondLabel" : "// start JobAlertManager", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 14994, + "secondPos" : 15173, + "firstEndPos" : 15018, + "secondEndPos" : 15197 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -14628,6 +14815,17 @@ "secondPos" : 15254, "firstEndPos" : 15092, "secondEndPos" : 15271 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// start job scheduler", + "secondLabel" : "// start job scheduler", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 15103, + "secondPos" : 15282, + "firstEndPos" : 15125, + "secondEndPos" : 15304 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -15178,6 +15376,17 @@ "secondPos" : 15945, "firstEndPos" : 15778, "secondEndPos" : 15957 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// request hosts to send their status", + "secondLabel" : "// request hosts to send their status", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 15789, + "secondPos" : 15968, + "firstEndPos" : 15826, + "secondEndPos" : 16005 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -20733,6 +20942,17 @@ "secondPos" : 20151, "firstEndPos" : 19968, "secondEndPos" : 20156 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// -------------------- BEGIN API ---------------------", + "secondLabel" : "// -------------------- BEGIN API ---------------------", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 19983, + "secondPos" : 20171, + "firstEndPos" : 20038, + "secondEndPos" : 20226 }, { "firstType" : "MethodDeclaration", "secondType" : "MethodDeclaration", @@ -21734,6 +21954,17 @@ "secondPos" : 20774, "firstEndPos" : 20596, "secondEndPos" : 20784 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// delete minion state", + "secondLabel" : "// delete minion state", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 20612, + "secondPos" : 20800, + "firstEndPos" : 20634, + "secondEndPos" : 20822 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -22130,6 +22361,17 @@ "secondPos" : 21081, "firstEndPos" : 20955, "secondEndPos" : 21143 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// host already marked as dead", + "secondLabel" : "// host already marked as dead", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 20911, + "secondPos" : 21099, + "firstEndPos" : 20941, + "secondEndPos" : 21129 }, { "firstType" : "CatchClause", "secondType" : "CatchClause", @@ -24891,6 +25133,17 @@ "secondPos" : 23142, "firstEndPos" : 23031, "secondEndPos" : 23219 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 22954, + "secondPos" : 23142, + "firstEndPos" : 22961, + "secondEndPos" : 23149 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -24913,6 +25166,17 @@ "secondPos" : 23227, "firstEndPos" : 23152, "secondEndPos" : 23340 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@throws", + "secondLabel" : "@throws", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 23039, + "secondPos" : 23227, + "firstEndPos" : 23046, + "secondEndPos" : 23234 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -30105,6 +30369,28 @@ "secondPos" : 26567, "firstEndPos" : 26383, "secondEndPos" : 26571 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Null out the job config before inserting to reduce the amount stored in memory.", + "secondLabel" : "// Null out the job config before inserting to reduce the amount stored in memory.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 26403, + "secondPos" : 26591, + "firstEndPos" : 26485, + "secondEndPos" : 26673 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Calling getJob will fill it back in -- or call jobConfigManager.getConfig(id)", + "secondLabel" : "// Calling getJob will fill it back in -- or call jobConfigManager.getConfig(id)", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 26494, + "secondPos" : 26682, + "firstEndPos" : 26574, + "secondEndPos" : 26762 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -42634,6 +42920,17 @@ "secondPos" : 35127, "firstEndPos" : 34975, "secondEndPos" : 35163 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 34939, + "secondPos" : 35127, + "firstEndPos" : 34945, + "secondEndPos" : 35133 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -42667,6 +42964,17 @@ "secondPos" : 35171, "firstEndPos" : 35056, "secondEndPos" : 35244 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 34983, + "secondPos" : 35171, + "firstEndPos" : 34989, + "secondEndPos" : 35177 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -42700,6 +43008,17 @@ "secondPos" : 35252, "firstEndPos" : 35118, "secondEndPos" : 35306 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 35064, + "secondPos" : 35252, + "firstEndPos" : 35071, + "secondEndPos" : 35259 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -43811,6 +44130,17 @@ "secondPos" : 36280, "firstEndPos" : 36132, "secondEndPos" : 36320 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 36092, + "secondPos" : 36280, + "firstEndPos" : 36098, + "secondEndPos" : 36286 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -43844,6 +44174,17 @@ "secondPos" : 36328, "firstEndPos" : 36214, "secondEndPos" : 36402 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 36140, + "secondPos" : 36328, + "firstEndPos" : 36146, + "secondEndPos" : 36334 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -43877,6 +44218,17 @@ "secondPos" : 36410, "firstEndPos" : 36295, "secondEndPos" : 36483 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 36222, + "secondPos" : 36410, + "firstEndPos" : 36228, + "secondEndPos" : 36416 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -43910,6 +44262,17 @@ "secondPos" : 36491, "firstEndPos" : 36326, "secondEndPos" : 36514 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 36303, + "secondPos" : 36491, + "firstEndPos" : 36310, + "secondEndPos" : 36498 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -45692,6 +46055,17 @@ "secondPos" : 37688, "firstEndPos" : 37548, "secondEndPos" : 37736 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 37500, + "secondPos" : 37688, + "firstEndPos" : 37506, + "secondEndPos" : 37694 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -45725,6 +46099,17 @@ "secondPos" : 37744, "firstEndPos" : 37622, "secondEndPos" : 37810 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 37556, + "secondPos" : 37744, + "firstEndPos" : 37563, + "secondEndPos" : 37751 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -46297,6 +46682,17 @@ "secondPos" : 38237, "firstEndPos" : 38079, "secondEndPos" : 38267 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 38049, + "secondPos" : 38237, + "firstEndPos" : 38055, + "secondEndPos" : 38243 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -46330,6 +46726,17 @@ "secondPos" : 38275, "firstEndPos" : 38132, "secondEndPos" : 38320 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 38087, + "secondPos" : 38275, + "firstEndPos" : 38094, + "secondEndPos" : 38282 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -48772,6 +49179,17 @@ "secondPos" : 39903, "firstEndPos" : 39765, "secondEndPos" : 39953 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 39715, + "secondPos" : 39903, + "firstEndPos" : 39721, + "secondEndPos" : 39909 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -48805,6 +49223,17 @@ "secondPos" : 39961, "firstEndPos" : 39823, "secondEndPos" : 40011 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 39773, + "secondPos" : 39961, + "firstEndPos" : 39779, + "secondEndPos" : 39967 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -48838,6 +49267,17 @@ "secondPos" : 40019, "firstEndPos" : 39886, "secondEndPos" : 40074 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 39831, + "secondPos" : 40019, + "firstEndPos" : 39837, + "secondEndPos" : 40025 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -48871,6 +49311,17 @@ "secondPos" : 40082, "firstEndPos" : 39967, "secondEndPos" : 40155 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 39894, + "secondPos" : 40082, + "firstEndPos" : 39901, + "secondEndPos" : 40089 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -51027,6 +51478,17 @@ "secondPos" : 41534, "firstEndPos" : 41380, "secondEndPos" : 41568 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 41346, + "secondPos" : 41534, + "firstEndPos" : 41352, + "secondEndPos" : 41540 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -51060,6 +51522,17 @@ "secondPos" : 41576, "firstEndPos" : 41463, "secondEndPos" : 41651 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 41388, + "secondPos" : 41576, + "firstEndPos" : 41395, + "secondEndPos" : 41583 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -52039,6 +52512,17 @@ "secondPos" : 42547, "firstEndPos" : 42404, "secondEndPos" : 42592 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 42359, + "secondPos" : 42547, + "firstEndPos" : 42365, + "secondEndPos" : 42553 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -52072,6 +52556,17 @@ "secondPos" : 42600, "firstEndPos" : 42509, "secondEndPos" : 42697 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 42412, + "secondPos" : 42600, + "firstEndPos" : 42418, + "secondEndPos" : 42606 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -52105,6 +52600,17 @@ "secondPos" : 42705, "firstEndPos" : 42569, "secondEndPos" : 42757 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 42517, + "secondPos" : 42705, + "firstEndPos" : 42524, + "secondEndPos" : 42712 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -54987,6 +55493,17 @@ "secondPos" : 44517, "firstEndPos" : 44357, "secondEndPos" : 44555 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Continue with the next assignment", + "secondLabel" : "// Continue with the next assignment", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 44380, + "secondPos" : 44578, + "firstEndPos" : 44416, + "secondEndPos" : 44614 }, { "firstType" : "Block", "secondType" : "Block", @@ -56593,6 +57110,17 @@ "secondPos" : 45922, "firstEndPos" : 45766, "secondEndPos" : 45964 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 45724, + "secondPos" : 45922, + "firstEndPos" : 45730, + "secondEndPos" : 45928 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -56626,6 +57154,17 @@ "secondPos" : 45972, "firstEndPos" : 45846, "secondEndPos" : 46044 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 45774, + "secondPos" : 45972, + "firstEndPos" : 45780, + "secondEndPos" : 45978 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -56659,6 +57198,17 @@ "secondPos" : 46052, "firstEndPos" : 45918, "secondEndPos" : 46116 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 45854, + "secondPos" : 46052, + "firstEndPos" : 45861, + "secondEndPos" : 46059 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -56681,6 +57231,17 @@ "secondPos" : 46124, "firstEndPos" : 45991, "secondEndPos" : 46189 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@throws", + "secondLabel" : "@throws", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 45926, + "secondPos" : 46124, + "firstEndPos" : 45933, + "secondEndPos" : 46131 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -58144,6 +58705,17 @@ "secondPos" : 47139, "firstEndPos" : 46945, "secondEndPos" : 47143 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// First, make sure each task has claimed all the replicas it should have", + "secondLabel" : "// First, make sure each task has claimed all the replicas it should have", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 46966, + "secondPos" : 47164, + "firstEndPos" : 47039, + "secondEndPos" : 47237 }, { "firstType" : "IfStatement", "secondType" : "IfStatement", @@ -58584,6 +59156,17 @@ "secondPos" : 47548, "firstEndPos" : 47359, "secondEndPos" : 47557 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Check each task to see if any live/replica directories are missing or incorrectly placed", + "secondLabel" : "// Check each task to see if any live/replica directories are missing or incorrectly placed", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 47377, + "secondPos" : 47575, + "firstEndPos" : 47468, + "secondEndPos" : 47666 }, { "firstType" : "EnhancedForStatement", "secondType" : "EnhancedForStatement", @@ -58925,6 +59508,17 @@ "secondPos" : 47878, "firstEndPos" : 47911, "secondEndPos" : 48109 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// If there are issues with a task's directories, resolve them.", + "secondLabel" : "// If there are issues with a task's directories, resolve them.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 47702, + "secondPos" : 47900, + "firstEndPos" : 47765, + "secondEndPos" : 47963 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -59123,6 +59717,17 @@ "secondPos" : 48146, "firstEndPos" : 47951, "secondEndPos" : 48149 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// If any mismatches were found, skip the optimization step", + "secondLabel" : "// If any mismatches were found, skip the optimization step", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 47966, + "secondPos" : 48164, + "firstEndPos" : 48025, + "secondEndPos" : 48223 }, { "firstType" : "IfStatement", "secondType" : "IfStatement", @@ -59409,6 +60014,17 @@ "secondPos" : 48402, "firstEndPos" : 48486, "secondEndPos" : 48684 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// If all tasks had all expected directories, consider moving some tasks to better hosts", + "secondLabel" : "// If all tasks had all expected directories, consider moving some tasks to better hosts", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 48222, + "secondPos" : 48420, + "firstEndPos" : 48310, + "secondEndPos" : 48508 }, { "firstType" : "ReturnStatement", "secondType" : "ReturnStatement", @@ -60003,6 +60619,17 @@ "secondPos" : 49031, "firstEndPos" : 48873, "secondEndPos" : 49071 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 48833, + "secondPos" : 49031, + "firstEndPos" : 48839, + "secondEndPos" : 49037 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -60036,6 +60663,17 @@ "secondPos" : 49079, "firstEndPos" : 48940, "secondEndPos" : 49138 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 48881, + "secondPos" : 49079, + "firstEndPos" : 48887, + "secondEndPos" : 49085 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -60069,6 +60707,17 @@ "secondPos" : 49146, "firstEndPos" : 49050, "secondEndPos" : 49248 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 48948, + "secondPos" : 49146, + "firstEndPos" : 48954, + "secondEndPos" : 49152 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -60102,6 +60751,17 @@ "secondPos" : 49256, "firstEndPos" : 49126, "secondEndPos" : 49324 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 49058, + "secondPos" : 49256, + "firstEndPos" : 49064, + "secondEndPos" : 49262 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -60135,6 +60795,17 @@ "secondPos" : 49332, "firstEndPos" : 49162, "secondEndPos" : 49360 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 49134, + "secondPos" : 49332, + "firstEndPos" : 49141, + "secondEndPos" : 49339 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -62456,6 +63127,17 @@ "secondPos" : 51107, "firstEndPos" : 50940, "secondEndPos" : 51138 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 50909, + "secondPos" : 51107, + "firstEndPos" : 50915, + "secondEndPos" : 51113 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -62489,6 +63171,17 @@ "secondPos" : 51146, "firstEndPos" : 51029, "secondEndPos" : 51227 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 50948, + "secondPos" : 51146, + "firstEndPos" : 50954, + "secondEndPos" : 51152 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -62522,6 +63215,17 @@ "secondPos" : 51235, "firstEndPos" : 51073, "secondEndPos" : 51271 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 51037, + "secondPos" : 51235, + "firstEndPos" : 51044, + "secondEndPos" : 51242 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -64304,6 +65008,17 @@ "secondPos" : 52483, "firstEndPos" : 52442, "secondEndPos" : 52640 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// If we're only deleting orphans, ignore any expected hosts missing the task", + "secondLabel" : "// If we're only deleting orphans, ignore any expected hosts missing the task", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 52299, + "secondPos" : 52497, + "firstEndPos" : 52376, + "secondEndPos" : 52574 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -64876,6 +65591,17 @@ "secondPos" : 52969, "firstEndPos" : 53840, "secondEndPos" : 54038 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// No copies of the task were found on the expected live/replica hosts. Attempt to recover other copies from the cluster.", + "secondLabel" : "// No copies of the task were found on the expected live/replica hosts. Attempt to recover other copies from the cluster.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 52785, + "secondPos" : 52983, + "firstEndPos" : 52906, + "secondEndPos" : 53104 }, { "firstType" : "IfStatement", "secondType" : "IfStatement", @@ -64942,6 +65668,17 @@ "secondPos" : 53156, "firstEndPos" : 53240, "secondEndPos" : 53438 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// No copies of the task were found anywhere in the cluster. Have to recreate it.", + "secondLabel" : "// No copies of the task were found anywhere in the cluster. Have to recreate it.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 52976, + "secondPos" : 53174, + "firstEndPos" : 53057, + "secondEndPos" : 53255 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -65140,6 +65877,17 @@ "secondPos" : 53419, "firstEndPos" : 53225, "secondEndPos" : 53423 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Found at least one host with data. Iterate through the hosts with data; first host becomes live, any others become replicas", + "secondLabel" : "// Found at least one host with data. Iterate through the hosts with data; first host becomes live, any others become replicas", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 53253, + "secondPos" : 53451, + "firstEndPos" : 53379, + "secondEndPos" : 53577 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -65899,6 +66647,17 @@ "secondPos" : 54044, "firstEndPos" : 54443, "secondEndPos" : 54641 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Found copies of task on expected hosts. Copy to any hosts missing the data, and delete from any unexpected hosts", + "secondLabel" : "// Found copies of task on expected hosts. Copy to any hosts missing the data, and delete from any unexpected hosts", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 53860, + "secondPos" : 54058, + "firstEndPos" : 53975, + "secondEndPos" : 54173 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -71619,6 +72378,17 @@ "secondPos" : 57551, "firstEndPos" : 57671, "secondEndPos" : 57869 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// If task is replicating, it will temporarily look like it's missing on the target host. Make this visible to the UI.", + "secondLabel" : "// If task is replicating, it will temporarily look like it's missing on the target host. Make this visible to the UI.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 57379, + "secondPos" : 57577, + "firstEndPos" : 57497, + "secondEndPos" : 57695 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -76767,6 +77537,17 @@ "secondPos" : 61354, "firstEndPos" : 61191, "secondEndPos" : 61394 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 61151, + "secondPos" : 61354, + "firstEndPos" : 61158, + "secondEndPos" : 61361 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -77152,6 +77933,17 @@ "secondPos" : 62052, "firstEndPos" : 61894, "secondEndPos" : 62097 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 61849, + "secondPos" : 62052, + "firstEndPos" : 61855, + "secondEndPos" : 62058 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -77185,6 +77977,17 @@ "secondPos" : 62105, "firstEndPos" : 61970, "secondEndPos" : 62173 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 61902, + "secondPos" : 62105, + "firstEndPos" : 61908, + "secondEndPos" : 62111 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -77218,6 +78021,17 @@ "secondPos" : 62181, "firstEndPos" : 62018, "secondEndPos" : 62221 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 61978, + "secondPos" : 62181, + "firstEndPos" : 61985, + "secondEndPos" : 62188 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -77460,6 +78274,17 @@ "secondPos" : 62353, "firstEndPos" : 62155, "secondEndPos" : 62358 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Ensure that there aren't any replicas pointing towards the live host or duplicate replicas", + "secondLabel" : "// Ensure that there aren't any replicas pointing towards the live host or duplicate replicas", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 62175, + "secondPos" : 62378, + "firstEndPos" : 62268, + "secondEndPos" : 62471 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -77537,6 +78362,17 @@ "secondPos" : 62511, "firstEndPos" : 62311, "secondEndPos" : 62514 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Ask SpawnBalancer where new replicas should be sent", + "secondLabel" : "// Ask SpawnBalancer where new replicas should be sent", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 62322, + "secondPos" : 62525, + "firstEndPos" : 62376, + "secondEndPos" : 62579 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -78329,6 +79165,17 @@ "secondPos" : 62896, "firstEndPos" : 62702, "secondEndPos" : 62905 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Make the new replicas as dictated by SpawnBalancer", + "secondLabel" : "// Make the new replicas as dictated by SpawnBalancer", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 62719, + "secondPos" : 62922, + "firstEndPos" : 62772, + "secondEndPos" : 62975 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -78648,6 +79495,17 @@ "secondPos" : 63251, "firstEndPos" : 63080, "secondEndPos" : 63283 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 63048, + "secondPos" : 63251, + "firstEndPos" : 63054, + "secondEndPos" : 63257 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -78681,6 +79539,17 @@ "secondPos" : 63291, "firstEndPos" : 63144, "secondEndPos" : 63347 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 63088, + "secondPos" : 63291, + "firstEndPos" : 63095, + "secondEndPos" : 63298 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -79495,6 +80364,17 @@ "secondPos" : 63715, "firstEndPos" : 63523, "secondEndPos" : 63726 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// If current host is dead and there are no replicas, mark degraded", + "secondLabel" : "// If current host is dead and there are no replicas, mark degraded", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 63548, + "secondPos" : 63751, + "firstEndPos" : 63615, + "secondEndPos" : 63818 }, { "firstType" : "IfStatement", "secondType" : "IfStatement", @@ -79968,6 +80848,17 @@ "secondPos" : 64081, "firstEndPos" : 63892, "secondEndPos" : 64095 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Otherwise, just mark errored so we will know that at least on replica failed", + "secondLabel" : "// Otherwise, just mark errored so we will know that at least on replica failed", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 63895, + "secondPos" : 64098, + "firstEndPos" : 63974, + "secondEndPos" : 64177 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -85402,6 +86293,17 @@ "secondPos" : 67600, "firstEndPos" : 67438, "secondEndPos" : 67638 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 67400, + "secondPos" : 67600, + "firstEndPos" : 67406, + "secondEndPos" : 67606 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -85435,6 +86337,17 @@ "secondPos" : 67646, "firstEndPos" : 67506, "secondEndPos" : 67706 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 67446, + "secondPos" : 67646, + "firstEndPos" : 67452, + "secondEndPos" : 67652 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -87206,6 +88119,17 @@ "secondPos" : 68685, "firstEndPos" : 68488, "secondEndPos" : 68688 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// take action on trigger changes (like # replicas)", + "secondLabel" : "// take action on trigger changes (like # replicas)", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 68503, + "secondPos" : 68703, + "firstEndPos" : 68554, + "secondEndPos" : 68754 }, { "firstType" : "IfStatement", "secondType" : "IfStatement", @@ -89945,6 +90869,17 @@ "secondPos" : 70822, "firstEndPos" : 70656, "secondEndPos" : 70856 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 70622, + "secondPos" : 70822, + "firstEndPos" : 70628, + "secondEndPos" : 70828 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -89978,6 +90913,17 @@ "secondPos" : 70864, "firstEndPos" : 70729, "secondEndPos" : 70929 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 70664, + "secondPos" : 70864, + "firstEndPos" : 70670, + "secondEndPos" : 70870 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -90011,6 +90957,17 @@ "secondPos" : 70937, "firstEndPos" : 70785, "secondEndPos" : 70985 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 70737, + "secondPos" : 70937, + "firstEndPos" : 70743, + "secondEndPos" : 70943 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -90044,6 +91001,17 @@ "secondPos" : 70993, "firstEndPos" : 70863, "secondEndPos" : 71063 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 70793, + "secondPos" : 70993, + "firstEndPos" : 70799, + "secondEndPos" : 70999 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -90077,6 +91045,17 @@ "secondPos" : 71071, "firstEndPos" : 70919, "secondEndPos" : 71119 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 70871, + "secondPos" : 71071, + "firstEndPos" : 70878, + "secondEndPos" : 71078 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -92585,6 +93564,17 @@ "secondPos" : 72654, "firstEndPos" : 72480, "secondEndPos" : 72680 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 72454, + "secondPos" : 72654, + "firstEndPos" : 72460, + "secondEndPos" : 72660 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -92618,6 +93608,17 @@ "secondPos" : 72688, "firstEndPos" : 72534, "secondEndPos" : 72734 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 72488, + "secondPos" : 72688, + "firstEndPos" : 72494, + "secondEndPos" : 72694 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -92651,6 +93652,17 @@ "secondPos" : 72742, "firstEndPos" : 72559, "secondEndPos" : 72759 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@throws", + "secondLabel" : "@throws", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 72542, + "secondPos" : 72742, + "firstEndPos" : 72549, + "secondEndPos" : 72749 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -94345,6 +95357,17 @@ "secondPos" : 73668, "firstEndPos" : 74044, "secondEndPos" : 74244 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// macro recursive expansion", + "secondLabel" : "// macro recursive expansion", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 73478, + "secondPos" : 73678, + "firstEndPos" : 73506, + "secondEndPos" : 73706 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -94477,6 +95500,17 @@ "secondPos" : 73758, "firstEndPos" : 73567, "secondEndPos" : 73767 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// template in params that \"may\" contain other macros", + "secondLabel" : "// template in params that \"may\" contain other macros", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 73578, + "secondPos" : 73778, + "firstEndPos" : 73631, + "secondEndPos" : 73831 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -94609,6 +95643,17 @@ "secondPos" : 73892, "firstEndPos" : 73702, "secondEndPos" : 73902 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// macro recursive expansion again", + "secondLabel" : "// macro recursive expansion again", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 73713, + "secondPos" : 73913, + "firstEndPos" : 73747, + "secondEndPos" : 73947 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -94741,6 +95786,17 @@ "secondPos" : 73999, "firstEndPos" : 73804, "secondEndPos" : 74004 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// replace remaining params not caught in pass 1", + "secondLabel" : "// replace remaining params not caught in pass 1", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 73815, + "secondPos" : 74015, + "firstEndPos" : 73863, + "secondEndPos" : 74063 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -94873,6 +95929,17 @@ "secondPos" : 74124, "firstEndPos" : 73934, "secondEndPos" : 74134 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// inject job metadata from spawn", + "secondLabel" : "// inject job metadata from spawn", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 73945, + "secondPos" : 74145, + "firstEndPos" : 73978, + "secondEndPos" : 74178 }, { "firstType" : "ReturnStatement", "secondType" : "ReturnStatement", @@ -98129,6 +99196,17 @@ "secondPos" : 76430, "firstEndPos" : 76256, "secondEndPos" : 76456 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 76230, + "secondPos" : 76430, + "firstEndPos" : 76236, + "secondEndPos" : 76436 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -98162,6 +99240,17 @@ "secondPos" : 76464, "firstEndPos" : 76290, "secondEndPos" : 76490 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 76264, + "secondPos" : 76464, + "firstEndPos" : 76270, + "secondEndPos" : 76470 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -98195,6 +99284,17 @@ "secondPos" : 76498, "firstEndPos" : 76407, "secondEndPos" : 76607 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 76298, + "secondPos" : 76498, + "firstEndPos" : 76304, + "secondEndPos" : 76504 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -98228,6 +99328,17 @@ "secondPos" : 76615, "firstEndPos" : 76465, "secondEndPos" : 76665 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 76415, + "secondPos" : 76615, + "firstEndPos" : 76421, + "secondEndPos" : 76621 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -98261,6 +99372,17 @@ "secondPos" : 76673, "firstEndPos" : 76561, "secondEndPos" : 76761 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 76473, + "secondPos" : 76673, + "firstEndPos" : 76479, + "secondEndPos" : 76679 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -98294,6 +99416,17 @@ "secondPos" : 76769, "firstEndPos" : 76629, "secondEndPos" : 76829 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@throws", + "secondLabel" : "@throws", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 76569, + "secondPos" : 76769, + "firstEndPos" : 76576, + "secondEndPos" : 76776 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -101099,6 +102232,17 @@ "secondPos" : 78316, "firstEndPos" : 78120, "secondEndPos" : 78320 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Terminate the current queue iteration cleanly", + "secondLabel" : "// Terminate the current queue iteration cleanly", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 78123, + "secondPos" : 78323, + "firstEndPos" : 78171, + "secondEndPos" : 78371 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -104322,6 +105466,17 @@ "secondPos" : 80295, "firstEndPos" : 80104, "secondEndPos" : 80304 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// The following is called regardless of task state, unless the host is nonexistent/failed", + "secondLabel" : "// The following is called regardless of task state, unless the host is nonexistent/failed", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 80135, + "secondPos" : 80335, + "firstEndPos" : 80225, + "secondEndPos" : 80425 }, { "firstType" : "IfStatement", "secondType" : "IfStatement", @@ -107435,6 +108590,17 @@ "secondPos" : 82456, "firstEndPos" : 82594, "secondEndPos" : 82794 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Revert entire job", + "secondLabel" : "// Revert entire job", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 82270, + "secondPos" : 82470, + "firstEndPos" : 82290, + "secondEndPos" : 82490 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -108018,6 +109184,17 @@ "secondPos" : 82800, "firstEndPos" : 82770, "secondEndPos" : 82970 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Revert single task", + "secondLabel" : "// Revert single task", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 82614, + "secondPos" : 82814, + "firstEndPos" : 82635, + "secondEndPos" : 82835 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -110042,6 +111219,17 @@ "secondPos" : 83940, "firstEndPos" : 83753, "secondEndPos" : 83953 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// --------------------- END API ----------------------", + "secondLabel" : "// --------------------- END API ----------------------", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 83779, + "secondPos" : 83979, + "firstEndPos" : 83834, + "secondEndPos" : 84034 }, { "firstType" : "MethodDeclaration", "secondType" : "MethodDeclaration", @@ -112935,6 +114123,17 @@ "secondPos" : 85751, "firstEndPos" : 85556, "secondEndPos" : 85756 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Propagate minion state for ui", + "secondLabel" : "// Propagate minion state for ui", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 85585, + "secondPos" : 85785, + "firstEndPos" : 85617, + "secondEndPos" : 85817 }, { "firstType" : "IfStatement", "secondType" : "IfStatement", @@ -124584,6 +125783,17 @@ "secondPos" : 93211, "firstEndPos" : 93043, "secondEndPos" : 93243 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 93011, + "secondPos" : 93211, + "firstEndPos" : 93017, + "secondEndPos" : 93217 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -124617,6 +125827,17 @@ "secondPos" : 93251, "firstEndPos" : 93121, "secondEndPos" : 93321 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 93051, + "secondPos" : 93251, + "firstEndPos" : 93057, + "secondEndPos" : 93257 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -124650,6 +125871,17 @@ "secondPos" : 93329, "firstEndPos" : 93196, "secondEndPos" : 93396 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 93129, + "secondPos" : 93329, + "firstEndPos" : 93136, + "secondEndPos" : 93336 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -125321,6 +126553,17 @@ "secondPos" : 93917, "firstEndPos" : 93748, "secondEndPos" : 93948 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 93717, + "secondPos" : 93917, + "firstEndPos" : 93723, + "secondEndPos" : 93923 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -125354,6 +126597,17 @@ "secondPos" : 93956, "firstEndPos" : 93788, "secondEndPos" : 93988 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 93756, + "secondPos" : 93956, + "firstEndPos" : 93762, + "secondEndPos" : 93962 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -125387,6 +126641,17 @@ "secondPos" : 93996, "firstEndPos" : 93821, "secondEndPos" : 94021 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 93796, + "secondPos" : 93996, + "firstEndPos" : 93802, + "secondEndPos" : 94002 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -128687,6 +129952,17 @@ "secondPos" : 95812, "firstEndPos" : 96558, "secondEndPos" : 96758 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Rsync succeeded. Swap to the new host, assuming it is still healthy.", + "secondLabel" : "// Rsync succeeded. Swap to the new host, assuming it is still healthy.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 95626, + "secondPos" : 95826, + "firstEndPos" : 95697, + "secondEndPos" : 95897 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -129644,6 +130920,17 @@ "secondPos" : 96563, "firstEndPos" : 96548, "secondEndPos" : 96748 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// The hosts returned by end message were not found, or weren't in a usable state.", + "secondLabel" : "// The hosts returned by end message were not found, or weren't in a usable state.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 96381, + "secondPos" : 96581, + "firstEndPos" : 96463, + "secondEndPos" : 96663 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -129897,6 +131184,17 @@ "secondPos" : 96826, "firstEndPos" : 96808, "secondEndPos" : 97008 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Rebalancing was paused. No special action necessary.", + "secondLabel" : "// Rebalancing was paused. No special action necessary.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 96640, + "secondPos" : 96840, + "firstEndPos" : 96695, + "secondEndPos" : 96895 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -130062,6 +131360,17 @@ "secondPos" : 97014, "firstEndPos" : 96960, "secondEndPos" : 97160 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// The rsync failed. Clean up the extra task directory.", + "secondLabel" : "// The rsync failed. Clean up the extra task directory.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 96828, + "secondPos" : 97028, + "firstEndPos" : 96883, + "secondEndPos" : 97083 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -130282,6 +131591,17 @@ "secondPos" : 97412, "firstEndPos" : 97253, "secondEndPos" : 97453 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 97212, + "secondPos" : 97412, + "firstEndPos" : 97218, + "secondEndPos" : 97418 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -130315,6 +131635,17 @@ "secondPos" : 97461, "firstEndPos" : 97315, "secondEndPos" : 97515 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 97261, + "secondPos" : 97461, + "firstEndPos" : 97267, + "secondEndPos" : 97467 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -131437,6 +132768,17 @@ "secondPos" : 98153, "firstEndPos" : 98128, "secondEndPos" : 98328 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Perform a fixDirs on completion, cleaning up missing replicas/orphans.", + "secondLabel" : "// Perform a fixDirs on completion, cleaning up missing replicas/orphans.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 97975, + "secondPos" : 98175, + "firstEndPos" : 98048, + "secondEndPos" : 98248 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -132328,6 +133670,17 @@ "secondPos" : 98727, "firstEndPos" : 98534, "secondEndPos" : 98734 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// best set?", + "secondLabel" : "// best set?", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 98539, + "secondPos" : 98739, + "firstEndPos" : 98551, + "secondEndPos" : 98751 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -134638,6 +135991,28 @@ "secondPos" : 100108, "firstEndPos" : 99919, "secondEndPos" : 100119 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// TODO: 1. Why is this not in SpawnMQ? 2. Who actually listens to job config changes", + "secondLabel" : "// TODO: 1. Why is this not in SpawnMQ? 2. Who actually listens to job config changes", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 99934, + "secondPos" : 100134, + "firstEndPos" : 100021, + "secondEndPos" : 100221 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// TODO: answer: this is for the web ui and live updating via SpawnManager /listen.batch", + "secondLabel" : "// TODO: answer: this is for the web ui and live updating via SpawnManager /listen.batch", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 100026, + "secondPos" : 100226, + "firstEndPos" : 100114, + "secondEndPos" : 100314 }, { "firstType" : "MethodDeclaration", "secondType" : "MethodDeclaration", @@ -138697,6 +140072,17 @@ "secondPos" : 103577, "firstEndPos" : 103392, "secondEndPos" : 103592 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 103377, + "secondPos" : 103577, + "firstEndPos" : 103383, + "secondEndPos" : 103583 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -147409,6 +148795,17 @@ "secondPos" : 109286, "firstEndPos" : 109105, "secondEndPos" : 109305 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Drop listeners we haven't heard from in a while, or if they don't seem to be consuming from their queue", + "secondLabel" : "// Drop listeners we haven't heard from in a while, or if they don't seem to be consuming from their queue", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 109119, + "secondPos" : 109319, + "firstEndPos" : 109225, + "secondEndPos" : 109425 }, { "firstType" : "IfStatement", "secondType" : "IfStatement", @@ -152634,6 +154031,17 @@ "secondPos" : 113154, "firstEndPos" : 112988, "secondEndPos" : 113186 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 112956, + "secondPos" : 113154, + "firstEndPos" : 112962, + "secondEndPos" : 113160 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -152667,6 +154075,17 @@ "secondPos" : 113194, "firstEndPos" : 113029, "secondEndPos" : 113227 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 112996, + "secondPos" : 113194, + "firstEndPos" : 113002, + "secondEndPos" : 113200 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -152700,6 +154119,17 @@ "secondPos" : 113235, "firstEndPos" : 113076, "secondEndPos" : 113274 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 113037, + "secondPos" : 113235, + "firstEndPos" : 113043, + "secondEndPos" : 113241 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -152733,6 +154163,17 @@ "secondPos" : 113282, "firstEndPos" : 113187, "secondEndPos" : 113385 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 113084, + "secondPos" : 113282, + "firstEndPos" : 113090, + "secondEndPos" : 113288 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -152766,6 +154207,17 @@ "secondPos" : 113393, "firstEndPos" : 113267, "secondEndPos" : 113465 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 113195, + "secondPos" : 113393, + "firstEndPos" : 113201, + "secondEndPos" : 113399 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -152799,6 +154251,17 @@ "secondPos" : 113473, "firstEndPos" : 113334, "secondEndPos" : 113532 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@throws", + "secondLabel" : "@throws", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 113275, + "secondPos" : 113473, + "firstEndPos" : 113282, + "secondEndPos" : 113480 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -154042,6 +155505,17 @@ "secondPos" : 114383, "firstEndPos" : 114216, "secondEndPos" : 114414 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 114185, + "secondPos" : 114383, + "firstEndPos" : 114191, + "secondEndPos" : 114389 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -154075,6 +155549,17 @@ "secondPos" : 114422, "firstEndPos" : 114269, "secondEndPos" : 114467 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 114224, + "secondPos" : 114422, + "firstEndPos" : 114230, + "secondEndPos" : 114428 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -154108,6 +155593,17 @@ "secondPos" : 114475, "firstEndPos" : 114326, "secondEndPos" : 114524 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 114277, + "secondPos" : 114475, + "firstEndPos" : 114284, + "secondEndPos" : 114482 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -154130,6 +155626,17 @@ "secondPos" : 114532, "firstEndPos" : 114391, "secondEndPos" : 114589 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@throws", + "secondLabel" : "@throws", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 114334, + "secondPos" : 114532, + "firstEndPos" : 114341, + "secondEndPos" : 114539 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -155736,6 +157243,17 @@ "secondPos" : 115478, "firstEndPos" : 115284, "secondEndPos" : 115482 +}, { + "firstType" : "BlockComment", + "secondType" : "BlockComment", + "firstLabel" : "/* helper for SpawnMesh */", + "secondLabel" : "/* helper for SpawnMesh */", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 115297, + "secondPos" : 115495, + "firstEndPos" : 115323, + "secondEndPos" : 115521 }, { "firstType" : "MethodDeclaration", "secondType" : "MethodDeclaration", @@ -157463,6 +158981,17 @@ "secondPos" : 116720, "firstEndPos" : 116547, "secondEndPos" : 116745 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 116522, + "secondPos" : 116720, + "firstEndPos" : 116528, + "secondEndPos" : 116726 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -157496,6 +159025,17 @@ "secondPos" : 116753, "firstEndPos" : 116581, "secondEndPos" : 116779 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 116555, + "secondPos" : 116753, + "firstEndPos" : 116561, + "secondEndPos" : 116759 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -157529,6 +159069,17 @@ "secondPos" : 116787, "firstEndPos" : 116617, "secondEndPos" : 116815 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 116589, + "secondPos" : 116787, + "firstEndPos" : 116595, + "secondEndPos" : 116793 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -157562,6 +159113,17 @@ "secondPos" : 116823, "firstEndPos" : 116679, "secondEndPos" : 116877 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 116625, + "secondPos" : 116823, + "firstEndPos" : 116632, + "secondEndPos" : 116830 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -159476,6 +161038,17 @@ "secondPos" : 117900, "firstEndPos" : 118172, "secondEndPos" : 118370 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// If a rebalance was stopped cleanly, resume it.", + "secondLabel" : "// If a rebalance was stopped cleanly, resume it.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 117716, + "secondPos" : 117914, + "firstEndPos" : 117765, + "secondEndPos" : 117963 }, { "firstType" : "IfStatement", "secondType" : "IfStatement", @@ -159751,6 +161324,17 @@ "secondPos" : 118146, "firstEndPos" : 118162, "secondEndPos" : 118360 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Unable to complete the stopped rebalance. Clear out source/target and kick as normal.", + "secondLabel" : "// Unable to complete the stopped rebalance. Clear out source/target and kick as normal.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 117966, + "secondPos" : 118164, + "firstEndPos" : 118054, + "secondEndPos" : 118252 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -160994,6 +162578,50 @@ "secondPos" : 119124, "firstEndPos" : 118935, "secondEndPos" : 119133 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Creating a runnable to expand the job and send kick message outside of the main queue-iteration thread.", + "secondLabel" : "// Creating a runnable to expand the job and send kick message outside of the main queue-iteration thread.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 118958, + "secondPos" : 119156, + "firstEndPos" : 119064, + "secondEndPos" : 119262 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Reason: the jobLock is held for duration of the queue-iteration and expanding some (kafka) jobs can be very", + "secondLabel" : "// Reason: the jobLock is held for duration of the queue-iteration and expanding some (kafka) jobs can be very", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 119073, + "secondPos" : 119271, + "firstEndPos" : 119183, + "secondEndPos" : 119381 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// slow. By making job expansion non-blocking we prevent other (UI) threads from waiting on zookeeper.", + "secondLabel" : "// slow. By making job expansion non-blocking we prevent other (UI) threads from waiting on zookeeper.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 119192, + "secondPos" : 119390, + "firstEndPos" : 119295, + "secondEndPos" : 119493 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Note: we make a copy of job id, parameters to ignore modifications from outside the queue-iteration thread", + "secondLabel" : "// Note: we make a copy of job id, parameters to ignore modifications from outside the queue-iteration thread", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 119304, + "secondPos" : 119502, + "firstEndPos" : 119413, + "secondEndPos" : 119611 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -161126,6 +162754,17 @@ "secondPos" : 119664, "firstEndPos" : 119475, "secondEndPos" : 119673 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// deep clone of JobParameter list", + "secondLabel" : "// deep clone of JobParameter list", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 119490, + "secondPos" : 119688, + "firstEndPos" : 119524, + "secondEndPos" : 119722 }, { "firstType" : "EnhancedForStatement", "secondType" : "EnhancedForStatement", @@ -161907,6 +163546,17 @@ "secondPos" : 120223, "firstEndPos" : 120085, "secondEndPos" : 120283 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 120025, + "secondPos" : 120223, + "firstEndPos" : 120031, + "secondEndPos" : 120229 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -161940,6 +163590,17 @@ "secondPos" : 120291, "firstEndPos" : 120251, "secondEndPos" : 120449 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 120093, + "secondPos" : 120291, + "firstEndPos" : 120100, + "secondEndPos" : 120298 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -163810,6 +165471,17 @@ "secondPos" : 121739, "firstEndPos" : 121573, "secondEndPos" : 121771 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 121541, + "secondPos" : 121739, + "firstEndPos" : 121547, + "secondEndPos" : 121745 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -163843,6 +165515,17 @@ "secondPos" : 121779, "firstEndPos" : 121614, "secondEndPos" : 121812 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 121581, + "secondPos" : 121779, + "firstEndPos" : 121587, + "secondEndPos" : 121785 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -163876,6 +165559,17 @@ "secondPos" : 121820, "firstEndPos" : 121657, "secondEndPos" : 121855 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 121622, + "secondPos" : 121820, + "firstEndPos" : 121628, + "secondEndPos" : 121826 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -163909,6 +165603,17 @@ "secondPos" : 121863, "firstEndPos" : 121726, "secondEndPos" : 121924 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 121665, + "secondPos" : 121863, + "firstEndPos" : 121671, + "secondEndPos" : 121869 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -163942,6 +165647,17 @@ "secondPos" : 121932, "firstEndPos" : 121797, "secondEndPos" : 121995 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 121734, + "secondPos" : 121932, + "firstEndPos" : 121740, + "secondEndPos" : 121938 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -163975,6 +165691,17 @@ "secondPos" : 122003, "firstEndPos" : 121908, "secondEndPos" : 122106 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 121805, + "secondPos" : 122003, + "firstEndPos" : 121812, + "secondEndPos" : 122010 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -164987,6 +166714,17 @@ "secondPos" : 122683, "firstEndPos" : 122746, "secondEndPos" : 122944 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Don't swap new tasks onto hosts in the fs-okay queue.", + "secondLabel" : "// Don't swap new tasks onto hosts in the fs-okay queue.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 122503, + "secondPos" : 122701, + "firstEndPos" : 122559, + "secondEndPos" : 122757 }, { "firstType" : "IfStatement", "secondType" : "IfStatement", @@ -167913,6 +169651,17 @@ "secondPos" : 124804, "firstEndPos" : 124890, "secondEndPos" : 125088 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// If a task is new, just replace any down hosts since there is no existing data", + "secondLabel" : "// If a task is new, just replace any down hosts since there is no existing data", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 124620, + "secondPos" : 124818, + "firstEndPos" : 124700, + "secondEndPos" : 124898 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -168056,6 +169805,17 @@ "secondPos" : 125003, "firstEndPos" : 124810, "secondEndPos" : 125008 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Reconsider the task the next time through the queue", + "secondLabel" : "// Reconsider the task the next time through the queue", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 124812, + "secondPos" : 125010, + "firstEndPos" : 124866, + "secondEndPos" : 125064 }, { "firstType" : "IfStatement", "secondType" : "IfStatement", @@ -168672,6 +170432,17 @@ "secondPos" : 125631, "firstEndPos" : 125659, "secondEndPos" : 125857 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Task was previously waiting on an unavailable host, but that host is back. Update state accordingly.", + "secondLabel" : "// Task was previously waiting on an unavailable host, but that host is back. Update state accordingly.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 125447, + "secondPos" : 125645, + "firstEndPos" : 125550, + "secondEndPos" : 125748 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -168815,6 +170586,17 @@ "secondPos" : 125842, "firstEndPos" : 125647, "secondEndPos" : 125845 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Obey the maximum simultaneous task running limit for this job, if it is set.", + "secondLabel" : "// Obey the maximum simultaneous task running limit for this job, if it is set.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 125668, + "secondPos" : 125866, + "firstEndPos" : 125747, + "secondEndPos" : 125945 }, { "firstType" : "ReturnStatement", "secondType" : "ReturnStatement", @@ -170762,6 +172544,17 @@ "secondPos" : 127003, "firstEndPos" : 126845, "secondEndPos" : 127043 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 126805, + "secondPos" : 127003, + "firstEndPos" : 126811, + "secondEndPos" : 127009 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -170795,6 +172588,17 @@ "secondPos" : 127051, "firstEndPos" : 126912, "secondEndPos" : 127110 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 126853, + "secondPos" : 127051, + "firstEndPos" : 126859, + "secondEndPos" : 127057 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -170828,6 +172632,17 @@ "secondPos" : 127118, "firstEndPos" : 126961, "secondEndPos" : 127159 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 126920, + "secondPos" : 127118, + "firstEndPos" : 126926, + "secondEndPos" : 127124 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -170861,6 +172676,17 @@ "secondPos" : 127167, "firstEndPos" : 127045, "secondEndPos" : 127243 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 126969, + "secondPos" : 127167, + "firstEndPos" : 126975, + "secondEndPos" : 127173 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -170894,6 +172720,17 @@ "secondPos" : 127251, "firstEndPos" : 127140, "secondEndPos" : 127338 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 127053, + "secondPos" : 127251, + "firstEndPos" : 127060, + "secondEndPos" : 127258 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -171708,6 +173545,17 @@ "secondPos" : 127772, "firstEndPos" : 127697, "secondEndPos" : 127895 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Don't migrate onto hosts that are being failed in any capacity", + "secondLabel" : "// Don't migrate onto hosts that are being failed in any capacity", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 127592, + "secondPos" : 127790, + "firstEndPos" : 127657, + "secondEndPos" : 127855 }, { "firstType" : "ContinueStatement", "secondType" : "ContinueStatement", @@ -171906,6 +173754,17 @@ "secondPos" : 128001, "firstEndPos" : 127892, "secondEndPos" : 128090 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Not a valid migration target", + "secondLabel" : "// Not a valid migration target", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 127821, + "secondPos" : 128019, + "firstEndPos" : 127852, + "secondEndPos" : 128050 }, { "firstType" : "ContinueStatement", "secondType" : "ContinueStatement", @@ -172104,6 +173963,17 @@ "secondPos" : 128192, "firstEndPos" : 128087, "secondEndPos" : 128285 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Not a valid target for new tasks", + "secondLabel" : "// Not a valid target for new tasks", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 128012, + "secondPos" : 128210, + "firstEndPos" : 128047, + "secondEndPos" : 128245 }, { "firstType" : "ContinueStatement", "secondType" : "ContinueStatement", @@ -172544,6 +174414,17 @@ "secondPos" : 128779, "firstEndPos" : 128630, "secondEndPos" : 128828 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 128581, + "secondPos" : 128779, + "firstEndPos" : 128587, + "secondEndPos" : 128785 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -172577,6 +174458,17 @@ "secondPos" : 128836, "firstEndPos" : 128675, "secondEndPos" : 128873 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 128638, + "secondPos" : 128836, + "firstEndPos" : 128644, + "secondEndPos" : 128842 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -172610,6 +174502,17 @@ "secondPos" : 128881, "firstEndPos" : 128743, "secondEndPos" : 128941 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 128683, + "secondPos" : 128881, + "firstEndPos" : 128689, + "secondEndPos" : 128887 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -172643,6 +174546,17 @@ "secondPos" : 128949, "firstEndPos" : 128788, "secondEndPos" : 128986 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 128751, + "secondPos" : 128949, + "firstEndPos" : 128758, + "secondEndPos" : 128956 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -172819,6 +174733,39 @@ "secondPos" : 129075, "firstEndPos" : 130038, "secondEndPos" : 130236 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// If spawn is not quiesced, and the task is small enough that migration is sensible, and ", + "secondLabel" : "// If spawn is not quiesced, and the task is small enough that migration is sensible, and ", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 128887, + "secondPos" : 129085, + "firstEndPos" : 128977, + "secondEndPos" : 129175 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// there is a host with available capacity that can run the job, Migrate the task to the ", + "secondLabel" : "// there is a host with available capacity that can run the job, Migrate the task to the ", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 128986, + "secondPos" : 129184, + "firstEndPos" : 129075, + "secondEndPos" : 129273 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// target host and kick it on completion", + "secondLabel" : "// target host and kick it on completion", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 129084, + "secondPos" : 129282, + "firstEndPos" : 129124, + "secondEndPos" : 129322 }, { "firstType" : "IfStatement", "secondType" : "IfStatement", @@ -174865,6 +176812,17 @@ "secondPos" : 130636, "firstEndPos" : 130479, "secondEndPos" : 130674 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 130441, + "secondPos" : 130636, + "firstEndPos" : 130447, + "secondEndPos" : 130642 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -174898,6 +176856,17 @@ "secondPos" : 130682, "firstEndPos" : 130543, "secondEndPos" : 130738 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 130487, + "secondPos" : 130682, + "firstEndPos" : 130493, + "secondEndPos" : 130688 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -176636,6 +178605,17 @@ "secondPos" : 131910, "firstEndPos" : 132735, "secondEndPos" : 132930 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// need the job lock first", + "secondLabel" : "// need the job lock first", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 131729, + "secondPos" : 131924, + "firstEndPos" : 131755, + "secondEndPos" : 131950 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -177912,6 +179892,17 @@ "secondPos" : 133109, "firstEndPos" : 132949, "secondEndPos" : 133144 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 132914, + "secondPos" : 133109, + "firstEndPos" : 132920, + "secondEndPos" : 133115 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -178352,6 +180343,17 @@ "secondPos" : 133360, "firstEndPos" : 133182, "secondEndPos" : 133377 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Terminate if out of tasks or we stopped a job, requiring a queue modification", + "secondLabel" : "// Terminate if out of tasks or we stopped a job, requiring a queue modification", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 133194, + "secondPos" : 133389, + "firstEndPos" : 133274, + "secondEndPos" : 133469 }, { "firstType" : "WhileStatement", "secondType" : "WhileStatement", diff --git a/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.spawn.SpawnBalancer.json b/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.spawn.SpawnBalancer.json index 34862adf5b..b662bd8cd0 100644 --- a/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.spawn.SpawnBalancer.json +++ b/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.spawn.SpawnBalancer.json @@ -9,6 +9,17 @@ "secondPos" : 0, "firstEndPos" : 75969, "secondEndPos" : 71226 +}, { + "firstType" : "BlockComment", + "secondType" : "BlockComment", + "firstLabel" : "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */", + "secondLabel" : "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */", + "firstParentType" : "CompilationUnit", + "secondParentType" : "CompilationUnit", + "firstPos" : 0, + "secondPos" : 0, + "firstEndPos" : 557, + "secondEndPos" : 557 }, { "firstType" : "PackageDeclaration", "secondType" : "PackageDeclaration", @@ -1659,6 +1670,17 @@ "secondPos" : 4819, "firstEndPos" : 3301, "secondEndPos" : 4825 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// How often to update aggregate host statistics", + "secondLabel" : "// How often to update aggregate host statistics", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 3308, + "secondPos" : 3711, + "firstEndPos" : 3356, + "secondEndPos" : 3759 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -8369,6 +8391,17 @@ "secondPos" : 41316, "firstEndPos" : 8260, "secondEndPos" : 41352 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 8224, + "secondPos" : 41316, + "firstEndPos" : 8230, + "secondEndPos" : 41322 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -8402,6 +8435,17 @@ "secondPos" : 41360, "firstEndPos" : 8317, "secondEndPos" : 41409 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 8268, + "secondPos" : 41360, + "firstEndPos" : 8274, + "secondEndPos" : 41366 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -8435,6 +8479,17 @@ "secondPos" : 41417, "firstEndPos" : 8364, "secondEndPos" : 41456 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 8325, + "secondPos" : 41417, + "firstEndPos" : 8331, + "secondEndPos" : 41423 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -8468,6 +8523,17 @@ "secondPos" : 41464, "firstEndPos" : 8412, "secondEndPos" : 41504 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 8372, + "secondPos" : 41464, + "firstEndPos" : 8379, + "secondEndPos" : 41471 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -11372,6 +11438,17 @@ "secondPos" : 14477, "firstEndPos" : 10196, "secondEndPos" : 14484 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Make a heap of hosts based on the storedHostScores, from lightest to heaviest.", + "secondLabel" : "// Make a heap of hosts based on the storedHostScores, from lightest to heaviest.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 10220, + "secondPos" : 14508, + "firstEndPos" : 10301, + "secondEndPos" : 14589 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -12076,6 +12153,17 @@ "secondPos" : 15194, "firstEndPos" : 10837, "secondEndPos" : 15226 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Make a list of hosts as big as the list of tasks. This list may repeat hosts if it is necessary to do so.", + "secondLabel" : "// Make a list of hosts as big as the list of tasks. This list may repeat hosts if it is necessary to do so.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 10858, + "secondPos" : 15247, + "firstEndPos" : 10966, + "secondEndPos" : 15355 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -12406,6 +12494,17 @@ "secondPos" : 15515, "firstEndPos" : 11129, "secondEndPos" : 15524 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Pick the lightest host.", + "secondLabel" : "// Pick the lightest host.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 11156, + "secondPos" : 15551, + "firstEndPos" : 11182, + "secondEndPos" : 15577 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -12681,6 +12780,17 @@ "secondPos" : 15698, "firstEndPos" : 11314, "secondEndPos" : 15709 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Then moderately weight that host in the heap so we won't pick it again immediately.", + "secondLabel" : "// Then moderately weight that host in the heap so we won't pick it again immediately.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 11331, + "secondPos" : 15726, + "firstEndPos" : 11417, + "secondEndPos" : 15812 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -12868,6 +12978,28 @@ "secondPos" : 15880, "firstEndPos" : 11501, "secondEndPos" : 15896 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Lightly weight that host in storedHostScores so we won't pick the same hosts over and over if we call this method repeatedly", + "secondLabel" : "// Lightly weight that host in storedHostScores so we won't pick the same hosts over and over if we call", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 11519, + "secondPos" : 15914, + "firstEndPos" : 11646, + "secondEndPos" : 16018 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Lightly weight that host in storedHostScores so we won't pick the same hosts over and over if we call this method repeatedly", + "secondLabel" : "// this method repeatedly", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 11519, + "secondPos" : 16031, + "firstEndPos" : 11646, + "secondEndPos" : 16056 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -14023,6 +14155,17 @@ "secondPos" : 17195, "firstEndPos" : 12359, "secondEndPos" : 17199 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// For any task already living on a host in our hosts list, keep that task where it is.", + "secondLabel" : "// For any task already living on a host in our hosts list, keep that task where it is.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 12372, + "secondPos" : 17212, + "firstEndPos" : 12459, + "secondEndPos" : 17299 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -15002,6 +15145,17 @@ "secondPos" : 17881, "firstEndPos" : 13014, "secondEndPos" : 17885 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Assign the remaining tasks by iterating down the remaining hosts.", + "secondLabel" : "// Assign the remaining tasks by iterating down the remaining hosts.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 13049, + "secondPos" : 17920, + "firstEndPos" : 13117, + "secondEndPos" : 17988 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -15409,6 +15563,17 @@ "secondPos" : 11498, "firstEndPos" : 13457, "secondEndPos" : 11539 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 13416, + "secondPos" : 11498, + "firstEndPos" : 13422, + "secondEndPos" : 11504 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -15442,6 +15607,17 @@ "secondPos" : 11547, "firstEndPos" : 13512, "secondEndPos" : 11594 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 13465, + "secondPos" : 11547, + "firstEndPos" : 13471, + "secondEndPos" : 11553 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -15475,6 +15651,17 @@ "secondPos" : 11602, "firstEndPos" : 13568, "secondEndPos" : 11650 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 13520, + "secondPos" : 11602, + "firstEndPos" : 13527, + "secondEndPos" : 11609 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -15750,6 +15937,17 @@ "secondPos" : 11849, "firstEndPos" : 14848, "secondEndPos" : 12994 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Populate a map grouping the tasks by job ID.", + "secondLabel" : "// Populate a map grouping the tasks by job ID.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 13698, + "secondPos" : 11859, + "firstEndPos" : 13745, + "secondEndPos" : 11906 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -16377,6 +16575,17 @@ "secondPos" : 12297, "firstEndPos" : 14136, "secondEndPos" : 12301 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// This map of hosts to scores will be updated by every call to assignTasksFromSingleJobToHosts.", + "secondLabel" : "// This map of hosts to scores will be updated by every call to assignTasksFromSingleJobToHosts.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 14228, + "secondPos" : 12354, + "firstEndPos" : 14324, + "secondEndPos" : 12450 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -16542,6 +16751,17 @@ "secondPos" : 12530, "firstEndPos" : 14408, "secondEndPos" : 12534 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// This map stores where to send each task.", + "secondLabel" : "// This map stores where to send each task.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 14419, + "secondPos" : 12545, + "firstEndPos" : 14462, + "secondEndPos" : 12588 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -17279,6 +17499,17 @@ "secondPos" : 42933, "firstEndPos" : 15000, "secondEndPos" : 42977 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 14956, + "secondPos" : 42933, + "firstEndPos" : 14962, + "secondEndPos" : 42939 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -17312,6 +17543,17 @@ "secondPos" : 42985, "firstEndPos" : 15081, "secondEndPos" : 43058 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 15008, + "secondPos" : 42985, + "firstEndPos" : 15014, + "secondEndPos" : 42991 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -17345,6 +17587,17 @@ "secondPos" : 43066, "firstEndPos" : 15134, "secondEndPos" : 43111 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 15089, + "secondPos" : 43066, + "firstEndPos" : 15095, + "secondEndPos" : 43072 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -17378,6 +17631,17 @@ "secondPos" : 43119, "firstEndPos" : 15194, "secondEndPos" : 43171 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 15142, + "secondPos" : 43119, + "firstEndPos" : 15149, + "secondEndPos" : 43126 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -17917,6 +18181,17 @@ "secondPos" : 43610, "firstEndPos" : 15499, "secondEndPos" : 43619 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Count the number of tasks per host", + "secondLabel" : "// Count the number of tasks per host", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 15513, + "secondPos" : 43633, + "firstEndPos" : 15550, + "secondEndPos" : 43670 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -18060,6 +18335,17 @@ "secondPos" : 43749, "firstEndPos" : 15643, "secondEndPos" : 43763 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Find the max number of tasks each host should have", + "secondLabel" : "// Find the max number of tasks each host should have", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 15656, + "secondPos" : 43776, + "firstEndPos" : 15709, + "secondEndPos" : 43829 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -19589,6 +19875,17 @@ "secondPos" : 44869, "firstEndPos" : 16790, "secondEndPos" : 44885 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// If any host has more than the max number, move some tasks off that host", + "secondLabel" : "// If any host has more than the max number, move some tasks off that host", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 16820, + "secondPos" : 44915, + "firstEndPos" : 16894, + "secondEndPos" : 44989 }, { "firstType" : "IfStatement", "secondType" : "IfStatement", @@ -19908,6 +20205,28 @@ "secondPos" : 45229, "firstEndPos" : 17283, "secondEndPos" : 45442 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// If a host has significantly fewer than the max number, move some tasks onto that host", + "secondLabel" : "// If a host has significantly fewer than the max number, move some", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 17091, + "secondPos" : 45231, + "firstEndPos" : 17179, + "secondEndPos" : 45298 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// If a host has significantly fewer than the max number, move some tasks onto that host", + "secondLabel" : "// tasks onto that host", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 17091, + "secondPos" : 45315, + "firstEndPos" : 17179, + "secondEndPos" : 45338 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -20095,6 +20414,17 @@ "secondPos" : 45467, "firstEndPos" : 17487, "secondEndPos" : 45646 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// If a host with many tasks is heavily weighted, move a task off that host", + "secondLabel" : "// If a host with many tasks is heavily weighted, move a task off that host", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 17310, + "secondPos" : 45469, + "firstEndPos" : 17385, + "secondEndPos" : 45544 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -21745,6 +22075,17 @@ "secondPos" : 70361, "firstEndPos" : 18485, "secondEndPos" : 70363 +}, { + "firstType" : "BlockComment", + "secondType" : "BlockComment", + "firstLabel" : "/* Pull tasks off the given host and move them elsewhere, obeying the maxPerHost and maxBytesToMove limits */", + "secondLabel" : "/* Pull tasks off the given host and move them elsewhere, obeying the maxPerHost and maxBytesToMove limits */", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 18498, + "secondPos" : 58162, + "firstEndPos" : 18607, + "secondEndPos" : 58271 }, { "firstType" : "MethodDeclaration", "secondType" : "MethodDeclaration", @@ -24330,6 +24671,28 @@ "secondPos" : 59925, "firstEndPos" : 20013, "secondEndPos" : 59934 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Reject the move if the target host is heavily loaded, already has a copy of the task, or the task is too large", + "secondLabel" : "// Reject the move if the target host is heavily loaded, already has a copy of the task, or the task", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 20048, + "secondPos" : 59969, + "firstEndPos" : 20161, + "secondEndPos" : 60069 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Reject the move if the target host is heavily loaded, already has a copy of the task, or the task is too large", + "secondLabel" : "// is too large", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 20048, + "secondPos" : 60086, + "firstEndPos" : 20161, + "secondEndPos" : 60101 }, { "firstType" : "IfStatement", "secondType" : "IfStatement", @@ -25749,6 +26112,17 @@ "secondPos" : 61234, "firstEndPos" : 21249, "secondEndPos" : 61236 +}, { + "firstType" : "BlockComment", + "secondType" : "BlockComment", + "firstLabel" : "/* Push tasks onto the given host, obeying the maxPerHost and maxBytesToMove limits */", + "secondLabel" : "/* Push tasks onto the given host, obeying the maxPerHost and maxBytesToMove limits */", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 21262, + "secondPos" : 61249, + "firstEndPos" : 21348, + "secondEndPos" : 61335 }, { "firstType" : "MethodDeclaration", "secondType" : "MethodDeclaration", @@ -26728,6 +27102,17 @@ "secondPos" : 62077, "firstEndPos" : 21872, "secondEndPos" : 62078 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Move fewer tasks onto a host if it's already doing a lot of work", + "secondLabel" : "// Move fewer tasks onto a host if it's already doing a lot of work", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 21875, + "secondPos" : 62081, + "firstEndPos" : 21942, + "secondEndPos" : 62148 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -29610,6 +29995,17 @@ "secondPos" : 63841, "firstEndPos" : 23599, "secondEndPos" : 63843 +}, { + "firstType" : "BlockComment", + "secondType" : "BlockComment", + "firstLabel" : "/* Count the number of tasks that live on each host */", + "secondLabel" : "/* Count the number of tasks that live on each host */", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 23612, + "secondPos" : 63856, + "firstEndPos" : 23666, + "secondEndPos" : 63910 }, { "firstType" : "MethodDeclaration", "secondType" : "MethodDeclaration", @@ -33031,6 +33427,226 @@ "secondPos" : 2938, "firstEndPos" : 25764, "secondEndPos" : 2943 +}, { + "firstType" : "PrefixExpression", + "secondType" : "PrefixExpression", + "firstLabel" : "", + "secondLabel" : "", + "firstParentType" : "InfixExpression", + "secondParentType" : "InfixExpression", + "firstPos" : 25789, + "secondPos" : 2698, + "firstEndPos" : 25818, + "secondEndPos" : 2727 +}, { + "firstType" : "PREFIX_EXPRESSION_OPERATOR", + "secondType" : "PREFIX_EXPRESSION_OPERATOR", + "firstLabel" : "!", + "secondLabel" : "!", + "firstParentType" : "PrefixExpression", + "secondParentType" : "PrefixExpression", + "firstPos" : 25789, + "secondPos" : 2698, + "firstEndPos" : 25790, + "secondEndPos" : 2699 +}, { + "firstType" : "MethodInvocation", + "secondType" : "MethodInvocation", + "firstLabel" : "", + "secondLabel" : "", + "firstParentType" : "PrefixExpression", + "secondParentType" : "PrefixExpression", + "firstPos" : 25790, + "secondPos" : 2699, + "firstEndPos" : 25818, + "secondEndPos" : 2727 +}, { + "firstType" : "METHOD_INVOCATION_RECEIVER", + "secondType" : "METHOD_INVOCATION_RECEIVER", + "firstLabel" : "", + "secondLabel" : "", + "firstParentType" : "MethodInvocation", + "secondParentType" : "MethodInvocation", + "firstPos" : 25790, + "secondPos" : 2699, + "firstEndPos" : 25803, + "secondEndPos" : 2712 +}, { + "firstType" : "MethodInvocation", + "secondType" : "MethodInvocation", + "firstLabel" : "", + "secondLabel" : "", + "firstParentType" : "METHOD_INVOCATION_RECEIVER", + "secondParentType" : "METHOD_INVOCATION_RECEIVER", + "firstPos" : 25790, + "secondPos" : 2699, + "firstEndPos" : 25803, + "secondEndPos" : 2712 +}, { + "firstType" : "SimpleName", + "secondType" : "SimpleName", + "firstLabel" : "get", + "secondLabel" : "get", + "firstParentType" : "MethodInvocation", + "secondParentType" : "MethodInvocation", + "firstPos" : 25790, + "secondPos" : 2699, + "firstEndPos" : 25793, + "secondEndPos" : 2702 +}, { + "firstType" : "METHOD_INVOCATION_ARGUMENTS", + "secondType" : "METHOD_INVOCATION_ARGUMENTS", + "firstLabel" : "", + "secondLabel" : "", + "firstParentType" : "MethodInvocation", + "secondParentType" : "MethodInvocation", + "firstPos" : 25794, + "secondPos" : 2703, + "firstEndPos" : 25802, + "secondEndPos" : 2711 +}, { + "firstType" : "SimpleName", + "secondType" : "SimpleName", + "firstLabel" : "fromHost", + "secondLabel" : "fromHost", + "firstParentType" : "METHOD_INVOCATION_ARGUMENTS", + "secondParentType" : "METHOD_INVOCATION_ARGUMENTS", + "firstPos" : 25794, + "secondPos" : 2703, + "firstEndPos" : 25802, + "secondEndPos" : 2711 +}, { + "firstType" : "SimpleName", + "secondType" : "SimpleName", + "firstLabel" : "contains", + "secondLabel" : "contains", + "firstParentType" : "MethodInvocation", + "secondParentType" : "MethodInvocation", + "firstPos" : 25804, + "secondPos" : 2713, + "firstEndPos" : 25812, + "secondEndPos" : 2721 +}, { + "firstType" : "METHOD_INVOCATION_ARGUMENTS", + "secondType" : "METHOD_INVOCATION_ARGUMENTS", + "firstLabel" : "", + "secondLabel" : "", + "firstParentType" : "MethodInvocation", + "secondParentType" : "MethodInvocation", + "firstPos" : 25813, + "secondPos" : 2722, + "firstEndPos" : 25817, + "secondEndPos" : 2726 +}, { + "firstType" : "SimpleName", + "secondType" : "SimpleName", + "firstLabel" : "item", + "secondLabel" : "item", + "firstParentType" : "METHOD_INVOCATION_ARGUMENTS", + "secondParentType" : "METHOD_INVOCATION_ARGUMENTS", + "firstPos" : 25813, + "secondPos" : 2722, + "firstEndPos" : 25817, + "secondEndPos" : 2726 +}, { + "firstType" : "MethodInvocation", + "secondType" : "MethodInvocation", + "firstLabel" : "", + "secondLabel" : "", + "firstParentType" : "InfixExpression", + "secondParentType" : "InfixExpression", + "firstPos" : 25822, + "secondPos" : 2743, + "firstEndPos" : 25848, + "secondEndPos" : 2769 +}, { + "firstType" : "METHOD_INVOCATION_RECEIVER", + "secondType" : "METHOD_INVOCATION_RECEIVER", + "firstLabel" : "", + "secondLabel" : "", + "firstParentType" : "MethodInvocation", + "secondParentType" : "MethodInvocation", + "firstPos" : 25822, + "secondPos" : 2743, + "firstEndPos" : 25833, + "secondEndPos" : 2754 +}, { + "firstType" : "MethodInvocation", + "secondType" : "MethodInvocation", + "firstLabel" : "", + "secondLabel" : "", + "firstParentType" : "METHOD_INVOCATION_RECEIVER", + "secondParentType" : "METHOD_INVOCATION_RECEIVER", + "firstPos" : 25822, + "secondPos" : 2743, + "firstEndPos" : 25833, + "secondEndPos" : 2754 +}, { + "firstType" : "SimpleName", + "secondType" : "SimpleName", + "firstLabel" : "get", + "secondLabel" : "get", + "firstParentType" : "MethodInvocation", + "secondParentType" : "MethodInvocation", + "firstPos" : 25822, + "secondPos" : 2743, + "firstEndPos" : 25825, + "secondEndPos" : 2746 +}, { + "firstType" : "METHOD_INVOCATION_ARGUMENTS", + "secondType" : "METHOD_INVOCATION_ARGUMENTS", + "firstLabel" : "", + "secondLabel" : "", + "firstParentType" : "MethodInvocation", + "secondParentType" : "MethodInvocation", + "firstPos" : 25826, + "secondPos" : 2747, + "firstEndPos" : 25832, + "secondEndPos" : 2753 +}, { + "firstType" : "SimpleName", + "secondType" : "SimpleName", + "firstLabel" : "toHost", + "secondLabel" : "toHost", + "firstParentType" : "METHOD_INVOCATION_ARGUMENTS", + "secondParentType" : "METHOD_INVOCATION_ARGUMENTS", + "firstPos" : 25826, + "secondPos" : 2747, + "firstEndPos" : 25832, + "secondEndPos" : 2753 +}, { + "firstType" : "SimpleName", + "secondType" : "SimpleName", + "firstLabel" : "contains", + "secondLabel" : "contains", + "firstParentType" : "MethodInvocation", + "secondParentType" : "MethodInvocation", + "firstPos" : 25834, + "secondPos" : 2755, + "firstEndPos" : 25842, + "secondEndPos" : 2763 +}, { + "firstType" : "METHOD_INVOCATION_ARGUMENTS", + "secondType" : "METHOD_INVOCATION_ARGUMENTS", + "firstLabel" : "", + "secondLabel" : "", + "firstParentType" : "MethodInvocation", + "secondParentType" : "MethodInvocation", + "firstPos" : 25843, + "secondPos" : 2764, + "firstEndPos" : 25847, + "secondEndPos" : 2768 +}, { + "firstType" : "SimpleName", + "secondType" : "SimpleName", + "firstLabel" : "item", + "secondLabel" : "item", + "firstParentType" : "METHOD_INVOCATION_ARGUMENTS", + "secondParentType" : "METHOD_INVOCATION_ARGUMENTS", + "firstPos" : 25843, + "secondPos" : 2764, + "firstEndPos" : 25847, + "secondEndPos" : 2768 }, { "firstType" : "ReturnStatement", "secondType" : "ReturnStatement", @@ -39774,6 +40390,17 @@ "secondPos" : 46276, "firstEndPos" : 29870, "secondEndPos" : 46320 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 29826, + "secondPos" : 46276, + "firstEndPos" : 29832, + "secondEndPos" : 46282 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -39807,6 +40434,17 @@ "secondPos" : 46328, "firstEndPos" : 29931, "secondEndPos" : 46381 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 29878, + "secondPos" : 46328, + "firstEndPos" : 29884, + "secondEndPos" : 46334 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -39840,6 +40478,17 @@ "secondPos" : 46389, "firstEndPos" : 30032, "secondEndPos" : 46482 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 29939, + "secondPos" : 46389, + "firstEndPos" : 29946, + "secondEndPos" : 46396 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -41358,6 +42007,17 @@ "secondPos" : 47351, "firstEndPos" : 31258, "secondEndPos" : 47717 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Host disk is overloaded", + "secondLabel" : "// Host disk is overloaded", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 30902, + "secondPos" : 47365, + "firstEndPos" : 30928, + "secondEndPos" : 47391 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -41908,6 +42568,17 @@ "secondPos" : 47763, "firstEndPos" : 31665, "secondEndPos" : 48140 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Host disk is underloaded", + "secondLabel" : "// Host disk is underloaded", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 31318, + "secondPos" : 47777, + "firstEndPos" : 31345, + "secondEndPos" : 47804 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -42480,6 +43151,17 @@ "secondPos" : 48186, "firstEndPos" : 31938, "secondEndPos" : 48409 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Host is overworked", + "secondLabel" : "// Host is overworked", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 31725, + "secondPos" : 48200, + "firstEndPos" : 31746, + "secondEndPos" : 48221 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -42997,6 +43679,17 @@ "secondPos" : 22000, "firstEndPos" : 32220, "secondEndPos" : 22063 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 32157, + "secondPos" : 22000, + "firstEndPos" : 32163, + "secondEndPos" : 22006 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -43030,6 +43723,17 @@ "secondPos" : 22071, "firstEndPos" : 32324, "secondEndPos" : 22167 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 32228, + "secondPos" : 22071, + "firstEndPos" : 32234, + "secondEndPos" : 22077 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -43063,6 +43767,17 @@ "secondPos" : 22175, "firstEndPos" : 32385, "secondEndPos" : 22228 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 32332, + "secondPos" : 22175, + "firstEndPos" : 32339, + "secondEndPos" : 22182 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -43904,11 +44619,11 @@ "secondType" : "InfixExpression", "firstLabel" : "", "secondLabel" : "", - "firstParentType" : "IfStatement", + "firstParentType" : "InfixExpression", "secondParentType" : "IfStatement", "firstPos" : 32783, "secondPos" : 22636, - "firstEndPos" : 32998, + "firstEndPos" : 32836, "secondEndPos" : 22900 }, { "firstType" : "InfixExpression", @@ -43998,6 +44713,17 @@ "secondPos" : 22662, "firstEndPos" : 32810, "secondEndPos" : 22666 +}, { + "firstType" : "INFIX_EXPRESSION_OPERATOR", + "secondType" : "INFIX_EXPRESSION_OPERATOR", + "firstLabel" : "&&", + "secondLabel" : "&&", + "firstParentType" : "InfixExpression", + "secondParentType" : "InfixExpression", + "firstPos" : 32811, + "secondPos" : 22650, + "firstEndPos" : 32813, + "secondEndPos" : 22652 }, { "firstType" : "MethodInvocation", "secondType" : "MethodInvocation", @@ -44043,16 +44769,16 @@ "firstEndPos" : 32835, "secondEndPos" : 22692 }, { - "firstType" : "INFIX_EXPRESSION_OPERATOR", - "secondType" : "INFIX_EXPRESSION_OPERATOR", - "firstLabel" : "&&", - "secondLabel" : "&&", - "firstParentType" : "InfixExpression", + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Only add non-null tasks that are either idle or queued", + "secondLabel" : "// Only add non-null tasks that are either idle or queued", + "firstParentType" : "INFIX_EXPRESSION_OPERATOR", "secondParentType" : "InfixExpression", "firstPos" : 32837, - "secondPos" : 22650, - "firstEndPos" : 32895, - "secondEndPos" : 22652 + "secondPos" : 22714, + "firstEndPos" : 32894, + "secondEndPos" : 22771 }, { "firstType" : "ParenthesizedExpression", "secondType" : "ParenthesizedExpression", @@ -44284,6 +45010,17 @@ "secondPos" : 22885, "firstEndPos" : 32994, "secondEndPos" : 22896 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Only add tasks that are supposed to live on the specified host.", + "secondLabel" : "// Only add tasks that are supposed to live on the specified host.", + "firstParentType" : "IfStatement", + "secondParentType" : "IfStatement", + "firstPos" : 33000, + "secondPos" : 22902, + "firstEndPos" : 33066, + "secondEndPos" : 22968 }, { "firstType" : "Block", "secondType" : "Block", @@ -44394,6 +45131,61 @@ "secondPos" : 23064, "firstEndPos" : 33671, "secondEndPos" : 23600 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// obeyDontAutobalanceMe is set to false when spawn is doing a filesystem-okay host failure.", + "secondLabel" : "// obeyDontAutobalanceMe is set to false when spawn is doing a filesystem-okay host failure.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 33188, + "secondPos" : 23090, + "firstEndPos" : 33280, + "secondEndPos" : 23182 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// In this case, spawn needs to move the task even if the job owner specified no swapping,", + "secondLabel" : "// In this case, spawn needs to move the task even if the job owner specified no swapping,", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 33305, + "secondPos" : 23207, + "firstEndPos" : 33395, + "secondEndPos" : 23297 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// because the box is likely to be ailing/scheduled for decommission.", + "secondLabel" : "// because the box is likely to be ailing/scheduled for decommission.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 33420, + "secondPos" : 23322, + "firstEndPos" : 33489, + "secondEndPos" : 23391 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// All rebalancing actions use obeyDontAutobalanceMe=true and will conform to the job owner's wishes.", + "secondLabel" : "// All rebalancing actions use obeyDontAutobalanceMe=true and will conform to the job owner's", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 33514, + "secondPos" : 23416, + "firstEndPos" : 33615, + "secondEndPos" : 23509 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// All rebalancing actions use obeyDontAutobalanceMe=true and will conform to the job owner's wishes.", + "secondLabel" : "// wishes.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 33514, + "secondPos" : 23534, + "firstEndPos" : 33615, + "secondEndPos" : 23544 }, { "firstType" : "ContinueStatement", "secondType" : "ContinueStatement", @@ -46220,6 +47012,17 @@ "secondPos" : 18701, "firstEndPos" : 34770, "secondEndPos" : 18706 +}, { + "firstType" : "BlockComment", + "secondType" : "BlockComment", + "firstLabel" : "/* Push/pull the tasks on a host to balance its disk, obeying an overall limit on the number of tasks/bytes to move */", + "secondLabel" : "/* Push/pull the tasks on a host to balance its disk, obeying an overall limit on the number of tasks/bytes to\n move */", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 34784, + "secondPos" : 18720, + "firstEndPos" : 34902, + "secondEndPos" : 18842 }, { "firstType" : "MethodDeclaration", "secondType" : "MethodDeclaration", @@ -47991,6 +48794,17 @@ "secondPos" : 20315, "firstEndPos" : 36084, "secondEndPos" : 20317 +}, { + "firstType" : "BlockComment", + "secondType" : "BlockComment", + "firstLabel" : "/* Look through a hoststate to find tasks that don't correspond to an actual job or are on the wrong host */", + "secondLabel" : "/* Look through a hoststate to find tasks that don't correspond to an actual job or are on the wrong host */", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 36097, + "secondPos" : 20330, + "firstEndPos" : 36205, + "secondEndPos" : 20438 }, { "firstType" : "MethodDeclaration", "secondType" : "MethodDeclaration", @@ -48530,6 +49344,17 @@ "secondPos" : 20684, "firstEndPos" : 36596, "secondEndPos" : 20829 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Nonexistent job", + "secondLabel" : "// Nonexistent job", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 36469, + "secondPos" : 20702, + "firstEndPos" : 36487, + "secondEndPos" : 20720 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -48728,6 +49553,28 @@ "secondPos" : 20835, "firstEndPos" : 37055, "secondEndPos" : 21306 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Task has a copy on the wrong host. Do a fixTaskDir to ensure we aren't deleting the only remaining copy", + "secondLabel" : "// Task has a copy on the wrong host. Do a fixTaskDir to ensure we aren't deleting the only remaining", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 36621, + "secondPos" : 20853, + "firstEndPos" : 36727, + "secondEndPos" : 20954 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Task has a copy on the wrong host. Do a fixTaskDir to ensure we aren't deleting the only remaining copy", + "secondLabel" : "// copy", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 36621, + "secondPos" : 20971, + "firstEndPos" : 36727, + "secondEndPos" : 20978 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -49861,6 +50708,17 @@ "secondPos" : 23945, "firstEndPos" : 37533, "secondEndPos" : 23979 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 37499, + "secondPos" : 23945, + "firstEndPos" : 37505, + "secondEndPos" : 23951 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -49894,6 +50752,17 @@ "secondPos" : 23987, "firstEndPos" : 37589, "secondEndPos" : 24035 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 37541, + "secondPos" : 23987, + "firstEndPos" : 37547, + "secondEndPos" : 23993 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -49927,6 +50796,17 @@ "secondPos" : 24043, "firstEndPos" : 37641, "secondEndPos" : 24087 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 37597, + "secondPos" : 24043, + "firstEndPos" : 37603, + "secondEndPos" : 24049 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -49960,6 +50840,17 @@ "secondPos" : 24095, "firstEndPos" : 37702, "secondEndPos" : 24148 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 37649, + "secondPos" : 24095, + "firstEndPos" : 37656, + "secondEndPos" : 24102 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -51643,6 +52534,17 @@ "secondPos" : 25185, "firstEndPos" : 38605, "secondEndPos" : 25189 +}, { + "firstType" : "BlockComment", + "secondType" : "BlockComment", + "firstLabel" : "/* For each active job, ensure that the given host has a fair share of tasks from that job */", + "secondLabel" : "/* For each active job, ensure that the given host has a fair share of tasks from that job */", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 38618, + "secondPos" : 65072, + "firstEndPos" : 38711, + "secondEndPos" : 65165 }, { "firstType" : "MethodDeclaration", "secondType" : "MethodDeclaration", @@ -55174,6 +56076,17 @@ "secondPos" : 9138, "firstEndPos" : 41120, "secondEndPos" : 9139 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Fix some tests", + "secondLabel" : "// Fix some tests", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 41122, + "secondPos" : 9141, + "firstEndPos" : 41139, + "secondEndPos" : 9158 }, { "firstType" : "ReturnStatement", "secondType" : "ReturnStatement", @@ -56065,6 +56978,17 @@ "secondPos" : 68001, "firstEndPos" : 41689, "secondEndPos" : 68060 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 41630, + "secondPos" : 68001, + "firstEndPos" : 41636, + "secondEndPos" : 68007 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -56098,6 +57022,17 @@ "secondPos" : 68068, "firstEndPos" : 41755, "secondEndPos" : 68126 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 41697, + "secondPos" : 68068, + "firstEndPos" : 41704, + "secondEndPos" : 68075 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -58243,6 +59178,17 @@ "secondPos" : 48673, "firstEndPos" : 43530, "secondEndPos" : 48705 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 43498, + "secondPos" : 48673, + "firstEndPos" : 43504, + "secondEndPos" : 48679 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -58276,6 +59222,17 @@ "secondPos" : 48713, "firstEndPos" : 43587, "secondEndPos" : 48762 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 43538, + "secondPos" : 48713, + "firstEndPos" : 43545, + "secondEndPos" : 48720 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -59002,6 +59959,17 @@ "secondPos" : 21540, "firstEndPos" : 44162, "secondEndPos" : 21572 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 44130, + "secondPos" : 21540, + "firstEndPos" : 44136, + "secondEndPos" : 21546 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -59035,6 +60003,17 @@ "secondPos" : 21580, "firstEndPos" : 44202, "secondEndPos" : 21612 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 44170, + "secondPos" : 21580, + "firstEndPos" : 44177, + "secondEndPos" : 21587 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -60234,6 +61213,17 @@ "secondPos" : 13097, "firstEndPos" : 44968, "secondEndPos" : 13130 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 44935, + "secondPos" : 13097, + "firstEndPos" : 44941, + "secondEndPos" : 13103 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -60267,6 +61257,17 @@ "secondPos" : 13138, "firstEndPos" : 45084, "secondEndPos" : 13246 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 44976, + "secondPos" : 13138, + "firstEndPos" : 44982, + "secondEndPos" : 13144 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -60300,6 +61301,17 @@ "secondPos" : 13254, "firstEndPos" : 45140, "secondEndPos" : 13302 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 45092, + "secondPos" : 13254, + "firstEndPos" : 45099, + "secondEndPos" : 13261 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -61598,6 +62610,17 @@ "secondPos" : 33787, "firstEndPos" : 45917, "secondEndPos" : 33814 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 45890, + "secondPos" : 33787, + "firstEndPos" : 45896, + "secondEndPos" : 33793 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -61631,6 +62654,17 @@ "secondPos" : 33822, "firstEndPos" : 46000, "secondEndPos" : 33897 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 45925, + "secondPos" : 33822, + "firstEndPos" : 45932, + "secondEndPos" : 33829 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -64029,6 +65063,17 @@ "secondPos" : 27837, "firstEndPos" : 47373, "secondEndPos" : 27878 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 47332, + "secondPos" : 27837, + "firstEndPos" : 47339, + "secondEndPos" : 27844 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -64084,6 +65129,17 @@ "secondPos" : 27926, "firstEndPos" : 48012, "secondEndPos" : 28513 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Don't autobalance if it is disabled, spawn is quiesced, or the number of queued tasks is high", + "secondLabel" : "// Don't autobalance if it is disabled, spawn is quiesced, or the number of queued tasks is high", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 47431, + "secondPos" : 27936, + "firstEndPos" : 47527, + "secondEndPos" : 28032 }, { "firstType" : "IfStatement", "secondType" : "IfStatement", @@ -64469,6 +65525,17 @@ "secondPos" : 28240, "firstEndPos" : 47744, "secondEndPos" : 28245 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Don't autobalance if there are still jobs in rebalance state", + "secondLabel" : "// Don't autobalance if there are still jobs in rebalance state", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 47764, + "secondPos" : 28265, + "firstEndPos" : 47827, + "secondEndPos" : 28328 }, { "firstType" : "EnhancedForStatement", "secondType" : "EnhancedForStatement", @@ -64799,6 +65866,17 @@ "secondPos" : 9781, "firstEndPos" : 48126, "secondEndPos" : 9810 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 48097, + "secondPos" : 9781, + "firstEndPos" : 48103, + "secondEndPos" : 9787 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -64832,6 +65910,17 @@ "secondPos" : 9818, "firstEndPos" : 48171, "secondEndPos" : 9855 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 48134, + "secondPos" : 9818, + "firstEndPos" : 48140, + "secondEndPos" : 9824 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -64865,6 +65954,17 @@ "secondPos" : 9863, "firstEndPos" : 48233, "secondEndPos" : 9917 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 48179, + "secondPos" : 9863, + "firstEndPos" : 48186, + "secondEndPos" : 9870 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -65569,6 +66669,17 @@ "secondPos" : 10332, "firstEndPos" : 48738, "secondEndPos" : 10460 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// At level 2, rebalance every job that hasn't already been rebalanced recently", + "secondLabel" : "// At level 2, rebalance every job that hasn't already been rebalanced recently", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 48624, + "secondPos" : 10346, + "firstEndPos" : 48703, + "secondEndPos" : 10425 }, { "firstType" : "ReturnStatement", "secondType" : "ReturnStatement", @@ -65866,6 +66977,17 @@ "secondPos" : 10610, "firstEndPos" : 48892, "secondEndPos" : 10614 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// If any host has sufficiently more or less than the expected fair share, this job is unbalanced.", + "secondLabel" : "// If any host has sufficiently more or less than the expected fair share, this job is unbalanced.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 48905, + "secondPos" : 10627, + "firstEndPos" : 49003, + "secondEndPos" : 10725 }, { "firstType" : "ReturnStatement", "secondType" : "ReturnStatement", @@ -66350,6 +67472,17 @@ "secondPos" : 28603, "firstEndPos" : 49374, "secondEndPos" : 28649 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 49328, + "secondPos" : 28603, + "firstEndPos" : 49334, + "secondEndPos" : 28609 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -66383,6 +67516,17 @@ "secondPos" : 28657, "firstEndPos" : 49463, "secondEndPos" : 28738 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 49382, + "secondPos" : 28657, + "firstEndPos" : 49388, + "secondEndPos" : 28663 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -66416,6 +67560,17 @@ "secondPos" : 28746, "firstEndPos" : 49545, "secondEndPos" : 28820 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 49471, + "secondPos" : 28746, + "firstEndPos" : 49478, + "secondEndPos" : 28753 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -69408,6 +70563,17 @@ "secondPos" : 8262, "firstEndPos" : 51875, "secondEndPos" : 8295 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 51842, + "secondPos" : 8262, + "firstEndPos" : 51848, + "secondEndPos" : 8268 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -69441,6 +70607,17 @@ "secondPos" : 8303, "firstEndPos" : 51931, "secondEndPos" : 8351 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 51883, + "secondPos" : 8303, + "firstEndPos" : 51890, + "secondEndPos" : 8310 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -70277,6 +71454,17 @@ "secondPos" : 53058, "firstEndPos" : 52740, "secondEndPos" : 53087 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 52711, + "secondPos" : 53058, + "firstEndPos" : 52717, + "secondEndPos" : 53064 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -70310,6 +71498,17 @@ "secondPos" : 53095, "firstEndPos" : 52794, "secondEndPos" : 53141 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 52748, + "secondPos" : 53095, + "firstEndPos" : 52755, + "secondEndPos" : 53102 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -71454,6 +72653,17 @@ "secondPos" : 50784, "firstEndPos" : 53613, "secondEndPos" : 50812 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 53580, + "secondPos" : 50784, + "firstEndPos" : 53586, + "secondEndPos" : 50790 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -75249,6 +76459,17 @@ "secondPos" : 53885, "firstEndPos" : 56454, "secondEndPos" : 53914 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 56425, + "secondPos" : 53885, + "firstEndPos" : 56431, + "secondEndPos" : 53891 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -75282,6 +76503,17 @@ "secondPos" : 53922, "firstEndPos" : 56501, "secondEndPos" : 53961 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 56462, + "secondPos" : 53922, + "firstEndPos" : 56469, + "secondEndPos" : 53929 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -75975,6 +77207,17 @@ "secondPos" : 31066, "firstEndPos" : 57085, "secondEndPos" : 31113 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 57036, + "secondPos" : 31066, + "firstEndPos" : 57042, + "secondEndPos" : 31072 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -76008,6 +77251,17 @@ "secondPos" : 31121, "firstEndPos" : 57158, "secondEndPos" : 31184 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 57093, + "secondPos" : 31121, + "firstEndPos" : 57099, + "secondEndPos" : 31127 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -76041,6 +77295,17 @@ "secondPos" : 31192, "firstEndPos" : 57243, "secondEndPos" : 31269 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 57166, + "secondPos" : 31192, + "firstEndPos" : 57173, + "secondEndPos" : 31199 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -78241,6 +79506,17 @@ "secondPos" : 32257, "firstEndPos" : 58229, "secondEndPos" : 32269 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Add new replicas as long as the task needs them & there are remaining hosts", + "secondLabel" : "// Add new replicas as long as the task needs them & there are remaining hosts", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 58244, + "secondPos" : 32284, + "firstEndPos" : 58322, + "secondEndPos" : 32362 }, { "firstType" : "ForStatement", "secondType" : "ForStatement", @@ -80276,6 +81552,17 @@ "secondPos" : 26004, "firstEndPos" : 59943, "secondEndPos" : 26083 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 59864, + "secondPos" : 26004, + "firstEndPos" : 59870, + "secondEndPos" : 26010 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -80309,6 +81596,17 @@ "secondPos" : 26091, "firstEndPos" : 60018, "secondEndPos" : 26158 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 59951, + "secondPos" : 26091, + "firstEndPos" : 59957, + "secondEndPos" : 26097 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -80342,6 +81640,17 @@ "secondPos" : 26166, "firstEndPos" : 60081, "secondEndPos" : 26221 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 60026, + "secondPos" : 26166, + "firstEndPos" : 60033, + "secondEndPos" : 26173 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -81574,6 +82883,17 @@ "secondPos" : 26852, "firstEndPos" : 60703, "secondEndPos" : 26863 +}, { + "firstType" : "BlockComment", + "secondType" : "BlockComment", + "firstLabel" : "/* Protect against npe in case the existing host has disappeared somehow */", + "secondLabel" : "/* Protect against npe in case the existing host has disappeared somehow */", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 60716, + "secondPos" : 26876, + "firstEndPos" : 60791, + "secondEndPos" : 26951 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -81739,6 +83059,17 @@ "secondPos" : 27024, "firstEndPos" : 60866, "secondEndPos" : 27028 +}, { + "firstType" : "BlockComment", + "secondType" : "BlockComment", + "firstLabel" : "/* in non-local-stack, prevent replicates to same host (multi-minion-per-host-setup) */", + "secondLabel" : "/* in non-local-stack, prevent replicates to same host (multi-minion-per-host-setup) */", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 60876, + "secondPos" : 27038, + "firstEndPos" : 60963, + "secondEndPos" : 27125 }, { "firstType" : "IfStatement", "secondType" : "IfStatement", @@ -81970,6 +83301,17 @@ "secondPos" : 27239, "firstEndPos" : 61082, "secondEndPos" : 27244 +}, { + "firstType" : "BlockComment", + "secondType" : "BlockComment", + "firstLabel" : "/* don't let the same minion have duplicate tasks */", + "secondLabel" : "/* don't let the same minion have duplicate tasks */", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 61102, + "secondPos" : 27264, + "firstEndPos" : 61154, + "secondEndPos" : 27316 }, { "firstType" : "IfStatement", "secondType" : "IfStatement", @@ -82267,6 +83609,17 @@ "secondPos" : 27472, "firstEndPos" : 61303, "secondEndPos" : 27477 +}, { + "firstType" : "BlockComment", + "secondType" : "BlockComment", + "firstLabel" : "/* try not to put a task on a host if it would almost fill the host */", + "secondLabel" : "/* try not to put a task on a host if it would almost fill the host */", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 61323, + "secondPos" : 27497, + "firstEndPos" : 61393, + "secondEndPos" : 27567 }, { "firstType" : "IfStatement", "secondType" : "IfStatement", @@ -85072,6 +86425,17 @@ "secondPos" : 54487, "firstEndPos" : 63544, "secondEndPos" : 54520 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 63511, + "secondPos" : 54487, + "firstEndPos" : 63517, + "secondEndPos" : 54493 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -86689,6 +88053,17 @@ "secondPos" : 56871, "firstEndPos" : 64792, "secondEndPos" : 56905 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 64758, + "secondPos" : 56871, + "firstEndPos" : 64764, + "secondEndPos" : 56877 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -86722,6 +88097,17 @@ "secondPos" : 56913, "firstEndPos" : 64893, "secondEndPos" : 57006 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 64800, + "secondPos" : 56913, + "firstEndPos" : 64806, + "secondEndPos" : 56919 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -86755,6 +88141,17 @@ "secondPos" : 57014, "firstEndPos" : 64973, "secondEndPos" : 57086 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 64901, + "secondPos" : 57014, + "firstEndPos" : 64907, + "secondEndPos" : 57020 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -86788,6 +88185,17 @@ "secondPos" : 57094, "firstEndPos" : 65037, "secondEndPos" : 57150 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 64981, + "secondPos" : 57094, + "firstEndPos" : 64988, + "secondEndPos" : 57101 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -87679,6 +89087,17 @@ "secondPos" : 57736, "firstEndPos" : 65597, "secondEndPos" : 57740 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Nonzero as we check if cachedHostScores.isEmpty first", + "secondLabel" : "// Nonzero as we check if cachedHostScores.isEmpty first", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 65601, + "secondPos" : 57744, + "firstEndPos" : 65657, + "secondEndPos" : 57800 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -88691,6 +90110,17 @@ "secondPos" : 55798, "firstEndPos" : 66262, "secondEndPos" : 55802 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// If either metric is zero across the whole cluster, treat every host as having full load in that aspect", + "secondLabel" : "// If either metric is zero across the whole cluster, treat every host as having full load in that aspect", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 66273, + "secondPos" : 55813, + "firstEndPos" : 66378, + "secondEndPos" : 55918 }, { "firstType" : "IfStatement", "secondType" : "IfStatement", @@ -89219,6 +90649,17 @@ "secondPos" : 56251, "firstEndPos" : 66728, "secondEndPos" : 56268 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Assemble the score as a combination of the mean active tasks and the disk used", + "secondLabel" : "// Assemble the score as a combination of the mean active tasks and the disk used", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 66740, + "secondPos" : 56280, + "firstEndPos" : 66821, + "secondEndPos" : 56361 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -89593,6 +91034,17 @@ "secondPos" : 56529, "firstEndPos" : 66992, "secondEndPos" : 56532 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// If host is very full, make sure to give the host a big score", + "secondLabel" : "// If host is very full, make sure to give the host a big score", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 67003, + "secondPos" : 56543, + "firstEndPos" : 67066, + "secondEndPos" : 56606 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -92101,6 +93553,17 @@ "secondPos" : 35646, "firstEndPos" : 69187, "secondEndPos" : 35722 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 69111, + "secondPos" : 35646, + "firstEndPos" : 69117, + "secondEndPos" : 35652 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -92134,6 +93597,17 @@ "secondPos" : 35730, "firstEndPos" : 69244, "secondEndPos" : 35779 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 69195, + "secondPos" : 35730, + "firstEndPos" : 69201, + "secondEndPos" : 35736 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -95192,6 +96666,17 @@ "secondPos" : 37694, "firstEndPos" : 71188, "secondEndPos" : 37734 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 71148, + "secondPos" : 37694, + "firstEndPos" : 71154, + "secondEndPos" : 37700 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -95225,6 +96710,17 @@ "secondPos" : 37742, "firstEndPos" : 71243, "secondEndPos" : 37789 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 71196, + "secondPos" : 37742, + "firstEndPos" : 71202, + "secondEndPos" : 37748 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -95258,6 +96754,17 @@ "secondPos" : 37797, "firstEndPos" : 71294, "secondEndPos" : 37840 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 71251, + "secondPos" : 37797, + "firstEndPos" : 71257, + "secondEndPos" : 37803 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -96380,6 +97887,17 @@ "secondPos" : 38368, "firstEndPos" : 71931, "secondEndPos" : 38485 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// This task was not actually assigned to the failed host. Nothing to do.", + "secondLabel" : "// This task was not actually assigned to the failed host. Nothing to do.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 71828, + "secondPos" : 38382, + "firstEndPos" : 71901, + "secondEndPos" : 38455 }, { "firstType" : "ReturnStatement", "secondType" : "ReturnStatement", @@ -97370,6 +98888,17 @@ "secondPos" : 39010, "firstEndPos" : 72748, "secondEndPos" : 39305 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Host found! Move this host to the end of the host list so we don't immediately pick it again", + "secondLabel" : "// Host found! Move this host to the end of the host list so we don't immediately pick it again", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 72471, + "secondPos" : 39028, + "firstEndPos" : 72566, + "secondEndPos" : 39123 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -97865,6 +99394,17 @@ "secondPos" : 39563, "firstEndPos" : 73055, "secondEndPos" : 39608 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 73010, + "secondPos" : 39563, + "firstEndPos" : 73016, + "secondEndPos" : 39569 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -97898,6 +99438,17 @@ "secondPos" : 39616, "firstEndPos" : 73106, "secondEndPos" : 39659 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 73063, + "secondPos" : 39616, + "firstEndPos" : 73069, + "secondEndPos" : 39622 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -97931,6 +99482,17 @@ "secondPos" : 39667, "firstEndPos" : 73183, "secondEndPos" : 39736 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 73114, + "secondPos" : 39667, + "firstEndPos" : 73120, + "secondEndPos" : 39673 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -98492,6 +100054,17 @@ "secondPos" : 40067, "firstEndPos" : 73666, "secondEndPos" : 40221 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Task has never run before. Just switch to the new host.", + "secondLabel" : "// Task has never run before. Just switch to the new host.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 73530, + "secondPos" : 40085, + "firstEndPos" : 73588, + "secondEndPos" : 40143 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -98613,6 +100186,17 @@ "secondPos" : 40227, "firstEndPos" : 74276, "secondEndPos" : 40868 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Send a kill message if the task is running on the failed host", + "secondLabel" : "// Send a kill message if the task is running on the failed host", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 73690, + "secondPos" : 40245, + "firstEndPos" : 73754, + "secondEndPos" : 40309 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -98844,6 +100428,17 @@ "secondPos" : 40458, "firstEndPos" : 73883, "secondEndPos" : 40463 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Find a replica, promote it, and tell it to replicate to the new replica on completion", + "secondLabel" : "// Find a replica, promote it, and tell it to replicate to the new replica on completion", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 73903, + "secondPos" : 40483, + "firstEndPos" : 73991, + "secondEndPos" : 40571 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -99350,6 +100945,17 @@ "secondPos" : 40884, "firstEndPos" : 74575, "secondEndPos" : 41179 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Replace the replica on the failed host with one on a new host", + "secondLabel" : "// Replace the replica on the failed host with one on a new host", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 74306, + "secondPos" : 40898, + "firstEndPos" : 74370, + "secondEndPos" : 40962 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -100142,6 +101748,17 @@ "secondPos" : 1223, "firstEndPos" : 74965, "secondEndPos" : 1240 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Don't autobalance if spawn is quiesced, busy, etc.", + "secondLabel" : "// Don't autobalance if spawn is quiesced, busy, etc.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 74981, + "secondPos" : 1252, + "firstEndPos" : 75034, + "secondEndPos" : 1305 }, { "firstType" : "IfStatement", "secondType" : "IfStatement", diff --git a/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.spawn.SpawnBalancerConfig.json b/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.spawn.SpawnBalancerConfig.json index e9c750e9cf..3c1b93014a 100644 --- a/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.spawn.SpawnBalancerConfig.json +++ b/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.spawn.SpawnBalancerConfig.json @@ -9,6 +9,17 @@ "secondPos" : 0, "firstEndPos" : 10931, "secondEndPos" : 10940 +}, { + "firstType" : "BlockComment", + "secondType" : "BlockComment", + "firstLabel" : "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */", + "secondLabel" : "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */", + "firstParentType" : "CompilationUnit", + "secondParentType" : "CompilationUnit", + "firstPos" : 0, + "secondPos" : 0, + "firstEndPos" : 557, + "secondEndPos" : 557 }, { "firstType" : "PackageDeclaration", "secondType" : "PackageDeclaration", @@ -405,6 +416,17 @@ "secondPos" : 1314, "firstEndPos" : 1312, "secondEndPos" : 1321 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// How aggressively balancing should be done. For now, 0=no rebalancing, 1=rebalance jobs that are over/under-allocated, 2=rebalance all jobs", + "secondLabel" : "// How aggressively balancing should be done. For now, 0=no rebalancing, 1=rebalance jobs that are over/under-allocated, 2=rebalance all jobs", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 1320, + "secondPos" : 1329, + "firstEndPos" : 1461, + "secondEndPos" : 1470 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -493,6 +515,17 @@ "secondPos" : 1523, "firstEndPos" : 1515, "secondEndPos" : 1524 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// During reallocation, don't move more than this many tasks", + "secondLabel" : "// During reallocation, don't move more than this many tasks", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 1522, + "secondPos" : 1531, + "firstEndPos" : 1582, + "secondEndPos" : 1591 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -647,6 +680,17 @@ "secondPos" : 1704, "firstEndPos" : 1697, "secondEndPos" : 1706 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// During reallocation, don't move more than this many bytes", + "secondLabel" : "// During reallocation, don't move more than this many bytes", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 1704, + "secondPos" : 1713, + "firstEndPos" : 1764, + "secondEndPos" : 1773 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -878,6 +922,17 @@ "secondPos" : 1920, "firstEndPos" : 1915, "secondEndPos" : 1924 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// During host reallocation, a single moved task can only be this portion of the overall byte maximum", + "secondLabel" : "// During host reallocation, a single moved task can only be this portion of the overall byte maximum", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 1922, + "secondPos" : 1931, + "firstEndPos" : 2023, + "secondEndPos" : 2032 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -1065,6 +1120,17 @@ "secondPos" : 2139, "firstEndPos" : 2134, "secondEndPos" : 2143 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Don't move more than this percentage of bytes off of a loaded disk, and don't fill up more than that much of an unloaded disk", + "secondLabel" : "// Don't move more than this percentage of bytes off of a loaded disk, and don't fill up more than that much of an unloaded disk", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 2142, + "secondPos" : 2151, + "firstEndPos" : 2270, + "secondEndPos" : 2279 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -1252,6 +1318,17 @@ "secondPos" : 2379, "firstEndPos" : 2375, "secondEndPos" : 2384 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// During reallocation, don't move this many tasks to/from a host unless that host was specifically rebalanced", + "secondLabel" : "// During reallocation, don't move this many tasks to/from a host unless that host was specifically rebalanced", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 2383, + "secondPos" : 2392, + "firstEndPos" : 2493, + "secondEndPos" : 2502 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -1384,6 +1461,17 @@ "secondPos" : 2602, "firstEndPos" : 2594, "secondEndPos" : 2603 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Don't bother moving very small tasks during disk space balancing", + "secondLabel" : "// Don't bother moving very small tasks during disk space balancing", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 2601, + "secondPos" : 2610, + "firstEndPos" : 2668, + "secondEndPos" : 2677 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -1560,6 +1648,17 @@ "secondPos" : 2773, "firstEndPos" : 2768, "secondEndPos" : 2777 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Consider load balance of two hosts to be significantly different only if the difference is at least 10% above/below", + "secondLabel" : "// Consider load balance of two hosts to be significantly different only if the difference is at least 10% above/below", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 2776, + "secondPos" : 2785, + "firstEndPos" : 2894, + "secondEndPos" : 2903 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -1747,6 +1846,17 @@ "secondPos" : 3007, "firstEndPos" : 3003, "secondEndPos" : 3012 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Consider a host's load to be heavy (/light) only if it is heavier (/lighter) than 50% of hosts", + "secondLabel" : "// Consider a host's load to be heavy (/light) only if it is heavier (/lighter) than 50% of hosts", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 3011, + "secondPos" : 3020, + "firstEndPos" : 3108, + "secondEndPos" : 3117 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -1934,6 +2044,28 @@ "secondPos" : 3225, "firstEndPos" : 3220, "secondEndPos" : 3229 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// When rebalancing a heavy host, push onto the lightest 20% of suitable hosts. When rebalancing a light host, pull from", + "secondLabel" : "// When rebalancing a heavy host, push onto the lightest 20% of suitable hosts. When rebalancing a light host, pull from", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 3228, + "secondPos" : 3237, + "firstEndPos" : 3348, + "secondEndPos" : 3357 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// the heaviest 20% of suitable hosts.", + "secondLabel" : "// the heaviest 20% of suitable hosts.", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 3353, + "secondPos" : 3362, + "firstEndPos" : 3391, + "secondEndPos" : 3400 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -2286,6 +2418,17 @@ "secondPos" : 3622, "firstEndPos" : 3617, "secondEndPos" : 3626 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Only do job autobalancing once per time interval", + "secondLabel" : "// Only do job autobalancing once per time interval", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 3624, + "secondPos" : 3633, + "firstEndPos" : 3675, + "secondEndPos" : 3684 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -2528,6 +2671,17 @@ "secondPos" : 3856, "firstEndPos" : 3851, "secondEndPos" : 3860 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Only do host autobalancing once per time interval", + "secondLabel" : "// Only do host autobalancing once per time interval", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 3858, + "secondPos" : 3867, + "firstEndPos" : 3910, + "secondEndPos" : 3919 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -2770,6 +2924,17 @@ "secondPos" : 4093, "firstEndPos" : 4088, "secondEndPos" : 4097 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Track the last time a job autobalance was done", + "secondLabel" : "// Track the last time a job autobalance was done", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 4095, + "secondPos" : 4104, + "firstEndPos" : 4144, + "secondEndPos" : 4153 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -2836,6 +3001,17 @@ "secondPos" : 4196, "firstEndPos" : 4189, "secondEndPos" : 4198 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// If you're at more than 80% disk capacity, you don't get assigned any new tasks or replicas", + "secondLabel" : "// If you're at more than 80% disk capacity, you don't get assigned any new tasks or replicas", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 4196, + "secondPos" : 4205, + "firstEndPos" : 4289, + "secondEndPos" : 4298 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -3023,6 +3199,17 @@ "secondPos" : 4440, "firstEndPos" : 4435, "secondEndPos" : 4444 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// If you're at more than 90% disk capacity, push tasks off before running additional tasks", + "secondLabel" : "// If you're at more than 90% disk capacity, push tasks off before running additional tasks", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 4443, + "secondPos" : 4452, + "firstEndPos" : 4534, + "secondEndPos" : 4543 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -3210,6 +3397,17 @@ "secondPos" : 4677, "firstEndPos" : 4672, "secondEndPos" : 4681 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Max number of read-only-replicas for a given host", + "secondLabel" : "// Max number of read-only-replicas for a given host", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 4680, + "secondPos" : 4689, + "firstEndPos" : 4732, + "secondEndPos" : 4741 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -3342,6 +3540,17 @@ "secondPos" : 4846, "firstEndPos" : 4838, "secondEndPos" : 4847 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Tasks that have run within this many milliseconds are considered \"active\" and weighted more heavily. Default is one day.", + "secondLabel" : "// Tasks that have run within this many milliseconds are considered \"active\" and weighted more heavily. Default is one day.", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 4846, + "secondPos" : 4855, + "firstEndPos" : 4969, + "secondEndPos" : 4978 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -3529,6 +3738,17 @@ "secondPos" : 5088, "firstEndPos" : 5083, "secondEndPos" : 5092 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// control whether minions on the same host can replicate to each other", + "secondLabel" : "// control whether minions on the same host can replicate to each other", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 5090, + "secondPos" : 5099, + "firstEndPos" : 5161, + "secondEndPos" : 5170 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -3661,6 +3881,17 @@ "secondPos" : 5268, "firstEndPos" : 5263, "secondEndPos" : 5272 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// The score weight for task siblings", + "secondLabel" : "// The score weight for task siblings", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 5270, + "secondPos" : 5279, + "firstEndPos" : 5307, + "secondEndPos" : 5316 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -3793,6 +4024,17 @@ "secondPos" : 5391, "firstEndPos" : 5384, "secondEndPos" : 5393 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// The score weight for recently-run tasks", + "secondLabel" : "// The score weight for recently-run tasks", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 5391, + "secondPos" : 5400, + "firstEndPos" : 5433, + "secondEndPos" : 5442 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -3925,6 +4167,17 @@ "secondPos" : 5528, "firstEndPos" : 5521, "secondEndPos" : 5530 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// The score weight for disk usage", + "secondLabel" : "// The score weight for disk usage", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 5528, + "secondPos" : 5537, + "firstEndPos" : 5562, + "secondEndPos" : 5571 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", @@ -4057,6 +4310,17 @@ "secondPos" : 5653, "firstEndPos" : 5646, "secondEndPos" : 5655 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// The default score to give to new hosts", + "secondLabel" : "// The default score to give to new hosts", + "firstParentType" : "TypeDeclaration", + "secondParentType" : "TypeDeclaration", + "firstPos" : 5653, + "secondPos" : 5662, + "firstEndPos" : 5694, + "secondEndPos" : 5703 }, { "firstType" : "FieldDeclaration", "secondType" : "FieldDeclaration", diff --git a/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.spawn.SpawnBalancerTaskSizer.json b/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.spawn.SpawnBalancerTaskSizer.json index edcd68afa3..e19a999883 100644 --- a/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.spawn.SpawnBalancerTaskSizer.json +++ b/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.spawn.SpawnBalancerTaskSizer.json @@ -9,6 +9,17 @@ "secondPos" : 0, "firstEndPos" : 7964, "secondEndPos" : 8063 +}, { + "firstType" : "BlockComment", + "secondType" : "BlockComment", + "firstLabel" : "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */", + "secondLabel" : "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */", + "firstParentType" : "CompilationUnit", + "secondParentType" : "CompilationUnit", + "firstPos" : 0, + "secondPos" : 0, + "firstEndPos" : 557, + "secondEndPos" : 557 }, { "firstType" : "PackageDeclaration", "secondType" : "PackageDeclaration", @@ -3122,6 +3133,17 @@ "secondPos" : 3708, "firstEndPos" : 3654, "secondEndPos" : 3753 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 3609, + "secondPos" : 3708, + "firstEndPos" : 3615, + "secondEndPos" : 3714 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -3155,6 +3177,17 @@ "secondPos" : 3761, "firstEndPos" : 3728, "secondEndPos" : 3827 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 3662, + "secondPos" : 3761, + "firstEndPos" : 3669, + "secondEndPos" : 3768 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -4057,6 +4090,17 @@ "secondPos" : 4365, "firstEndPos" : 4737, "secondEndPos" : 4836 +}, { + "firstType" : "BlockComment", + "secondType" : "BlockComment", + "firstLabel" : "/* Return task.getByteCount if it is sensible.\n Sometimes tasks erroneously report 0 bytes used. Use the job average in this case. */", + "secondLabel" : "/* Return task.getByteCount if it is sensible.\n Sometimes tasks erroneously report 0 bytes used. Use the job average in this case. */", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 4276, + "secondPos" : 4375, + "firstEndPos" : 4416, + "secondEndPos" : 4515 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -5190,6 +5234,17 @@ "secondPos" : 5237, "firstEndPos" : 5174, "secondEndPos" : 5273 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 5138, + "secondPos" : 5237, + "firstEndPos" : 5144, + "secondEndPos" : 5243 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -5223,6 +5278,17 @@ "secondPos" : 5281, "firstEndPos" : 5221, "secondEndPos" : 5320 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 5182, + "secondPos" : 5281, + "firstEndPos" : 5188, + "secondEndPos" : 5287 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -5256,6 +5322,17 @@ "secondPos" : 5328, "firstEndPos" : 5292, "secondEndPos" : 5391 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 5229, + "secondPos" : 5328, + "firstEndPos" : 5236, + "secondEndPos" : 5335 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -8160,6 +8237,17 @@ "secondPos" : 7176, "firstEndPos" : 7143, "secondEndPos" : 7242 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 7077, + "secondPos" : 7176, + "firstEndPos" : 7083, + "secondEndPos" : 7182 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -8193,6 +8281,17 @@ "secondPos" : 7250, "firstEndPos" : 7205, "secondEndPos" : 7304 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 7151, + "secondPos" : 7250, + "firstEndPos" : 7157, + "secondEndPos" : 7256 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -8226,6 +8325,17 @@ "secondPos" : 7312, "firstEndPos" : 7244, "secondEndPos" : 7343 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@return", + "secondLabel" : "@return", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 7213, + "secondPos" : 7312, + "firstEndPos" : 7220, + "secondEndPos" : 7319 }, { "firstType" : "TextElement", "secondType" : "TextElement", diff --git a/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.web.resources.SystemResource.json b/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.web.resources.SystemResource.json index 191d73bdc5..0b0520651f 100644 --- a/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.web.resources.SystemResource.json +++ b/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.main.java.com.addthis.hydra.job.web.resources.SystemResource.json @@ -9,6 +9,17 @@ "secondPos" : 0, "firstEndPos" : 7030, "secondEndPos" : 7048 +}, { + "firstType" : "BlockComment", + "secondType" : "BlockComment", + "firstLabel" : "/*\n * The contents of this file are subject to the terms\n * of the Common Development and Distribution License\n * (the \"License\"). You may not use this file except\n * in compliance with the License.\n * \n * You can obtain a copy of the license at\n * http://www.opensource.org/licenses/cddl1.php\n * See the License for the specific language governing\n * permissions and limitations under the License.\n */", + "secondLabel" : "/*\n * The contents of this file are subject to the terms\n * of the Common Development and Distribution License\n * (the \"License\"). You may not use this file except\n * in compliance with the License.\n * \n * You can obtain a copy of the license at\n * http://www.opensource.org/licenses/cddl1.php\n * See the License for the specific language governing\n * permissions and limitations under the License.\n */", + "firstParentType" : "CompilationUnit", + "secondParentType" : "CompilationUnit", + "firstPos" : 0, + "secondPos" : 0, + "firstEndPos" : 403, + "secondEndPos" : 403 }, { "firstType" : "PackageDeclaration", "secondType" : "PackageDeclaration", @@ -7962,6 +7973,17 @@ "secondPos" : 5811, "firstEndPos" : 5977, "secondEndPos" : 5995 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 5793, + "secondPos" : 5811, + "firstEndPos" : 5799, + "secondEndPos" : 5817 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -8006,6 +8028,17 @@ "secondPos" : 6003, "firstEndPos" : 6223, "secondEndPos" : 6241 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@param", + "secondLabel" : "@param", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 5985, + "secondPos" : 6003, + "firstEndPos" : 5991, + "secondEndPos" : 6009 }, { "firstType" : "SimpleName", "secondType" : "SimpleName", @@ -8039,6 +8072,17 @@ "secondPos" : 6023, "firstEndPos" : 6017, "secondEndPos" : 6035 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@code", + "secondLabel" : "@code", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 6005, + "secondPos" : 6023, + "firstEndPos" : 6010, + "secondEndPos" : 6028 }, { "firstType" : "TextElement", "secondType" : "TextElement", @@ -8094,6 +8138,17 @@ "secondPos" : 6227, "firstEndPos" : 6222, "secondEndPos" : 6240 +}, { + "firstType" : "TAG_NAME", + "secondType" : "TAG_NAME", + "firstLabel" : "@code", + "secondLabel" : "@code", + "firstParentType" : "TagElement", + "secondParentType" : "TagElement", + "firstPos" : 6209, + "secondPos" : 6227, + "firstEndPos" : 6214, + "secondEndPos" : 6232 }, { "firstType" : "TextElement", "secondType" : "TextElement", diff --git a/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.test.java.com.addthis.hydra.job.spawn.SpawnBalancerTest.json b/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.test.java.com.addthis.hydra.job.spawn.SpawnBalancerTest.json index 75bbd781a2..566e04a45f 100644 --- a/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.test.java.com.addthis.hydra.job.spawn.SpawnBalancerTest.json +++ b/src/test/resources/astDiff/commits/addthis_hydra/7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780/hydra-main.src.test.java.com.addthis.hydra.job.spawn.SpawnBalancerTest.json @@ -9,6 +9,17 @@ "secondPos" : 0, "firstEndPos" : 30010, "secondEndPos" : 30003 +}, { + "firstType" : "BlockComment", + "secondType" : "BlockComment", + "firstLabel" : "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */", + "secondLabel" : "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */", + "firstParentType" : "CompilationUnit", + "secondParentType" : "CompilationUnit", + "firstPos" : 0, + "secondPos" : 0, + "firstEndPos" : 557, + "secondEndPos" : 557 }, { "firstType" : "PackageDeclaration", "secondType" : "PackageDeclaration", @@ -6268,6 +6279,28 @@ "secondPos" : 4783, "firstEndPos" : 6360, "secondEndPos" : 6353 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Suppose we allocate a job with N tasks to a cluster with N hosts, with one of the hosts near full disk.", + "secondLabel" : "// Suppose we allocate a job with N tasks to a cluster with N hosts, with one of the hosts near full disk.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 4800, + "secondPos" : 4793, + "firstEndPos" : 4906, + "secondEndPos" : 4899 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Then we should put replicas on all the light hosts, but not the heavy one", + "secondLabel" : "// Then we should put replicas on all the light hosts, but not the heavy one", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 4915, + "secondPos" : 4908, + "firstEndPos" : 4991, + "secondEndPos" : 4984 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -9139,6 +9172,94 @@ "secondPos" : 6414, "firstEndPos" : 8921, "secondEndPos" : 8914 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Suppose we have a cluster with the following machines:", + "secondLabel" : "// Suppose we have a cluster with the following machines:", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 6431, + "secondPos" : 6424, + "firstEndPos" : 6488, + "secondEndPos" : 6481 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// - a host that is readOnly", + "secondLabel" : "// - a host that is readOnly", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 6497, + "secondPos" : 6490, + "firstEndPos" : 6526, + "secondEndPos" : 6519 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// - a host that is down", + "secondLabel" : "// - a host that is down", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 6535, + "secondPos" : 6528, + "firstEndPos" : 6560, + "secondEndPos" : 6553 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// - a host that is dead", + "secondLabel" : "// - a host that is dead", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 6569, + "secondPos" : 6562, + "firstEndPos" : 6594, + "secondEndPos" : 6587 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// - a live host that has no jobs", + "secondLabel" : "// - a live host that has no jobs", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 6603, + "secondPos" : 6596, + "firstEndPos" : 6637, + "secondEndPos" : 6630 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// - a live host that has one old task and one new", + "secondLabel" : "// - a live host that has one old task and one new", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 6646, + "secondPos" : 6639, + "firstEndPos" : 6697, + "secondEndPos" : 6690 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// - a live host that has two new tasks", + "secondLabel" : "// - a live host that has two new tasks", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 6706, + "secondPos" : 6699, + "firstEndPos" : 6746, + "secondEndPos" : 6739 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// sortHostsByLiveTasks should omit the first two and return the last three in the given order.", + "secondLabel" : "// sortHostsByLiveTasks should omit the first two and return the last three in the given order.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 6755, + "secondPos" : 6748, + "firstEndPos" : 6850, + "secondEndPos" : 6843 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -12692,6 +12813,17 @@ "secondPos" : 8990, "firstEndPos" : 9947, "secondEndPos" : 9940 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// If we assign a job with 3N tasks to 3 hosts, N tasks should go on each host.", + "secondLabel" : "// If we assign a job with 3N tasks to 3 hosts, N tasks should go on each host.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 9007, + "secondPos" : 9000, + "firstEndPos" : 9086, + "secondEndPos" : 9079 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -14122,6 +14254,28 @@ "secondPos" : 10029, "firstEndPos" : 12121, "secondEndPos" : 12114 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Suppose we put a 4-node job on a single heavily loaded host, and there are two light hosts available.", + "secondLabel" : "// Suppose we put a 4-node job on a single heavily loaded host, and there are two light hosts available.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 10046, + "secondPos" : 10039, + "firstEndPos" : 10150, + "secondEndPos" : 10143 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// After a job reallocation, we want to move one tasks to each light host.", + "secondLabel" : "// After a job reallocation, we want to move one tasks to each light host.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 10159, + "secondPos" : 10152, + "firstEndPos" : 10233, + "secondEndPos" : 10226 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -17235,6 +17389,28 @@ "secondPos" : 12195, "firstEndPos" : 13401, "secondEndPos" : 13394 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Suppose we have a cluster with three hosts, one with a mild load.", + "secondLabel" : "// Suppose we have a cluster with three hosts, one with a mild load.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 12212, + "secondPos" : 12205, + "firstEndPos" : 12280, + "secondEndPos" : 12273 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// If we create a 5-node job, we want to assign two tasks to each light host and one to the heavier host", + "secondLabel" : "// If we create a 5-node job, we want to assign two tasks to each light host and one to the heavier host", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 12289, + "secondPos" : 12282, + "firstEndPos" : 12393, + "secondEndPos" : 12386 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -18830,6 +19006,28 @@ "secondPos" : 13483, "firstEndPos" : 15392, "secondEndPos" : 15385 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Suppose we have two 3-node jobs all running on a single heavy host.", + "secondLabel" : "// Suppose we have two 3-node jobs all running on a single heavy host.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 13500, + "secondPos" : 13493, + "firstEndPos" : 13570, + "secondEndPos" : 13563 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// After a host reallocation, we want to move one task from each job to a light host.", + "secondLabel" : "// After a host reallocation, we want to move one task from each job to a light host.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 13579, + "secondPos" : 13572, + "firstEndPos" : 13664, + "secondEndPos" : 13657 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -21426,6 +21624,28 @@ "secondPos" : 15455, "firstEndPos" : 18111, "secondEndPos" : 18104 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Suppose we have one host with full disk and another with mostly empty disk.", + "secondLabel" : "// Suppose we have one host with full disk and another with mostly empty disk.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 15472, + "secondPos" : 15465, + "firstEndPos" : 15550, + "secondEndPos" : 15543 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Should move some tasks from heavy to light, but not too much.", + "secondLabel" : "// Should move some tasks from heavy to light, but not too much.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 15559, + "secondPos" : 15552, + "firstEndPos" : 15623, + "secondEndPos" : 15616 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -25837,6 +26057,17 @@ "secondPos" : 18176, "firstEndPos" : 19327, "secondEndPos" : 19320 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Suppose we have a cluster that is essentially balanced. Rebalancing it shouldn't do anything.", + "secondLabel" : "// Suppose we have a cluster that is essentially balanced. Rebalancing it shouldn't do anything.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 18193, + "secondPos" : 18186, + "firstEndPos" : 18289, + "secondEndPos" : 18282 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -29258,6 +29489,17 @@ "secondPos" : 20113, "firstEndPos" : 20135, "secondEndPos" : 20128 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// FIXME spawn2 can't be instantiated due to 5050 already being used by spawn", + "secondLabel" : "// FIXME spawn2 can't be instantiated due to 5050 already being used by spawn", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 20147, + "secondPos" : 20140, + "firstEndPos" : 20224, + "secondEndPos" : 20217 }, { "firstType" : "TryStatement", "secondType" : "TryStatement", @@ -31623,6 +31865,28 @@ "secondPos" : 21530, "firstEndPos" : 23289, "secondEndPos" : 23282 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Suppose we start out with eight hosts, and have a job with 10 live tasks.", + "secondLabel" : "// Suppose we start out with eight hosts, and have a job with 10 live tasks.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 21547, + "secondPos" : 21540, + "firstEndPos" : 21623, + "secondEndPos" : 21616 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Then if we add two hosts and rebalance the job, we should move tasks onto each.", + "secondLabel" : "// Then if we add two hosts and rebalance the job, we should move tasks onto each.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 21632, + "secondPos" : 21625, + "firstEndPos" : 21714, + "secondEndPos" : 21707 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -33009,6 +33273,17 @@ "secondPos" : 22318, "firstEndPos" : 22445, "secondEndPos" : 22438 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Takes a little while for the new hosts to show up as available", + "secondLabel" : "// Takes a little while for the new hosts to show up as available", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 22339, + "secondPos" : 22332, + "firstEndPos" : 22404, + "secondEndPos" : 22397 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -34461,6 +34736,28 @@ "secondPos" : 23343, "firstEndPos" : 24565, "secondEndPos" : 24558 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Test that heavily-loaded and lightly-loaded hosts are identified as such, and that medium-loaded hosts are", + "secondLabel" : "// Test that heavily-loaded and lightly-loaded hosts are identified as such, and that medium-loaded hosts are", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 23360, + "secondPos" : 23353, + "firstEndPos" : 23469, + "secondEndPos" : 23462 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// not identified as heavy or light", + "secondLabel" : "// not identified as heavy or light", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 23478, + "secondPos" : 23471, + "firstEndPos" : 23513, + "secondEndPos" : 23506 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -36408,6 +36705,17 @@ "secondPos" : 24628, "firstEndPos" : 26010, "secondEndPos" : 26003 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// Simulate some task state changes, and make sure job.isFinished() behaves as expected.", + "secondLabel" : "// Simulate some task state changes, and make sure job.isFinished() behaves as expected.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 24645, + "secondPos" : 24638, + "firstEndPos" : 24733, + "secondEndPos" : 24726 }, { "firstType" : "VariableDeclarationStatement", "secondType" : "VariableDeclarationStatement", @@ -37398,6 +37706,17 @@ "secondPos" : 25164, "firstEndPos" : 25188, "secondEndPos" : 25181 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// If a task is busy, the job should not be finished", + "secondLabel" : "// If a task is busy, the job should not be finished", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 25199, + "secondPos" : 25192, + "firstEndPos" : 25251, + "secondEndPos" : 25244 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -37805,6 +38124,17 @@ "secondPos" : 25486, "firstEndPos" : 25497, "secondEndPos" : 25490 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// If a task is migrating, the job should not be finished.", + "secondLabel" : "// If a task is migrating, the job should not be finished.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 25508, + "secondPos" : 25501, + "firstEndPos" : 25566, + "secondEndPos" : 25559 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement", @@ -38113,6 +38443,28 @@ "secondPos" : 25719, "firstEndPos" : 25748, "secondEndPos" : 25741 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// If a task is rebalancing, the job _should_ be finished.", + "secondLabel" : "// If a task is rebalancing, the job _should_ be finished.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 25759, + "secondPos" : 25752, + "firstEndPos" : 25817, + "secondEndPos" : 25810 +}, { + "firstType" : "LineComment", + "secondType" : "LineComment", + "firstLabel" : "// The idea is that the task successfully ran, got into idle state, then a rebalance action was called afterwards.", + "secondLabel" : "// The idea is that the task successfully ran, got into idle state, then a rebalance action was called afterwards.", + "firstParentType" : "Block", + "secondParentType" : "Block", + "firstPos" : 25826, + "secondPos" : 25819, + "firstEndPos" : 25940, + "secondEndPos" : 25933 }, { "firstType" : "ExpressionStatement", "secondType" : "ExpressionStatement",