Ivan Bessonov created IGNITE-22386:
--------------------------------------

             Summary: Many usages of wrong revision serialization in 
metastorage commands
                 Key: IGNITE-22386
                 URL: https://issues.apache.org/jira/browse/IGNITE-22386
             Project: Ignite
          Issue Type: Bug
            Reporter: Ivan Bessonov


 
{code:java}
byte[] revisionBytes = ByteUtils.longToBytes(revision);
Iif iif = iif( 
notExists(partChangeTriggerKey).or(value(partChangeTriggerKey).lt(revisionBytes)),
{code}
Code above has a bug - "longToBytes" is not a suitable serialization format for 
preserving natural comparison order used in "lt". We must fix it, because it 
leads to occasional false-positive and false-negative condition evaluation

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to