Class SailConcurrencyTest


  • public abstract class SailConcurrencyTest
    extends Object
    Tests concurrent read and write access to a Sail implementation.
    Author:
    Arjohn Kampman
    • Constructor Detail

      • SailConcurrencyTest

        public SailConcurrencyTest()
    • Method Detail

      • testConcurrentAddLargeTxn

        @Test
        public void testConcurrentAddLargeTxn()
                                       throws Exception
        Verifies that two large concurrent transactions in separate contexts do not cause inconsistencies or errors. This test may fail intermittently rather than consistently, given its dependency on multi-threading.
        Throws:
        Exception
        See Also:
        https://github.com/eclipse/rdf4j/issues/693
      • testConcurrentAddLargeTxnRollback

        @Test
        public void testConcurrentAddLargeTxnRollback()
                                               throws Exception
        Verifies that two large concurrent transactions in separate contexts do not cause inconsistencies or errors when one of the transactions rolls back at the end.
        Throws:
        Exception
      • testGetContextIDs

        @Test
        @Disabled("This test takes a long time and accomplishes little extra")
        public void testGetContextIDs()
                               throws Exception
        Throws:
        Exception
      • hasFailed

        protected boolean hasFailed()