ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Gura (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-11129) Incorrect size calculation for SWITCH_SEGMENT_RECORD for TDE
Date Tue, 29 Jan 2019 15:41:00 GMT
Andrey Gura created IGNITE-11129:
------------------------------------

             Summary: Incorrect size calculation for SWITCH_SEGMENT_RECORD for TDE
                 Key: IGNITE-11129
                 URL: https://issues.apache.org/jira/browse/IGNITE-11129
             Project: Ignite
          Issue Type: Bug
            Reporter: Andrey Gura


Size of {{SWITCH_SEGMENT_RECORD}} will be invalid in case of encryption switched on. Size
for this record type should be constant.
See {{org.apache.ignite.internal.processors.cache.persistence.wal.serializer.RecordDataV1Serializer#size}}:

{code:java}
    @Override public int size(WALRecord record) throws IgniteCheckedException {
        int clSz = plainSize(record);

        if (needEncryption(record))
            return encSpi.encryptedSize(clSz) + 4 /* groupId */ + 4 /* data size */ + REC_TYPE_SIZE;

        return clSz;
    }
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message