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

MemoryNodeStore issues duplicate checkpoint

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0.18, 1.2.4, 1.3.4, 1.4
    • core
    • None

    Description

      MemoryNodeStore can possibly issue duplicate checkpoint. In below logic if checkpoints has one entry then on subsequent call to issue checkpoint the name would be set to checkpoint1 only. This causes AsyncIndexUpdate test to fail in some cases

          @Override
          public String checkpoint(long lifetime, @Nonnull Map<String, String> properties) {
              checkArgument(lifetime > 0);
              checkNotNull(properties);
              String checkpoint = "checkpoint" + checkpoints.size();
              checkpoints.put(checkpoint, new Checkpoint(getRoot(), properties));
              return checkpoint;
          }
      

      Attachments

        1. OAK-3164.patch
          5 kB
          Chetan Mehrotra

        Issue Links

          Activity

            People

              chetanm Chetan Mehrotra
              chetanm Chetan Mehrotra
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: