Skip to content

[Bug] PD PartitionCache lockGraph method opposite to the expected behavior. #2639

@haohao0103

Description

@haohao0103

Bug Type (问题类型)

logic (逻辑设计问题)

Before submit

  • 我已经确认现有的 IssuesFAQ 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)

Environment (环境信息)

  • Server Version: 1.5.0 (Apache Release Version)
  • Backend: HStore

Expected & Actual behavior (期望与实际表现)

PartitionCache->lockGraph()

while (lock.compareAndSet(false, true)) {
            Thread.onSpinWait();
        }

the while condition (lock. compareAndSet (false, true)) will enter the loop when compactAndSet succeeds, which is opposite to the expected behavior.

Vertex/Edge example (问题点 / 边数据举例)

No response

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions