Skip to content

Fetched values incorrectly interpreted as long when using igbinary serialization #305

Description

@orcinus

Experiencing basically the same thing as issue #202.
No clue why @ddrager closed that one and what the "configuration issue" was (we have a pretty clear-cut configuration).

In our case, a particular igbinary serialized array keeps getting incorrectly interpreted as a long, and fails with "Memcached::get(): could not read long value, too big".

@ddrager's theory on why this is happening seems solid / matches what we're seeing. We get the error for one particular client site, for one particular key, with one particular set of values. When the value stored changes, it's fine.

If there's anything i can do to help debug this, let me know.
I'm not sure what the value that causes this is (as i obviously can't get it from the cache, and when i get notified about the error, it's usually already too late and it's been overwritten).

The contents of the array stored looks something like this:

[ 'checksum' => string (32) "ca693020b1379ace7d7fa7f9f61c7678",
'value' => array (6)
['0' => string (9) "cctca2017"
'id' => string (9) "cctca2017"
'1' => string (10) "2017-02-16"
'events_start' => string (10) "2017-02-16"
'2' => string (10) "2017-02-16"
'events_end' => string (10) "2017-02-16"]]

Serialization is, as i've mentioned, using igbinary. This does not appear to occur when using internal PHP serializer.

Activity

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions