Although REPEATABLE_READ is enabled , reading values from AtomicMap And FineGrainedAtomicMap is not consistent within the same transaction. If another thread changes the value during the transaction, the new value is reflected immediately.
Pedro Ruivo <pruivo> updated the status of jira ISPN-3932 to Coding In Progress
Pull request integrated: https://github.com/infinispan/jdg/pull/15
Hi Pedro, I cherry-picked dafda103f77303c11683291111a76611eff9a832 (ispn-3932)into 6.2.0.ga, and the below test started failing Does the test needs to be revised? javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction. at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1177) at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126) at org.infinispan.tx.totalorder.writeskew.DistTotalOrderL1WriteSkewTest.transactionCleanupWithWriteSkew(DistTotalOrderL1WriteSkewTest.java:34) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80) at org.testng.internal.Invoker.invokeMethod(Invoker.java:715) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:907) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1237) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111) at org.testng.TestRunner.privateRun(TestRunner.java:767) at org.testng.TestRunner.run(TestRunner.java:617) at org.testng.SuiteRunner.runTest(SuiteRunner.java:334) at org.testng.SuiteRunner.access$000(SuiteRunner.java:37) at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:368) at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: org.infinispan.commons.CacheException: Could not prepare. at org.infinispan.transaction.synchronization.SynchronizationAdapter.beforeCompletion(SynchronizationAdapter.java:46) at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:76) at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:273) at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:93) at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:162) at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1165) ... 22 more Caused by: javax.transaction.xa.XAException at org.infinispan.transaction.TransactionCoordinator.prepare(TransactionCoordinator.java:139) at org.infinispan.transaction.TransactionCoordinator.prepare(TransactionCoordinator.java:101) at org.infinispan.transaction.synchronization.SynchronizationAdapter.beforeCompletion(SynchronizationAdapter.java:44) ... 27 more
Hi Shay, it shouldn't. The modifications are only for DeltaAware values (and atomic maps). Is it failing all the time? can you run that test with trace logs and send them to me?
when i enable traceTests, the GZ is not getting created , and I am getting the following error ~~~~~~~~~~~~~~~~~~~~~~~~~ ENVIRONMENT INFO ~~~~~~~~~~~~~~~~~~~~~~~~~~ Tests run: 3992, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 568.356 sec log4j:ERROR Could not close org.apache.log4j.helpers.QuietWriter@773480e1 java.io.IOException: write beyond end of stream at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:201) at java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:146) at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:282) at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125) at java.io.OutputStreamWriter.write(OutputStreamWriter.java:207) at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:129) at java.io.BufferedWriter.close(BufferedWriter.java:264) at java.io.FilterWriter.close(FilterWriter.java:104) at org.apache.log4j.FileAppender.closeFile(FileAppender.java:185) at org.apache.log4j.FileAppender.reset(FileAppender.java:343) at org.infinispan.util.logging.log4j.CompressedFileAppender.reset(CompressedFileAppender.java:47) at org.apache.log4j.WriterAppender.close(WriterAppender.java:207) at org.apache.log4j.helpers.AppenderAttachableImpl.removeAllAppenders(AppenderAttachableImpl.java:141) at org.apache.log4j.Category.removeAllAppenders(Category.java:891) at org.apache.log4j.Hierarchy.shutdown(Hierarchy.java:471) at org.apache.log4j.LogManager.shutdown(LogManager.java:267) at org.infinispan.util.logging.log4j.CompressedFileAppender$1.run(CompressedFileAppender.java:24) at java.lang.Thread.run(Thread.java:744)
Hi Pedro, I wiped my env and redid all steps , all tests are for core are passing now :) Cheers, Shay
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.