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

DocumentStoreStatsIT.update fails when RDB's append mode is disabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.13, 1.6.0
    • 1.7.0, 1.6.2, 1.4.16, 1.8.0
    • rdbmk
    • None

    Description

      When run with -Dorg.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.NOAPPEND=true (see OAK-4389):

      update[RDBFixture: RDB-Postgres](org.apache.jackrabbit.oak.plugins.document.DocumentStoreStatsIT)  Time elapsed: 0.008 sec  <<< FAILURE!
      Wanted but not invoked:
      documentStoreStatsCollector.doneUpdate(
          <any>,
          nodes,
          2
      );
      -> at org.apache.jackrabbit.oak.plugins.document.DocumentStoreStatsIT.update(DocumentStoreStatsIT.java:128)
      
      However, there were other interactions with this mock:
      documentStoreStatsCollector.doneCreate(
          1747821,
          nodes,
          [update[RDBFixture: RDB-Postgres]],
          true
      );
      -> at org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.internalCreate(RDBDocumentStore.java:1182)
      
      documentStoreStatsCollector.doneFindUncached(
          845900,
          nodes,
          "update[RDBFixture: RDB-Postgres]-478ebbb3-cb70-409d-af13-f1b2c11c4103",
          false,
          false
      );
      -> at org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.readDocumentUncached(RDBDocumentStore.java:1484)
      
      documentStoreStatsCollector.doneFindCached(
          nodes,
          "update[RDBFixture: RDB-Postgres]"
      );
      -> at org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.readDocumentCached(RDBDocumentStore.java:1093)
      
      documentStoreStatsCollector.doneFindAndModify(
          1521593,
          nodes,
          "update[RDBFixture: RDB-Postgres]",
          false,
          true,
          -1
      );
      -> at org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.internalUpdate(RDBDocumentStore.java:1299)
      
      

      Attachments

        1. OAK-4390.diff
          0.8 kB
          Julian Reschke

        Activity

          People

            reschke Julian Reschke
            reschke Julian Reschke
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: