Skip to content

Exception when passing key in hashed.py #423

Closed
@siniG

Description

@siniG

Hi,
I receive the following error when trying to send a message using HashedPartitioner with Murmur2 function "TypeError: string argument without an encoding".

This happens on line #53 at the beginning of murmur2 method as bytearray is expecting encoding type which is not given.

Convert key to a bytearray

if not isinstance(key, bytearray):
    data = bytearray(str(key))

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