Skip to content

Marshal load fails silently #91

@xaviervia

Description

@xaviervia

Hey! Really nice and useful gem here.

What I found is not actually a bug but I got stuck with this for a while, so here it comes.

I'm expanding a marshal serialization using Redis::List with the :marshal => true flag set, and I got a weird behavior: on some of my apps the objects were loaded correctly and in others I got just the raw string from the serialization.

After some debugging, I realized that Redis::List was rescuing the failed load attempt and falling back to the string serialization: while this behavior is reasonable, it can be quite confusing to debug.

It would be nice to have Redis::Object raising a custom Exception upon failure to load the marshal serialization.

Good luck

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions