[ 
https://issues.apache.org/jira/browse/IGNITE-11129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrey Gura updated IGNITE-11129:
---------------------------------
    Description: 
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}

  was:
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}


> 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
>            Priority: Major
>
> 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)

Reply via email to