Skip to content

Wrong key is read (among other errors) #1080

Closed

Description

@nicofff

We are seeing several Redis related errors, after migrating to PHP7 and php-redis 3.0.0 eg:
· RedisCluster::del(): Invalid reply type returned for DEL command
· Uncaught RedisException: socket error on read socket

Upon further inspection we've found keys that are incorrectly read, having the content of other keys. We've found no evidence of corruption during write operations yet.

This is on the 3.0.0 release on PHP 7.0.13, with a 6 node redis cluster (3 Masters, 3 Slaves).

So far I've been unable to reproduce it consistently, although it seems it happens more often under heavy load.

Before this we were running PHP 5.5 with php-redis 2.2.7 and we had none of this issues.

I'll do some more tests and add the results to the issue. If you have any ideas on how to better test this, please let me know

Activity

  1. yatsukhnenko commented on Jan 10, 2017

    @yatsukhnenko
    Member

    @nicofff, try 3.1.1RC1

  2. psfit commented on Jan 12, 2017

    @psfit

    Hi @yatsukhnenko ,
    I am a co worker of @nicofff. He is on holidays right now.

    I have updated the version and while it seems more stable it still gives errors under heavy load:
    zend_mm_heap corrupted

    Once that happened it fails to get some keys randomly, and after a while everything is working again.

    Thanks.

  3. yatsukhnenko commented on Jan 12, 2017

    @yatsukhnenko
    Member

    @psfit, could you show a backtrace for this crash?

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

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