You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Anthony Baker (JIRA)" <ji...@apache.org> on 2018/04/20 19:52:13 UTC

[jira] [Closed] (GEODE-3796) Recording a version during region initialization could throw exception.

     [ https://issues.apache.org/jira/browse/GEODE-3796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anthony Baker closed GEODE-3796.
--------------------------------

> Recording a version during region initialization could throw exception.
> -----------------------------------------------------------------------
>
>                 Key: GEODE-3796
>                 URL: https://issues.apache.org/jira/browse/GEODE-3796
>             Project: Geode
>          Issue Type: Bug
>          Components: regions
>            Reporter: Anilkumar Gingade
>            Assignee: Anilkumar Gingade
>            Priority: Major
>             Fix For: 1.3.0
>
>
> The Geode allows cache operation during region initialization; that means a cache operation can arrive on a region before the region's version vector is registered/added. If a cache operation originated from the same member is received before the rvv is registered, the system throws exception (A timing issue).
> This happens mostly when a remove/removeAll operation tries to remove entry that was originated in the remote node where the region is getting recreated.
> (Reproduced with test trying to record version during initialization):
> org.apache.geode.InternalGemFireError: recordVersion invoked for a local version tag that is higher than our local version. rvv=RegionVersionVector{rv0 gc0}@1770125555, tag={v0; rv551903297536; ds=0; time=0} region null
> 	at org.apache.geode.internal.Assert.throwError(Assert.java:94)
> 	at org.apache.geode.internal.Assert.fail(Assert.java:68)
> 	at org.apache.geode.internal.cache.versions.RegionVersionVector.recordVersion(RegionVersionVector.java:610)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at com.googlecode.catchexception.internal.ExceptionProcessingInterceptor.intercept(ExceptionProcessingInterceptor.java:72)
> 	at org.apache.geode.internal.cache.versions.RegionVersionVectorJUnitTest$1$$EnhancerByMockitoWithCGLIB$$4a46a9a1.recordVersion(<generated>)
> 	at org.apache.geode.internal.cache.versions.RegionVersionVectorJUnitTest.testRecordVersionDuringRegionInitializationBeforeRvvIsAdded(RegionVersionVectorJUnitTest.java:551)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> 	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
> 	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
> 	at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
> 	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
> 	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)