ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yaroslav Molochkov (Jira)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-13949) Insufficient synchronisation in PartitionUpdateCounterTrackingImpl
Date Fri, 01 Jan 2021 13:32:00 GMT
Yaroslav Molochkov created IGNITE-13949:

             Summary: Insufficient synchronisation in PartitionUpdateCounterTrackingImpl
                 Key: IGNITE-13949
                 URL: https://issues.apache.org/jira/browse/IGNITE-13949
             Project: Ignite
          Issue Type: Bug
    Affects Versions: 2.9.1
            Reporter: Yaroslav Molochkov
            Assignee: Yaroslav Molochkov

Right now org.apache.ignite.internal.processors.cache.PartitionUpdateCounterTrackingImpl
has 2 AtomicLong variables, cntr and reserveCntr, but there are some methods, that are unsynchronised,
e.g. next:
@Override public long next() {
    long next = cntr.incrementAndGet();


    return next;
} {code}

Even though both are AtomicLong, operation like "get then set" is a composite one and should
be atomic in the context of an object that holds these variables.

This message was sent by Atlassian Jira

View raw message