You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Andrey Gura (JIRA)" <ji...@apache.org> on 2019/01/29 15:41:00 UTC
[jira] [Created] (IGNITE-11129) Incorrect size calculation for
SWITCH_SEGMENT_RECORD for TDE
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)