Description
Steps to reproduce:
1) Create a 4 node cluster : 1 kv, 2 indexer, 1 n1ql
2) Create multiple secondary indexes.
3) Remove one of the indexer nodes and start rebalance.
4) While step 3 is in progress, run "CREATE INDEX index_name ON default(age) USING GSI WITH {'defer_build': True};" from the n1ql node, they will keep failing with "Unexpected server error"(which is expected).
5) Continue running the create index commands from the n1ql query panel, after some attempts query panel becomes inaccessible with "no query nodes were found on this cluster, so N1QL querying is not possible" message.
However a browser refresh fixes the issue and restores the query panel.
Will attach logs.