Integer Overflow Error while performing backup for database exceeding 1TB in Neo4j 5.xMay 27, 2024Knowledge
Article DetailsDetailsHelp DetailsIssue Backup process fails when performing backup for database size bigger than 1TB with integer overflow error Complete Error Stack Trace 2023-03-04 02:01:01.209+0000 ERROR [c.n.b.v.OnlineBackupExecutor] Error performing backup for database neo4j com.neo4j.backup.v2.BackupExecutionException: Backup of database `neo4j` failed. Caused by: java.lang.ArithmeticException: integer overflow at java.lang.Math.addExact(Math.java:883) ~[?:?] at org.apache.commons.compress.utils.ExactMath.add(ExactMath.java:43) ~[commons-compress-1.22.jar:1.22] at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.closeArchiveEntry(TarArchiveOutputStream.java:439) ~[commons-compress-1.22.jar:1.22] Cause This is due to a critical error in Apache Commons jar v1.22. Neo4j-admin tool in Neo4j version < 5.5.0 uses this jar file and thus database backup and database dump command fails with the above mentioned error. Fix The issue was fixed with Apache Commons jar v1.23 and this jar has been used in Neo4j v5.7.0+. Thus an upgrade to Neo4j v5.7.0 or above will help in resolving the backup issue for database with size greater than 1 TB. InformationTitleInteger Overflow Error while performing backup for database exceeding 1TB in Neo4j 5.xArticle Created Date3/15/2024, 10:54 PMURL Name19523698785043-Integer-Overflow-Error-while-performing-backup-for-database-exceeding-1TB-in-Neo4j-5-xLast Modified Date5/27/2024, 7:06 AM