Skip to content

uncaughtException: TypeError: Cannot read property 'address' of undefined #43

@jseeley78

Description

@jseeley78

I have an occasional issue which leads to an 'uncaughtException' in the redis-clustr lib; If my redis cluster experiences a state change, like this->

* FAIL message received from dac844f3307ed4d0e638d57edbb26a6c7d22c392 about dec1998f3930fbab0c735783e3f1505aedcfbfb7
# Cluster state changed: fail
# Cluster state changed: ok
* Clear FAIL state for node dec1998f3930fbab0c735783e3f1505aedcfbfb7: master without slots is reachable again.

I end up with an on error event from the redis library when a command is executed; something like this->
SET can't be processed. The connection is already closed.

In which case I'm currently ending the connection and re-creating it; though shortly after (1 or 2 secs) this I will get errors on my multi-exec commands from redis-clustr->

uncaughtException: TypeError: Cannot read property 'address' of undefined at /usr/local/lgbx/lib/node_modules/redis-clustr/src/RedisBatch.js:105:25

i'm using redis version 3.0.2

Should I be doing anything special after the reconnect?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions