tkobayas commented on PR #7192:
URL: https://github.com/apache/incubator-kie/pull/7192#issuecomment-6309628317
While this PR unit test triggers the issue by `@Propagation(IMMEDIATE)`, I
think the root cause of the real use cases is beta node sharing. We can
reproduce the same issue by rules like this:
```
rule R1 salience 100 no-loop when
$p : Person( age >= 0 )
$a : Address() from $p.addresses
then
modify( $p ) { setAge( $p.getAge() + 1 ) };
list.add( "R1" );
end
rule R2 when
$p : Person( age >= 0 )
$a : Address() from $p.addresses
then
list.add( "R2:" + $a.getStreet() );
end
```
It has been fixed by https://github.com/apache/incubator-kie/pull/7202
For `@Propagation(IMMEDIATE)`, I also filed
https://github.com/apache/incubator-kie/pull/7220 to ignore it in sequential
mode, so the issue will not happen.
As superseded by the 2 PRs, closing this PR, thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]