Derby
  1. Derby
  2. DERBY-3347

ERROR XSDB3: Container information cannot change once written

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 10.3.1.4, 10.3.2.1
    • Fix Version/s: 10.3.3.0, 10.4.1.3, 10.5.1.1
    • Component/s: Store
    • Labels:
      None
    • Environment:
      Windows 2003 Server
      Sun Java 1.6.0_03
    • Issue & fix info:
      Release Note Needed
    • Bug behavior facts:
      Regression

      Description

      We are using derby as an embedded DB for our data collection server. During an endurance test when we do around 270 inserts and 9 updates per second, for about a week, I ocasionally see the error below in the deby log (and nothing else beside this).

      This is a vanilla installation, we run derby embedded with no extra configuration. I can confirm that there is no memory problem, the heap usage seems constant over time.

      Can somebody provide some more information regarding the effects of this error? By looking at the stacktrace, it looks like a checkpoint operation is aborted due to some inconsistency in the internal data structure. If the error does not repeat immediately, does it mean that the next checkpoint is successful and there is no data loss?

      I can't provide a test case for that, the error happens after about 1-2 day of running our software. I will rerun the test with the debug jars to capture the line numbers in the stacktrace. Also, I'm starting another test with 10.2.2.0, to see if this problem was introduced in the latest version.

      There are another two bugs referring to this error, (https://issues.apache.org/jira/browse/DERBY-2284 and https://issues.apache.org/jira/browse/DERBY-3087) but they seem to happen in response to some client action. This use case is a bit different, the client keeps inserting and updating records for several days in a steady manner and at some point the error pops up.

      And lastly, here is the exception:

      Checkpoint Daemon caught standard exception

      ------------ BEGIN ERROR STACK -------------

      ERROR XSDB3: Container information cannot change once written: was 0, now 80
      at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
      at org.apache.derby.impl.store.raw.data.AllocPage.WriteContainerInfo(Unknown Source)
      at org.apache.derby.impl.store.raw.data.FileContainer.writeHeader(Unknown Source)
      at org.apache.derby.impl.store.raw.data.RAFContainer.writeRAFHeader(Unknown Source)
      at org.apache.derby.impl.store.raw.data.RAFContainer.clean(Unknown Source)
      at org.apache.derby.impl.services.cache.CachedItem.clean(Unknown Source)
      at org.apache.derby.impl.services.cache.Clock.cleanCache(Unknown Source)
      at org.apache.derby.impl.services.cache.Clock.cleanAll(Unknown Source)
      at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.checkpoint(Unknown Source)
      at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source)
      at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source)
      at org.apache.derby.impl.store.raw.RawStore.checkpoint(Unknown Source)
      at org.apache.derby.impl.store.raw.log.LogToFile.performWork(Unknown Source)
      at org.apache.derby.impl.services.daemon.BasicDaemon.serviceClient(Unknown Source)
      at org.apache.derby.impl.services.daemon.BasicDaemon.work(Unknown Source)
      at org.apache.derby.impl.services.daemon.BasicDaemon.run(Unknown Source)
      at java.lang.Thread.run(Thread.java:619)

      ------------ END ERROR STACK -------------

      1. d3347-1a.diff
        18 kB
        Knut Anders Hatlen
      2. d3347-1a.stat
        0.3 kB
        Knut Anders Hatlen
      3. d3347-1b.diff
        18 kB
        Knut Anders Hatlen
      4. d3347-2a.diff
        3 kB
        Knut Anders Hatlen
      5. d3347-preview.diff
        14 kB
        Knut Anders Hatlen
      6. d3347-preview.diff
        14 kB
        Knut Anders Hatlen
      7. FileOffset.java
        2 kB
        Knut Anders Hatlen
      8. MiniStress.zip
        3 kB
        Kathey Marsden
      9. releaseNote.html
        5 kB
        Knut Anders Hatlen

        Issue Links

          Activity

          Gavin made changes -
          Workflow jira [ 12421879 ] Default workflow, editable Closed status [ 12801599 ]
          Kathey Marsden made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Knut Anders Hatlen made changes -
          Link This issue is duplicated by DERBY-2284 [ DERBY-2284 ]
          Dag H. Wanvik made changes -
          Bug behavior facts [Regression]
          Myrna van Lunteren made changes -
          Fix Version/s 10.5.1.1 [ 12313771 ]
          Fix Version/s 10.5.0.0 [ 12313010 ]
          Knut Anders Hatlen made changes -
          Link This issue is duplicated by DERBY-2677 [ DERBY-2677 ]
          Knut Anders Hatlen made changes -
          Link This issue is duplicated by DERBY-3344 [ DERBY-3344 ]
          Knut Anders Hatlen made changes -
          Link This issue is duplicated by DERBY-3411 [ DERBY-3411 ]
          Knut Anders Hatlen made changes -
          Link This issue is duplicated by DERBY-3143 [ DERBY-3143 ]
          Knut Anders Hatlen made changes -
          Link This issue is duplicated by DERBY-2589 [ DERBY-2589 ]
          Knut Anders Hatlen made changes -
          Link This issue is duplicated by DERBY-3052 [ DERBY-3052 ]
          Knut Anders Hatlen made changes -
          Derby Info [Regression] [Regression, Release Note Needed]
          Knut Anders Hatlen made changes -
          Attachment releaseNote.html [ 12381104 ]
          Knut Anders Hatlen made changes -
          Link This issue is related to DERBY-3606 [ DERBY-3606 ]
          Knut Anders Hatlen made changes -
          Link This issue is related to DERBY-3607 [ DERBY-3607 ]
          Knut Anders Hatlen made changes -
          Link This issue is related to DERBY-3611 [ DERBY-3611 ]
          Knut Anders Hatlen made changes -
          Link This issue is related to DERBY-2677 [ DERBY-2677 ]
          Knut Anders Hatlen made changes -
          Link This issue is related to DERBY-3087 [ DERBY-3087 ]
          Knut Anders Hatlen made changes -
          Attachment FileOffset.java [ 12380254 ]
          Knut Anders Hatlen made changes -
          Fix Version/s 10.3.2.2 [ 12312885 ]
          Knut Anders Hatlen made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          Kathey Marsden made changes -
          Attachment MiniStress.java [ 12379971 ]
          Kathey Marsden made changes -
          Attachment WorkerThread.java [ 12379972 ]
          Kathey Marsden made changes -
          Attachment MiniStress.zip [ 12380004 ]
          Kathey Marsden made changes -
          Attachment MiniStress.java [ 12379971 ]
          Attachment WorkerThread.java [ 12379972 ]
          Dyre Tjeldvoll made changes -
          Fix Version/s 10.4.1.2 [ 12313095 ]
          Knut Anders Hatlen made changes -
          Derby Info [Regression, Patch Available] [Regression]
          Fix Version/s 10.5.0.0 [ 12313010 ]
          Knut Anders Hatlen made changes -
          Attachment d3347-1b.diff [ 12379908 ]
          Knut Anders Hatlen made changes -
          Attachment d3347-2a.diff [ 12379836 ]
          Knut Anders Hatlen made changes -
          Derby Info [Regression] [Patch Available, Regression]
          Knut Anders Hatlen made changes -
          Attachment d3347-1a.stat [ 12379828 ]
          Attachment d3347-1a.diff [ 12379827 ]
          Knut Anders Hatlen made changes -
          Attachment d3347-preview.diff [ 12379729 ]
          Knut Anders Hatlen made changes -
          Attachment d3347-preview.diff [ 12379664 ]
          Knut Anders Hatlen made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Knut Anders Hatlen made changes -
          Assignee Knut Anders Hatlen [ knutanders ]
          Bogdan Calmac made changes -
          Comment [ Sure, I can try it. But do you think the comment above is valid? To me, the stacktrace does not look similar to DERBY-3362. ]
          Knut Anders Hatlen made changes -
          Field Original Value New Value
          Derby Info [Regression]
          Affects Version/s 10.3.1.4 [ 12312590 ]
          Bogdan Calmac created issue -

            People

            • Assignee:
              Knut Anders Hatlen
              Reporter:
              Bogdan Calmac
            • Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development