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

ASF subversion and git services commented on ISIS-3223:
-------------------------------------------------------

Commit 07049ce4bed8502857e0d8f66dbd0fddddda9ee6 in isis's branch 
refs/heads/ISIS-3223 from Andi Huber
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=07049ce4be ]

ISIS-3223: simplify enhance script

> WrapperFactory with async executor service throws exception
> -----------------------------------------------------------
>
>                 Key: ISIS-3223
>                 URL: https://issues.apache.org/jira/browse/ISIS-3223
>             Project: Isis
>          Issue Type: Bug
>    Affects Versions: 2.0.0-M8
>            Reporter: Daniel Keir Haywood
>            Assignee: Andi Huber
>            Priority: Major
>             Fix For: 2.0.0-M8
>
>
> To reproduce:
>  * checkout ISIS-3223 branch
>  * locate the  `WrapperFactory_async_IntegTest` in new 
> `regressiontests/stable-core-wrapperfactory` module
>  * (enhance, using sh enhance.sh -w)
>  * run the test; it will fail because the async executor code (as result of 
> line 60) hits an exception when calling back to WrapperFactoryDefault, line 
> 649, which in turn is the RepositoryServiceDefault failing an invariant 
> assert on line 244. 
> I don't understand enough to know why that invariant is checked.  The method 
> used in DN is "detachCopy", so it would seem that there _are_ legitimate 
> reasons when the entity we get back is different to the one being detached 
> (the DN code has a entityClass.newInstance(...) in one of its code paths, 
> that is what we hit).
> Perhaps the fact that this is multi-threaded code is the issue - though I 
> don't believe we are sharing the reference to the Counter bean across 
> threads, each thread has its own reference.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to