temporal
temporal copied to clipboard
Should not return Unavailable error when consistent query buffer is full.
This is due to worker not processing query fast enough (either is worker too slow or they are stuck), or it could also caused by concurrent queries (2 queries come at the same time). Should not be Unavailable error. https://github.com/temporalio/temporal/blob/a8d47d0ec03298040aa040fce7b9b8d7bba33c15/service/history/consts/const.go#L72
We need some new type of error to indicate this is worker not keep up.
We now returns ResourceExhaustedError.