9 Replies Latest reply: Apr 27, 2011 3:10 AM by 849363 RSS

    com.sleepycat.je.EnvironmentFailureException: UNEXPECTED_STATE_FATAL


      we are using a BDB instance as a task queue. When the process is being killed while heavily used (means writing new tasks to and reading next from it) it will not start up again, but provide this error:

      Caused by: com.sleepycat.je.EnvironmentFailureException: Environment invalid because of previous exception:
      (JE 4.0.103) master(-1):/var/data/bdb/store recoveryTracker
      should overlap or follow on disk last VLSN of 52,678 recoveryFirst= 52,680 UNEXPECTED_STATE_FATAL: Unexpected
      internal stat e, unable to continue. Environment is invalid and must be closed.
      at com.sleepycat.je.EnvironmentFailureException.unexpectedState(EnvironmentFailureException.java:391)
      at com.sleepycat.je.rep.vlsn.VLSNIndex.merge(VLSNIndex.java:1230)
      at com.sleepycat.je.rep.vlsn.VLSNIndex.init(VLSNIndex.java:1141)
      at com.sleepycat.je.rep.vlsn.VLSNIndex.<init>(VLSNIndex.java:367)
      at com.sleepycat.je.rep.impl.RepImpl.preRecoveryCheckpointInit(RepImpl.java:373)
      at com.sleepycat.je.recovery.RecoveryManager.recover(RecoveryManager.java:238)
      at com.sleepycat.je.dbi.EnvironmentImpl.finishInit(EnvironmentImpl.java:534)
      ... 35 more

      The error is always the same: recoveryFirst is 2 ahead of VLSN, although it should be the same or smaller.

      Any idea?

      We are using replica settings but only one node so far.

      Any idea what can be the cause, or how to get the BDB open anyway?

      Edited by: 846360 on 22.03.2011 06:25