You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by da...@apache.org on 2025/08/25 16:35:09 UTC

(jackrabbit-oak) branch OAK-11875 updated (e9ebd66c0a -> 25bd011669)

This is an automated email from the ASF dual-hosted git repository.

daim pushed a change to branch OAK-11875
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git


    omit e9ebd66c0a OAK-11875: Empty properties/Split documents issue
     add 949f2c5e4a OAK-11858: Remove remains of Oak bloom filter in oak-run-commons (#2449)
     add dc17407334 OAK-11859: update Tomcat dependency to 9.0.108 (#2451)
     add 854d6823e2 OAK-11851 - Log performance metrics of statistical facets and simplify logic (#2442)
     add 6bd93ba2a8 OAK-11832 : replaced Guava's TreeTraversal with OAK Commons - fix Import in testcase
     add 04f11773d7 OAK-11224: remove guava dependencies from POMs - oak-store-composite
     add 73484b641e OAK-11846 oak-segment-azure - recovery will recover from .bak (#2452)
     add 2c702adfcb OAK-11833 : replaced Guava's Traverser with OAK commons (#2447)
     add a4db47ffbc OAK-11866 Support for datastore files without length (#2458)
     add d9c08bb11f OAK-11836 : removed Guava's AbstractIterator (#2456)
     add cb33ddc81a OAK-11857 - Improve path handling in oak-segment-azure
     add 30151cc2c1 Merge pull request #2448 from apache/jsedding/OAK-11857-improve-azure-path-handling
     add 05c70f91fd OAK-11862: missing facets for multi-valued fields (#2455)
     add 753480ad31 OAK-11864 : added new ALL_ORPHANS FullGC mode for deleting only ALL_ORPHANS node i.e. without any Empty Props (#2459)
     add a89a2eea62 OAK-9586: SysViewImportHandler does not support expanded names in sv:name attributes
     add 7b3d64ffef OAK-11861 - segment store initialization should run in parallel (#2454)
     add b8ff5ea808  OAK-11656: Remove usage of Guava Suppliers.memoize  (#2457)
     add a356a9bfb0 OAK-11656: Remove usage of Guava Suppliers.memoize - move commons.function to commons.internal.function (#2463)
     add 26c56e5aa4 OAK-11832 : moved Traverser to internal.graph package and marked as i… (#2462)
     add 8e4aaa317e OAK-11869 : removed usage of Guava's hashing with apache commons-codec (#2461)
     add eb1392c8ba OAK-11870: Allow passing fullGCGeneration parameter to RevisionsCommand (#2465)
     add eb98e1a11f OAK-11300: update package dependencies wrt primitives (#2468)
     add 1e66b81807 OAK-11878 ClusterNodeStoreLock LOCK_TIMEOUT is too large (#2469)
     add f5bb44bbe7 OAK-11875: Introduced test case for empty properties/Split documents issue (#2470)
     new 25bd011669 OAK-11875 : added unit cases for EmptyProps and split document issue

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (e9ebd66c0a)
            \
             N -- N -- N   refs/heads/OAK-11875 (25bd011669)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../azure/blobstorage/AzureBlobStoreBackend.java   |   2 +-
 .../jackrabbit/oak/blob/cloud/s3/S3Backend.java    |   2 +-
 .../blob/migration/DepthFirstNodeIterator.java     |   2 +-
 .../jackrabbit/oak/spi/blob/MemoryBlobStore.java   |   2 +-
 oak-commons/pom.xml                                |   9 +
 .../oak/commons/collections/AbstractIterator.java  |  95 ++++++++
 .../oak/commons/concurrent/package-info.java       |   2 +-
 .../oak/commons/forkjoin/ForkJoinUtils.java        | 115 +++++++++
 .../oak/commons/forkjoin}/package-info.java        |   4 +-
 .../oak/commons/internal/function/Suppliers.java   |  61 +++++
 .../{log => internal/function}/package-info.java   |  10 +-
 .../commons/{ => internal/graph}/Traverser.java    | 116 ++++++++-
 .../oak/commons/internal/graph}/package-info.java  |   4 +-
 .../oak/commons/io/BurnOnCloseFileIterator.java    |   2 +-
 .../oak/commons/io/FileLineDifferenceIterator.java |   2 +-
 .../oak/commons/io/FileTreeTraverser.java          |  16 +-
 .../jackrabbit/oak/commons/package-info.java       |   2 +-
 .../commons/collections/AbstractIteratorTest.java  |  69 ++++++
 .../oak/commons/forkjoin/ForkJoinUtilsTest.java    | 149 ++++++++++++
 .../commons/internal/function/SuppliersTest.java   | 107 +++++++++
 .../{ => internal/graph}/TraverserTest.java        | 221 ++++++++++++++++-
 .../index/importer/ClusterNodeStoreLock.java       |  10 +-
 .../index/property/PropertyIndexEditor.java        |   2 +-
 .../index/property/jmx/PropertyIndexStats.java     |   2 +-
 .../plugins/index/reference/ReferenceEditor.java   |   3 +-
 .../org/apache/jackrabbit/oak/query/QueryImpl.java |   2 +-
 .../jackrabbit/oak/query/UnionQueryImpl.java       |   2 +-
 .../strategy/ContentMirrorStoreStrategyTest.java   |   2 +-
 .../strategy/UniqueEntryStoreStrategyTest.java     |   2 +-
 oak-doc/src/site/markdown/differences.md           |   2 -
 oak-examples/webapp/pom.xml                        |   2 +-
 .../oak/jcr/xml/SysViewImportHandler.java          |  28 ++-
 .../apache/jackrabbit/oak/jcr/xml/ImportTest.java  | 241 +++++++++++++++++++
 .../oak/plugins/index/lucene/LuceneIndex.java      |   2 +-
 .../plugins/index/lucene/LuceneIndexMBeanImpl.java |   2 +-
 .../plugins/index/lucene/LucenePropertyIndex.java  |   2 +-
 .../index/lucene/directory/IndexRootDirectory.java |   5 +-
 .../lucene/property/HybridPropertyIndexInfo.java   |   2 +-
 .../StatisticalSortedSetDocValuesFacetCounts.java  |   2 +-
 .../plugins/index/lucene/util/TapeSampling.java    |   2 +-
 .../index/lucene/property/RecursiveDeleteTest.java |   2 +-
 .../index/lucene/util/TapeSamplingTest.java        |   2 +-
 oak-parent/pom.xml                                 |   4 +-
 .../oak/run/osgi/RunnableJobTracker.java           |   5 +-
 .../jackrabbit/oak/run/osgi/SpringBootSupport.java |   2 +-
 .../document/flatfile/ChildNodeStateProvider.java  |   2 +-
 .../indexer/document/flatfile/FlatFileStore.java   |   2 +-
 .../document/flatfile/FlatFileStoreIterator.java   |   2 +-
 .../flatfile/analysis/modules/BinaryId.java        |  10 +-
 .../flatfile/analysis/utils/BloomFilter.java       | 162 -------------
 .../document/flatfile/analysis/utils/Hash.java     |  73 ------
 .../flatfile/analysis/utils/HyperLogLog.java       |  95 --------
 .../flatfile/analysis/modules/BinarySizeTest.java  |  10 +
 .../flatfile/analysis/utils/BloomFilterTest.java   | 126 ----------
 .../flatfile/analysis/utils/HyperLogLogTest.java   | 188 ---------------
 .../tika/NodeStoreBinaryResourceProvider.java      |   2 +-
 .../jackrabbit/oak/run/RevisionsCommand.java       |   9 +
 .../oak/plugins/document/RevisionsCommandTest.java |  19 ++
 .../facets/ElasticSecureFacetAsyncProvider.java    |  55 +++--
 .../ElasticStatisticalFacetAsyncProvider.java      | 186 ++++++++++-----
 .../plugins/index/search/util/TapeSampling.java    |   2 +-
 .../oak/plugins/index/FacetCommonTest.java         |  91 +++++--
 .../index/search/util/TapeSamplingTest.java        |   2 +-
 .../oak/segment/azure/AzureArchiveManager.java     |  31 ++-
 .../segment/azure/AzureSegmentArchiveReader.java   |  12 +-
 .../segment/azure/AzureSegmentArchiveWriter.java   |  10 +-
 .../oak/segment/azure/AzureUtilities.java          |  34 ++-
 .../segment/azure/v8/AzureArchiveManagerV8.java    |   9 +-
 .../oak/segment/azure/v8/AzurePersistenceV8.java   |   3 +-
 .../oak/segment/azure/v8/AzureUtilitiesV8.java     |   6 +-
 .../AzureArchiveManagerIgnoreSamePrefixTest.java   | 211 ++++++++++++++++
 .../oak/segment/ImmutableRecordNumbers.java        |   2 +-
 .../oak/segment/MutableRecordNumbers.java          |   2 +-
 .../jackrabbit/oak/segment/SegmentNodeState.java   |   2 +-
 .../jackrabbit/oak/segment/SegmentReferences.java  |   2 +-
 .../jackrabbit/oak/segment/WriterCacheManager.java |   2 +-
 .../jackrabbit/oak/segment/file/JournalReader.java |   2 +-
 .../jackrabbit/oak/segment/file/tar/TarFiles.java  |  42 +++-
 .../segment/standby/codec/ChunkedBlobStream.java   |   6 +-
 .../standby/codec/GetSegmentResponseEncoder.java   |   6 +-
 .../oak/segment/standby/codec/HashUtils.java       |  56 +++++
 .../oak/segment/standby/codec/ResponseDecoder.java |  10 +-
 .../oak/segment/standby/StandbyTestUtils.java      |  12 +-
 .../oak/segment/standby/codec/HashUtilsTest.java   | 128 ++++++++++
 .../segment/standby/codec/ResponseDecoderTest.java |   2 +-
 oak-shaded-guava/pom.xml                           |   2 +-
 oak-store-composite/pom.xml                        |   5 -
 .../plugins/document/BlobReferenceIterator.java    |   2 +-
 .../oak/plugins/document/DocumentNodeState.java    |   2 +-
 .../plugins/document/DocumentNodeStoreBuilder.java |   4 +-
 .../oak/plugins/document/FullGCMode.java           |   6 +
 .../oak/plugins/document/JournalEntry.java         |   2 +-
 .../oak/plugins/document/NodeDocument.java         |   2 +-
 .../oak/plugins/document/PropertyHistory.java      |   2 +-
 .../oak/plugins/document/RevisionVector.java       |   2 +-
 .../oak/plugins/document/SplitOperations.java      |   3 +-
 .../plugins/document/VersionGarbageCollector.java  |   7 +-
 .../oak/plugins/document/mongo/MongoBlobStore.java |   2 +-
 .../mongo/MongoDocumentNodeStoreBuilderBase.java   |   2 +-
 .../oak/plugins/document/rdb/RDBBlobStore.java     |   2 +-
 .../document/rdb/RDBDocumentNodeStoreBuilder.java  |   2 +-
 .../plugins/document/rdb/RDBVersionGCSupport.java  |   2 +-
 .../oak/plugins/document/util/Utils.java           |   2 +-
 .../oak/plugins/document/BranchCommitGCTest.java   |  41 ++--
 .../oak/plugins/document/FullGCHelper.java         |   1 +
 .../oak/plugins/document/VersionGCTest.java        |  10 +
 .../document/VersionGarbageCollectorIT.java        | 264 +++++++++++++++++----
 107 files changed, 2315 insertions(+), 1000 deletions(-)
 create mode 100644 oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/collections/AbstractIterator.java
 create mode 100644 oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/forkjoin/ForkJoinUtils.java
 copy {oak-segment-azure/src/main/java/org/apache/jackrabbit/oak/segment/azure => oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/forkjoin}/package-info.java (93%)
 create mode 100644 oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/internal/function/Suppliers.java
 copy oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/{log => internal/function}/package-info.java (86%)
 rename oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/{ => internal/graph}/Traverser.java (59%)
 copy {oak-segment-remote/src/main/java/org/apache/jackrabbit/oak/segment/remote/queue => oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/internal/graph}/package-info.java (87%)
 create mode 100644 oak-commons/src/test/java/org/apache/jackrabbit/oak/commons/collections/AbstractIteratorTest.java
 create mode 100644 oak-commons/src/test/java/org/apache/jackrabbit/oak/commons/forkjoin/ForkJoinUtilsTest.java
 create mode 100644 oak-commons/src/test/java/org/apache/jackrabbit/oak/commons/internal/function/SuppliersTest.java
 rename oak-commons/src/test/java/org/apache/jackrabbit/oak/commons/{ => internal/graph}/TraverserTest.java (64%)
 delete mode 100644 oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/analysis/utils/BloomFilter.java
 delete mode 100644 oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/analysis/utils/Hash.java
 delete mode 100644 oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/analysis/utils/HyperLogLog.java
 delete mode 100644 oak-run-commons/src/test/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/analysis/utils/BloomFilterTest.java
 delete mode 100644 oak-run-commons/src/test/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/analysis/utils/HyperLogLogTest.java
 create mode 100644 oak-segment-azure/src/test/java/org/apache/jackrabbit/oak/segment/azure/AzureArchiveManagerIgnoreSamePrefixTest.java
 create mode 100644 oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/standby/codec/HashUtils.java
 create mode 100644 oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/standby/codec/HashUtilsTest.java


(jackrabbit-oak) 01/01: OAK-11875 : added unit cases for EmptyProps and split document issue

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

daim pushed a commit to branch OAK-11875
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git

commit 25bd011669bb98e8431536ba3731dbd72625c701
Author: rishabhdaim <ri...@gmail.com>
AuthorDate: Mon Aug 25 22:04:43 2025 +0530

    OAK-11875 : added unit cases for EmptyProps and split document issue
---
 .../document/VersionGarbageCollectorIT.java        | 204 ++++++++++++++++-----
 1 file changed, 160 insertions(+), 44 deletions(-)

diff --git a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/VersionGarbageCollectorIT.java b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/VersionGarbageCollectorIT.java
index 0228f99e9c..c8a004eca2 100644
--- a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/VersionGarbageCollectorIT.java
+++ b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/VersionGarbageCollectorIT.java
@@ -129,6 +129,7 @@ import org.apache.jackrabbit.oak.stats.Clock;
 import org.jetbrains.annotations.NotNull;
 import org.junit.After;
 import org.junit.AfterClass;
+import org.junit.Assert;
 import org.junit.Before;
 import org.junit.BeforeClass;
 import org.junit.Ignore;
@@ -4305,36 +4306,31 @@ public class VersionGarbageCollectorIT {
     }
 
     /**
-     * Test for the bug where FullGC EmptyProps mode incorrectly allows 
-     * checkpoint reads to return old values from split documents after 
+     * Test for the bug where FullGC EmptyProps mode incorrectly allows
+     * checkpoint reads to return old values from split documents after
      * properties are deleted by FullGC.
-     * 
+     * <p>
      * Reproduction scenario:
      * 1. Create document with split documents containing test property
-     * 2. Delete the property (set to null)  
+     * 2. Delete the property (set to null)
      * 3. Wait 24h, then FullGC removes the property
      * 4. Create checkpoint
      * 5. 1ms later, write same property again (newer than checkpoint)
      * 6. Read checkpoint -> should return null but incorrectly returns old value from split doc
      */
     @Test
-    @Ignore // OAK-11875
     public void testFullGCEmptyPropsSplitDocumentInconsistency() throws Exception {
+
         assumeTrue(fixture.hasSinglePersistence());
-        assumeTrue("Test only applicable for MongoDocumentStore", 
-                   fixture instanceof DocumentStoreFixture.MongoFixture);
-        assumeTrue("Test only applicable for EMPTY_PROPERTIES mode",
-                   isModeOneOf(FullGCMode.EMPTYPROPS, FullGCMode.GAP_ORPHANS_EMPTYPROPS, FullGCMode.ALL_ORPHANS_EMPTYPROPS));
-        
+        assumeTrue("Test only applicable for MongoDocumentStore", fixture instanceof DocumentStoreFixture.MongoFixture);
+        assumeTrue("Test only applicable for EMPTY_PROPERTIES mode", isModeOneOf(FullGCMode.EMPTYPROPS, FullGCMode.GAP_ORPHANS_EMPTYPROPS, FullGCMode.ALL_ORPHANS_EMPTYPROPS));
         // Enable FullGC
         VersionGarbageCollector gc = store1.getVersionGarbageCollector();
         enableFullGC(gc);
-        
         final String testPath = "/test";
         final String testProperty = "testProp";
         final String newValue = "newValue";
         String testValue = "splitValue0";
-        
         // Step 1: Create document with many revisions to trigger split
         NodeBuilder builder = store1.getRoot().builder();
         builder.child("test").setProperty(testProperty, testValue);
@@ -4342,7 +4338,6 @@ public class VersionGarbageCollectorIT {
         builder.child("test").child("child1").setProperty("prop", "value");
         builder.child("test").child("child2").setProperty("prop", "value");
         merge(store1, builder);
-        
         // Force many commits to force the creation of a split document
         for (int i = 1; i <= NodeDocument.NUM_REVS_THRESHOLD + 10; i++) {
             builder = store1.getRoot().builder();
@@ -4350,90 +4345,211 @@ public class VersionGarbageCollectorIT {
             builder.child("test").setProperty(testProperty, testValue);
             merge(store1, builder);
         }
-        
         // Trigger RevisionGC with split documents
         store1.runBackgroundOperations();
-        
         // Verify split document was created
         NodeDocument doc = store1.getDocumentStore().find(NODES, Utils.getIdFromPath(testPath));
         assertNotNull("Main document should exist", doc);
-        
-        assertTrue("Document should have split documents. " +
-                  "LocalRevs=" + doc.getLocalRevisions().size() + 
-                  ", CommitRoot=" + doc.getLocalCommitRoot().size() + 
-                  ", Total=" + (doc.getLocalRevisions().size() + doc.getLocalCommitRoot().size()) + 
-                  ", Threshold=" + NUM_REVS_THRESHOLD,
-                !doc.getPreviousRanges().isEmpty()); // Should have split documents due to many revisions
-        
+        assertFalse("Document should have split documents. " + "LocalRevs=" + doc.getLocalRevisions().size() +
+                ", CommitRoot=" + doc.getLocalCommitRoot().size() +
+                ", Total=" + (doc.getLocalRevisions().size() + doc.getLocalCommitRoot().size()) +
+                ", Threshold=" + NUM_REVS_THRESHOLD, doc.getPreviousRanges().isEmpty()); // Should have split documents due to many revisions
+
         // Verify testProperty exists in split documents
         DocumentNodeState nodeState = doc.getNodeAtRevision(store1, store1.getHeadRevision(), null);
         assertNotNull("Node should exist", nodeState);
         PropertyState prop = nodeState.getProperty(testProperty);
         assertNotNull("Test property should exist", prop);
         assertEquals("Test property should have correct value", testValue, prop.getValue(Type.STRING));
-        
+
         // Phase 2: Delete the property (set to null)
         builder = store1.getRoot().builder();
         builder.child("test").removeProperty(testProperty);
         merge(store1, builder);
-        
+
         // Verify property is now null on head state
         NodeState currentState = store1.getRoot().getChildNode("test");
         assertFalse("Property should be deleted", currentState.hasProperty(testProperty));
-        
+
         // Phase 3: Wait 24h and run FullGC to remove the property
         clock.waitUntil(clock.getTime() + TimeUnit.HOURS.toMillis(25));
         VersionGCStats stats = gc(gc, 24, TimeUnit.HOURS);
-        assertTrue("FullGC should have deleted something", stats.deletedPropsCount > 0);
-        
-        // Verify property was removed by FullGC
+        assertEquals("FullGC shouldn't have deleted anything", 0, stats.deletedPropsCount);
+
+        // Verify property wasn't removed by FullGC
         doc = store1.getDocumentStore().find(NODES, Utils.getIdFromPath(testPath));
         assertNotNull("Document should still exist", doc);
-        // Property should no longer exist in main document
-        assertFalse("Property should be removed from main document", 
-                doc.getPropertyNames().contains(testProperty));
-        
+        // Property should exist in main document
+        assertTrue("Property should be removed from main document", doc.getPropertyNames().contains(testProperty));
+
         // Phase 4: Create checkpoint AFTER FullGC
         String checkpoint = store1.checkpoint(TimeUnit.HOURS.toMillis(1));
         assertNotNull("Checkpoint should be created", checkpoint);
-        
+
         // Phase 5: 1ms later, write the same property again (newer than checkpoint)
         clock.waitUntil(clock.getTime() + 1);
         builder = store1.getRoot().builder();
+        System.out.println(newValue);
         builder.child("test").setProperty(testProperty, newValue);
         merge(store1, builder);
-        
+
         // Verify new property exists in current head
         currentState = store1.getRoot().getChildNode("test");
         assertTrue("New property should exist in head", currentState.hasProperty(testProperty));
-        assertEquals("New property should have new value", newValue, 
-                currentState.getProperty(testProperty).getValue(Type.STRING));
-        
+        assertEquals("New property should have new value", newValue, currentState.getProperty(testProperty).getValue(Type.STRING));
+
         // Phase 6a: Read using checkpoint
         store1.invalidateNodeChildrenCache();
         store1.getNodeCache().invalidateAll();
         NodeState checkpointState = store1.retrieve(checkpoint);
         assertNotNull("Checkpoint state should exist", checkpointState);
-        
         NodeState checkpointTestNode = checkpointState.getChildNode("test");
         assertTrue("Test node should exist in checkpoint", checkpointTestNode.exists());
         PropertyState checkpointProp = checkpointTestNode.getProperty(testProperty);
 
         // Expected behavior: property should be null since it was deleted before checkpoint
-        assertNull("Property should be null in checkpoint (was deleted by FullGC before checkpoint)",
-                checkpointProp);
-        
+        assertNull("Property should be null in checkpoint (was deleted by FullGC before checkpoint)", checkpointProp);
+
         // Phase 6b: Use getNodeAtRevision directly on the document
         RevisionVector checkpointRevisionVector = RevisionVector.fromString(checkpoint);
         NodeDocument testDoc = store1.getDocumentStore().find(NODES, Utils.getIdFromPath(testPath));
-        DocumentNodeState nodeAtCheckpoint = testDoc.getNodeAtRevision(store1, checkpointRevisionVector, null);
+        final DocumentNodeState nodeAtCheckpoint = testDoc.getNodeAtRevision(store1, checkpointRevisionVector, null);
         PropertyState nodeAtRevisionProperty = null;
         if (nodeAtCheckpoint != null) {
             nodeAtRevisionProperty = nodeAtCheckpoint.getProperty(testProperty);
         }
-        
+
         // Verify that the direct read also returns null
         assertNull("Property should be null when read at checkpoint revision", nodeAtRevisionProperty);
+
+        final DocumentNodeState nodeAtHeadRevision = testDoc.getNodeAtRevision(store1, store1.getHeadRevision(), null);
+        PropertyState nodeAtHeadProperty = null;
+        if (nodeAtHeadRevision != null) {
+            nodeAtHeadProperty = nodeAtHeadRevision.getProperty(testProperty);
+        }
+
+        // Verify that the direct read also returns null
+        assertNotNull("Property should be present read at head revision", nodeAtHeadProperty);
+        assertEquals(newValue, nodeAtHeadProperty.getValue(Type.STRING));
+    }
+
+    /**
+     * Test FullGC EmptyProps mode behavior when checkpoint directly references a revision in a split document.
+     * <p>
+     * Reproduction scenario:
+     * 1. Create document with property and modify it many times to cause document splitting
+     * 2. Create checkpoint when the property is at a specific value (revision in split document)
+     * 3. Delete the property (set to null)
+     * 4. Wait 24h, then FullGC removes the property
+     * 5. Verify checkpoint reads return correct value from split document
+     * 6. Write same property again with new value (newer than checkpoint) to force another split document
+     * 7. Verify checkpoint reads still return the original value, not null or newer value
+     */
+    @Test
+    public void testFullGCEmptyPropsSplitDocumentInconsistencyWhenCheckpointIsInSplitDocument() throws Exception {
+
+        assumeTrue(fixture.hasSinglePersistence());
+        assumeTrue("Test only applicable for MongoDocumentStore", fixture instanceof DocumentStoreFixture.MongoFixture);
+        assumeTrue("Test only applicable for EMPTY_PROPERTIES mode", isModeOneOf(FullGCMode.EMPTYPROPS, FullGCMode.GAP_ORPHANS_EMPTYPROPS, FullGCMode.ALL_ORPHANS_EMPTYPROPS));
+        // Enable FullGC
+        VersionGarbageCollector gc = store1.getVersionGarbageCollector();
+        enableFullGC(gc);
+        final String testPath = "/test";
+        final String testProperty = "testProp";
+        final String newValue = "newValue";
+        String testValue = "splitValue0";
+        // Step 1: Create document with many revisions to trigger split
+        NodeBuilder builder = store1.getRoot().builder();
+        builder.child("test").setProperty(testProperty, testValue);
+        // Create child nodes so split documents don't get deleted
+        builder.child("test").child("child1").setProperty("prop", "value");
+        builder.child("test").child("child2").setProperty("prop", "value");
+        merge(store1, builder);
+        // Force many commits to force the creation of a split document
+        for (int i = 1; i <= NodeDocument.NUM_REVS_THRESHOLD + 10; i++) {
+            builder = store1.getRoot().builder();
+            testValue = "splitValue" + i;
+            builder.child("test").setProperty(testProperty, testValue);
+            merge(store1, builder);
+        }
+        // Trigger RevisionGC with split documents
+        store1.runBackgroundOperations();
+        // Verify split document was created
+        NodeDocument doc = store1.getDocumentStore().find(NODES, Utils.getIdFromPath(testPath));
+        assertNotNull("Main document should exist", doc);
+
+        // Phase 2: Delete the property (set to null)
+        builder = store1.getRoot().builder();
+        builder.child("test").removeProperty(testProperty);
+        merge(store1, builder);
+
+        // Verify property is now null on head state
+        NodeState currentState = store1.getRoot().getChildNode("test");
+        assertFalse("Property should be deleted", currentState.hasProperty(testProperty));
+
+        // Phase 3: Wait 24h and run FullGC to remove the property
+        clock.waitUntil(clock.getTime() + TimeUnit.HOURS.toMillis(25));
+        VersionGCStats stats = gc(gc, 24, TimeUnit.HOURS);
+        assertEquals("FullGC shouldn't have deleted anything", 0, stats.deletedPropsCount);
+
+        // Verify property was removed by FullGC
+        doc = store1.getDocumentStore().find(NODES, Utils.getIdFromPath(testPath));
+        assertNotNull("Document should still exist", doc);
+        // Property should exist in main document
+        assertTrue("Property shouldn't be removed from main document", doc.getPropertyNames().contains(testProperty));
+
+        // Phase 4: Create checkpoint AFTER FullGC
+        String checkpoint = store1.checkpoint(TimeUnit.HOURS.toMillis(1));
+        assertNotNull("Checkpoint should be created", checkpoint);
+
+        // Phase 5: 1ms later, write the same property again (newer than checkpoint)
+        clock.waitUntil(clock.getTime() + 1);
+        builder = store1.getRoot().builder();
+        builder.child("test").setProperty(testProperty, newValue);
+        merge(store1, builder);
+
+        // Verify new property exists in current head
+        currentState = store1.getRoot().getChildNode("test");
+        assertTrue("New property should exist in head", currentState.hasProperty(testProperty));
+        assertEquals("New property should have new value", newValue, currentState.getProperty(testProperty).getValue(Type.STRING));
+
+        // Phase 6a: Read using checkpoint
+        store1.invalidateNodeChildrenCache();
+        store1.getNodeCache().invalidateAll();
+        NodeState checkpointState = store1.retrieve(checkpoint);
+        assertNotNull("Checkpoint state should exist", checkpointState);
+        NodeState checkpointTestNode = checkpointState.getChildNode("test");
+        assertTrue("Test node should exist in checkpoint", checkpointTestNode.exists());
+        PropertyState checkpointProp = checkpointTestNode.getProperty(testProperty);
+
+        // Expected behavior: property should be null since it was deleted before checkpoint
+        assertNull("Property should be null in checkpoint (was deleted by FullGC before checkpoint)", checkpointProp);
+
+        // Create many more revisions to force more splits, pushing checkpoint into split documents
+        for (int i = 0; i < NUM_REVS_THRESHOLD * 2; i++) {
+            builder = store1.getRoot().builder();
+            builder.child("test").setProperty("otherProp", "split" + i);
+            merge(store1, builder);
+            // increase the clock to create new revision for next batch
+            clock.waitUntil(getCurrentTimestamp() + (i * 5));
+        }
+
+        // Force additional document splits
+        store1.runBackgroundOperations();
+
+        // invalidate all caches
+        store1.invalidateNodeChildrenCache();
+        store1.getNodeCache().invalidateAll();
+
+        // Verify split documents exist
+        doc = store1.getDocumentStore().find(NODES, Utils.getIdFromPath(testPath));
+        List<NodeDocument> prevDocs = ListUtils.toList(doc.getAllPreviousDocs());
+        assertFalse("Document should be split", prevDocs.isEmpty());
+
+        // Read property from checkpoint - should be null (property was deleted)
+        final NodeState nodeAtCheckpoint2 = store1.retrieve(checkpoint).getChildNode("test");
+        assertTrue("Node should exist at checkpoint", nodeAtCheckpoint2.exists());
+        assertNull("Property should be null at checkpoint", nodeAtCheckpoint2.getProperty(testProperty));
     }
 
     private void assertNodesDontExist(Collection<String> existingNodes,