Skip to content

Lease stealing code exception #100

Open
@dengblog

Description

@dengblog

1639131792488_5DE9572C-4145-4d34-9284-D13083D144FD

During the lease theft test, I found that the theft was abnormal. Originally, a work could only steal one lease at a time, but there was a problem of stealing multiple leases here. By checking the code, I found some problems in the following codes

demo

In the code, in order to ensure that only one lease is stolen at a time, if there is a claimrequest, it will not be stolen again. The problem is that there is no assignment to claimrequest, and the value of claimrequest is not stored in the local shard. The judgment is always false.

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