Hi,
I'm trying to create a split document in a unit test to reproduce I'm
failure I'm seeing sporadically with my multiplexing document store
POC.
What I tried was
Session session = getAdminSession();
try {
Node node = session.getRootNode().addNode("bla");
session.save();
for ( int i = 0 ; i < 1000 ; i++ ) {
node = session.getRootNode().getNode("bla");
node.setProperty("prop-" + i, largeString());
session.save();
}
} finally {
session.logout();
}
While this code creates a split candidate in the DocumentNodeStore,
NodeDocument.split() creates no update ops ; I traced down the logic
to SplitOperations.create() but it got a bit too complicated for me to
follow.
Does anyone have a suggestion on how to create a split document in a unit test?
Thanks,
Robert