Forum Stats

  • 3,874,662 Users
  • 2,266,761 Discussions
  • 7,911,933 Comments

Discussions

ReplicatedEnvironment recovery can fail with NumberFormatException

User_BZQZ5
User_BZQZ5 Member Posts: 16 Blue Ribbon
edited Feb 8, 2022 11:17AM in Berkeley DB Java Edition

Hi BDB JE Experts,


We are using BDB JE replicated environments of version 7.4.5. One of the replicas failed to start with an integer overflow error as below:

Caused by: java.lang.NumberFormatException: For input string: "12370247684"

    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

    at java.lang.Integer.parseInt(Integer.java:583)

    at java.lang.Integer.parseInt(Integer.java:615)

    at com.sleepycat.je.rep.InsufficientLogException.<init>(InsufficientLogException.java:218)

    at com.sleepycat.je.rep.impl.RepImpl.handleRestoreRequired(RepImpl.java:2298)

    at com.sleepycat.je.recovery.RecoveryManager.findEndOfLog(RecoveryManager.java:543)

    at com.sleepycat.je.recovery.RecoveryManager.recover(RecoveryManager.java:339)

    at com.sleepycat.je.dbi.EnvironmentImpl.finishInit(EnvironmentImpl.java:841)

    at com.sleepycat.je.dbi.DbEnvPool.getEnvironment(DbEnvPool.java:222)

    at com.sleepycat.je.Environment.makeEnvironmentImpl(Environment.java:267)

    at com.sleepycat.je.Environment.<init>(Environment.java:252)

    at com.sleepycat.je.rep.ReplicatedEnvironment.<init>(ReplicatedEnvironment.java:607)

    at com.sleepycat.je.rep.ReplicatedEnvironment.<init>(ReplicatedEnvironment.java:466)

    at com.sleepycat.je.rep.ReplicatedEnvironment.<init>(ReplicatedEnvironment.java:540)


I am not sure whether the same issue is applicable to the latest BDB JE version 7.5.11. I just wanted to report this defect.


Kind Regards,

Alex

Best Answer

Answers