Skip to content

Collection Properties cannot unmarshal field .lastValue of type int64 #400

@joosep-wm

Description

@joosep-wm

When calling Properties(ctx context.Context) (CollectionProperties, error) I get the error with the cause:

Cause: json: cannot unmarshal number 9926818832808110302 into Go struct field .lastValue of type int64

Seems the issue comes from the fact that last value is a 20 digit number, but int64 holds only 19 digits. Using uint64 instead would solve the issue.
This happens only when the "last value key" is so large number.

Using version 1.3.2.
Commit hash: b74bb42
go version go1.18.2 darwin/amd64
Startup mode: daemon

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