CBG-893 Expand waitForIndex for more error cases (#4605)
CBG-893 Expand waitForIndex for more error cases (#4605)

* Expand waitForIndex for more error cases

Modifies waitForIndex to retry on all errors.  Indefinite retry for timeouts, backoff retry for all other errors.

* Reduce max retry for a better balance of SG retry and service retry.
couchbaselabs/sync_gateway,ceejatec/sync_gateway,ceejatec/sync_gateway,couchbaselabs/sync_gateway,ceejatec/sync_gateway,couchbaselabs/sync_gateway,ceejatec/sync_gateway,couchbaselabs/sync_gateway