Class HJMPOptimisticConcurrencyPerformanceTest

  • All Implemented Interfaces:
    JaloSessionHolder

    @PerformanceTest
    public class HJMPOptimisticConcurrencyPerformanceTest
    extends HybrisJUnit4Test
    Tests HJMP persistence layer behavior concerning concurrent modification checks.

    There is a config parameter hjmp.throw.concurrent.modification.exceptions which either enables or disables checking that upon update a item row must have the same version that has been read when fetching the HJMP entity object. We discovered in PLA-10894 that switching off this check actually every conflicting update did not happen at all instead of both updates happening one after the other!

    • Constructor Detail

      • HJMPOptimisticConcurrencyPerformanceTest

        public HJMPOptimisticConcurrencyPerformanceTest()
    • Method Detail

      • testMissingUpdateProblemCheckEnabledStressTest

        public void testMissingUpdateProblemCheckEnabledStressTest()
                                                            throws JaloBusinessException,
                                                                   java.lang.InterruptedException
        Throws:
        JaloBusinessException
        java.lang.InterruptedException
      • testMissingUpdateProblemCheckDisabledStressTest

        public void testMissingUpdateProblemCheckDisabledStressTest()
                                                             throws JaloBusinessException,
                                                                    java.lang.InterruptedException
        Throws:
        JaloBusinessException
        java.lang.InterruptedException