[jira] [Commented] (IGNITE-5290) Events might be missed during concurrent CQ registration and cache operations

2017-05-29 Thread Nikolay Tikhonov (JIRA)

[ 
https://issues.apache.org/jira/browse/IGNITE-5290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16028205#comment-16028205
 ] 

Nikolay Tikhonov commented on IGNITE-5290:
--

[~sboikov]
Thank you for your idea!  I've already implemeted it. Could you please look at 
PR? 
https://github.com/apache/ignite/pull/2010

> Events might be missed during concurrent CQ registration and cache operations
> -
>
> Key: IGNITE-5290
> URL: https://issues.apache.org/jira/browse/IGNITE-5290
> Project: Ignite
>  Issue Type: Bug
>Affects Versions: 2.0
>Reporter: Nikolay Tikhonov
> Attachments: test.patch
>
>
> Events might be missed during concurrent CQ registration and cache 
> operations. See attached test.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (IGNITE-5290) Events might be missed during concurrent CQ registration and cache operations

2017-05-29 Thread Semen Boikov (JIRA)

[ 
https://issues.apache.org/jira/browse/IGNITE-5290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16028091#comment-16028091
 ] 

Semen Boikov commented on IGNITE-5290:
--

Currently I'm doing changes in CQ code and faced the same issue. This caused by 
the fact that in GridCacheMapEntry.innerUpdate collection of CQ listeners to 
notify if initialized before partition update counter is incremented. Looks 
like to avoid this error it should work in this way:
- first get snapshot of listeners (in the same place it is obtained now)
- execute update logic
- before notifying listeners, again get snapshot of listeners, if it changed 
then for all added listeners mark current counter as filtered

> Events might be missed during concurrent CQ registration and cache operations
> -
>
> Key: IGNITE-5290
> URL: https://issues.apache.org/jira/browse/IGNITE-5290
> Project: Ignite
>  Issue Type: Bug
>Affects Versions: 2.0
>Reporter: Nikolay Tikhonov
> Attachments: test.patch
>
>
> Events might be missed during concurrent CQ registration and cache 
> operations. See attached test.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (IGNITE-5290) Events might be missed during concurrent CQ registration and cache operations

2017-05-26 Thread Nikolay Tikhonov (JIRA)

[ 
https://issues.apache.org/jira/browse/IGNITE-5290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16026107#comment-16026107
 ] 

Nikolay Tikhonov commented on IGNITE-5290:
--

[~amashenkov],
It is not duplicate. Its other issue.

> Events might be missed during concurrent CQ registration and cache operations
> -
>
> Key: IGNITE-5290
> URL: https://issues.apache.org/jira/browse/IGNITE-5290
> Project: Ignite
>  Issue Type: Bug
>Affects Versions: 2.0
>Reporter: Nikolay Tikhonov
> Attachments: test.patch
>
>
> Events might be missed during concurrent CQ registration and cache 
> operations. See attached test.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (IGNITE-5290) Events might be missed during concurrent CQ registration and cache operations

2017-05-25 Thread Andrew Mashenkov (JIRA)

[ 
https://issues.apache.org/jira/browse/IGNITE-5290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16025354#comment-16025354
 ] 

Andrew Mashenkov commented on IGNITE-5290:
--

[~ntikhonov], is it duplicate of IGNITE-4939 ?
Looks like it is fixed, but not merged to master.

> Events might be missed during concurrent CQ registration and cache operations
> -
>
> Key: IGNITE-5290
> URL: https://issues.apache.org/jira/browse/IGNITE-5290
> Project: Ignite
>  Issue Type: Bug
>Affects Versions: 2.0
>Reporter: Nikolay Tikhonov
> Attachments: test.patch
>
>
> Events might be missed during concurrent CQ registration and cache 
> operations. See attached test.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)