Uploaded image for project: 'Wave'
  1. Wave
  2. WAVE-321

Exception during transforming deltas on start causes server to fail to start

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • None
    • Server
    • None
    • Debian sid.

    Description

      One of my waves has a corrupt delta (somehow) which is preventing the server from starting at all due to an exception not being handled.
      The stacktrace is:

      Exception in thread "main" java.lang.NegativeArraySizeException
      at org.waveprotocol.box.server.persistence.file.FileDeltaCollection.readTransformedWaveletDelta(FileDeltaCollection.java:510)
      at org.waveprotocol.box.server.persistence.file.FileDeltaCollection.readTransformedDeltaFromRecord(FileDeltaCollection.java:435)
      at org.waveprotocol.box.server.persistence.file.FileDeltaCollection.access$100(FileDeltaCollection.java:64)
      at org.waveprotocol.box.server.persistence.file.FileDeltaCollection$1$1.hasNext(FileDeltaCollection.java:308)
      at org.waveprotocol.box.server.persistence.file.DeltaIndex.rebuildIndexFromDeltas(DeltaIndex.java:100)
      at org.waveprotocol.box.server.persistence.file.DeltaIndex.openForCollection(DeltaIndex.java:75)
      at org.waveprotocol.box.server.persistence.file.FileDeltaCollection.open(FileDeltaCollection.java:128)
      at org.waveprotocol.box.server.persistence.file.FileDeltaStore.open(FileDeltaStore.java:69)
      at org.waveprotocol.box.server.persistence.file.FileDeltaStore.lookup(FileDeltaStore.java:101)
      at org.waveprotocol.box.server.persistence.file.FileDeltaStore$3.fetchNext(FileDeltaStore.java:149)
      at org.waveprotocol.box.server.persistence.file.FileDeltaStore$3.hasNext(FileDeltaStore.java:161)
      at org.waveprotocol.box.server.waveserver.WaveMap.loadAllWavelets(WaveMap.java:682)
      at org.waveprotocol.box.server.waveserver.WaveServerImpl.initialize(WaveServerImpl.java:283)
      at org.waveprotocol.box.server.ServerMain.initializeServer(ServerMain.java:210)
      at org.waveprotocol.box.server.ServerMain.run(ServerMain.java:174)
      at org.waveprotocol.box.server.ServerMain.main(ServerMain.java:127)

      I am now working on a patch to enable the server to boot, simply ignoring the corrupt delta.

      Attachments

        Activity

          People

            alown Ali Lown
            alown Ali Lown
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified