Skip to content

Prevent early failure when a slave is loading dataset.#475

Closed
esler wants to merge 3 commits into
predis:v1.1from
peoplepath:handle_loading_error_response
Closed

Prevent early failure when a slave is loading dataset.#475
esler wants to merge 3 commits into
predis:v1.1from
peoplepath:handle_loading_error_response

Conversation

@esler
Copy link
Copy Markdown

@esler esler commented Dec 8, 2017

Same problem like #280

I'm getting this exception

Exception: LOADING Redis is loading the dataset in memory
  Type: Predis\Response\ServerException
  File: vendor/predis/predis/src/Client.php
  Line: 370

I'm using Predis\Connection\Aggregate\SentinelReplication which is missing previous fix. I've prepared simple fix in the fashion of previous fix. I'm not sure about not removing failing slave from the pool but it works for my problem.

when one slave gets back online but is still loading the dataset from
disk (when this happens, Redis returns the -LOADING error response).
@chasebolt
Copy link
Copy Markdown

any chance of this getting merged in? we are experiencing this issue with using sentinel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants