Commit a5785cd
authored
Fix schedule_all_controllers to skip INVALID controllers when enabling (#400)
When enabling controller services, NiFi server correctly skips INVALID
controllers (those that cannot be enabled due to validation errors).
The client was incorrectly waiting for ALL controllers to reach ENABLED
state, causing a 30-second timeout when any controller was INVALID.
Now the polling logic only waits for VALID controllers when enabling.
When disabling, all controllers are still checked since any controller
can be disabled regardless of validation status.
Adds test for mixed VALID/INVALID controller scenario.1 parent 0716aee commit a5785cd
2 files changed
+50
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2153 | 2153 | | |
2154 | 2154 | | |
2155 | 2155 | | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
2156 | 2162 | | |
2157 | 2163 | | |
2158 | 2164 | | |
| |||
2176 | 2182 | | |
2177 | 2183 | | |
2178 | 2184 | | |
2179 | | - | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
2180 | 2194 | | |
2181 | 2195 | | |
2182 | 2196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
920 | 920 | | |
921 | 921 | | |
922 | 922 | | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
923 | 958 | | |
924 | 959 | | |
925 | 960 | | |
| |||
0 commit comments