Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-6678

Syncing big blobs fails since StandbyServer sends persisted head

    XMLWordPrintableJSON

    Details

      Description

      With changes for OAK-6653 in place, ExternalPrivateStoreIT#testSyncBigBlog and sometimes ExternalSharedStoreIT#testSyncBigBlob are failing on CI:

      org.apache.jackrabbit.oak.segment.standby.ExternalSharedStoreIT
      testSyncBigBlob(org.apache.jackrabbit.oak.segment.standby.ExternalSharedStoreIT)  Time elapsed: 96.82 sec  <<< FAILURE!
      java.lang.AssertionError: expected:<{ root = { ... } }> but was:<{ root : { } }>
      ...
      testSyncBigBlob(org.apache.jackrabbit.oak.segment.standby.ExternalPrivateStoreIT)  Time elapsed: 95.254 sec  <<< FAILURE!
      java.lang.AssertionError: expected:<{ root = { ... } }> but was:<{ root : { } }>
      

      Partial stacktrace:

      14:09:08.355 DEBUG [main] StandbyServer.java:242            Binding was successful
      14:09:08.358 DEBUG [standby-1] GetHeadRequestEncoder.java:33 Sending request from client Bar for current head
      14:09:08.359 DEBUG [primary-1] ClientFilterHandler.java:53  Client /127.0.0.1:52988 is allowed
      14:09:08.360 DEBUG [primary-1] RequestDecoder.java:42       Parsed 'get head' message
      14:09:08.360 DEBUG [primary-1] CommunicationObserver.java:79 Message 'get head' received from client Bar
      14:09:08.362 DEBUG [primary-1] GetHeadRequestHandler.java:43 Reading head for client Bar
      14:09:08.363 WARN  [primary-1] ExceptionHandler.java:31     Exception caught on the server
      java.lang.NullPointerException: null
      	at org.apache.jackrabbit.oak.segment.standby.server.DefaultStandbyHeadReader.readHeadRecordId(DefaultStandbyHeadReader.java:32) ~[oak-segment-tar-1.8-SNAPSHOT.jar:1.8-SNAPSHOT]
      	at org.apache.jackrabbit.oak.segment.standby.server.GetHeadRequestHandler.channelRead0(GetHeadRequestHandler.java:45) ~[oak-segment-tar-1.8-SNAPSHOT.jar:1.8-SNAPSHOT]
      

        Attachments

        1. OAK-6678.patch
          10 kB
          Andrei Dulceanu
        2. OAK-6678-02.patch
          27 kB
          Andrei Dulceanu
        3. OAK-6678-03.patch
          17 kB
          Andrei Dulceanu

          Activity

            People

            • Assignee:
              adulceanu Andrei Dulceanu
              Reporter:
              adulceanu Andrei Dulceanu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: