Skip to content

Commit 89d4807

Browse files
committed
JAMES-4142 Upgrade instructions for Cassandra 5 upgrade
1 parent bdc1efe commit 89d4807

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

upgrade-instructions.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,32 @@ Change list:
3737
- [JAMES-1409 Change JPARecipientRewriteTable to store separate record per target address](#james-1409-change-jparecipientrewritetable-to-store-separate-record-per-target-address)
3838
- [JAMES-4118 Cleanup message previews](#james-4118-cleanup-message-previews)
3939
- [JAMES-4128 Breaking Mailet API changes](#james-4128-breaking-mailet-api-changes)
40+
- [JAMES-4142 Cassandra upgrade to version 5](#james-4142-cassandra-upgrade-to-version-5)
41+
42+
### JAMES-4142 Cassandra upgrade to version 5
43+
44+
Date: 01/08/2025
45+
46+
JIRA: https://issues.apache.org/jira/browse/JAMES-4142
47+
48+
A breaking change was introduced in Cassandra 5.0 regarding a compression option that changed name from `chunk_length_kb`
49+
to `chunk_length_in_kb`, which creates issues with the dedicated java driver for Cassandra.
50+
51+
As such, the compression has been dropped on the following tables at creation:
52+
53+
- CassandraBlobCacheDataDefinition: `blob_cache` table.
54+
- CassandraMailboxDataDefinition: `mailbox` table.
55+
- CassandraMessageDataDefinition: `imapUidTable` table.
56+
- CassandraMessageFastViewProjectionDataDefinition: `message_fast_view_projection` table.
57+
58+
If tables exist already and upgrade is done from Cassandra 4 to 5, nothing to do, the change in compression should be migrated.
59+
60+
If you need are on a new setup and need compression on those tables, you can do this manually for each table via cqlsh with Cassandra,
61+
like the following command:
62+
63+
```
64+
ALTER TABLE james_keyspace.mailbox WITH compression = {'class': 'LZ4Compressor', 'chunk_length_in_kb': '8', 'crc_check_chance': '1.0'};
65+
```
4066

4167
### JAMES-4128 Breaking Mailet API changes
4268
Date: 02/04/2025

0 commit comments

Comments
 (0)