geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GEODE-3796) Recording a version during region initialization could throw exception.
Date Wed, 11 Oct 2017 01:14:00 GMT

    [ https://issues.apache.org/jira/browse/GEODE-3796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16199657#comment-16199657
] 

ASF subversion and git services commented on GEODE-3796:
--------------------------------------------------------

Commit df7f72cd9087b8cc367fe43002c4a605b782e792 in geode's branch refs/heads/develop from
[~agingade]
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=df7f72c ]

GEODE-3796 Changes are made to validate region version after the region is initialized.


> 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
>
> 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
(v6.4.14#64029)

Mime
View raw message