Skip to content

[HZ-5351] C++ Client doesn't sort field names during compact schema creation #1409

@yuce

Description

@yuce

The compact schema class doesn't sort all of its fields by name before creating the Rabin fingerprint.
Its constructor receives an unordered map of fields, so it is not possible to pass a sorted list of fields to it.
Its best to sort the fields in the constructor, like the Java Client.

The expected behavior is: schema objects with the same fields must have the same Rabin fingerprint, regardless of their order in the schema.

See hazelcast/hazelcast-nodejs-client#1576 for the Node.js Client issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    to-jiraUse to create a placeholder Jira issue in Jira APIs Project

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions