[jira] [Updated] (IGNITE-9968) Able to filter backup cache events

2018-10-22 Thread Roman Bastanov (JIRA)


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

Roman Bastanov updated IGNITE-9968:
---
Description: While some rebalancing occur the Event Listener determine all 
events including changes on backup cache. But the Event have no methods or 
fields to view on what exactly part of cache it has appeared.  (was: While some 
rebalancing occur the Event Listener determine all events including changes on 
backup cache. But the event have no methods or fields to view on what exactly 
part of cache it has appeared.)

> Able to filter backup cache events
> --
>
> Key: IGNITE-9968
> URL: https://issues.apache.org/jira/browse/IGNITE-9968
> Project: Ignite
>  Issue Type: Improvement
>  Components: cache
>Reporter: Roman Bastanov
>Priority: Major
>
> While some rebalancing occur the Event Listener determine all events 
> including changes on backup cache. But the Event have no methods or fields to 
> view on what exactly part of cache it has appeared.



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


[jira] [Updated] (IGNITE-9968) Able to filter backup cache events

2018-10-22 Thread Roman Bastanov (JIRA)


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

Roman Bastanov updated IGNITE-9968:
---
Description: While some rebalancing occur the Event Listener determine all 
events including changes on backup cache. But the event have no methods or 
fields to view on what exactly part of cache it has appeared.

> Able to filter backup cache events
> --
>
> Key: IGNITE-9968
> URL: https://issues.apache.org/jira/browse/IGNITE-9968
> Project: Ignite
>  Issue Type: Improvement
>  Components: cache
>Reporter: Roman Bastanov
>Priority: Major
>
> While some rebalancing occur the Event Listener determine all events 
> including changes on backup cache. But the event have no methods or fields to 
> view on what exactly part of cache it has appeared.



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


[jira] [Created] (IGNITE-9968) Able to filter backup cache events

2018-10-22 Thread Roman Bastanov (JIRA)
Roman Bastanov created IGNITE-9968:
--

 Summary: Able to filter backup cache events
 Key: IGNITE-9968
 URL: https://issues.apache.org/jira/browse/IGNITE-9968
 Project: Ignite
  Issue Type: Improvement
  Components: cache
Reporter: Roman Bastanov






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


[jira] [Commented] (IGNITE-7682) C++: LocalSize cache functions

2018-02-16 Thread Roman Bastanov (JIRA)

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

Roman Bastanov commented on IGNITE-7682:


{quote}
[~Roman_BRR], what about Java API? Does it behave the same?

{quote}
The behavior on Java and C++ is different.

> C++: LocalSize cache functions
> --
>
> Key: IGNITE-7682
> URL: https://issues.apache.org/jira/browse/IGNITE-7682
> Project: Ignite
>  Issue Type: Bug
>  Components: platforms
> Environment: Ignite builded by jdk1.8.0_152 with sources 
> tag:ignite-2.3
> cpp libs builded by Microsoft Visual Studio Enterprise 2015 Version 
> 14.0.25431.01 Update 3
> all x64
>Reporter: Roman Bastanov
>Priority: Major
>
> LocalSize functions with all variations of CachePeekMode returns same results.
> They always returns all cache size, the sum of all node caches.
> {code}
> auto cache = IgniteNode.GetCache<...>(cache_name);
> cache.LocalSize(ignite::cache::CachePeekMode::BACKUP)
> cache.LocalSize(ignite::cache::CachePeekMode::NEAR_CACHE)
> cache.LocalSize(ignite::cache::CachePeekMode::OFFHEAP)
> cache.LocalSize(ignite::cache::CachePeekMode::ONHEAP)
> cache.LocalSize(ignite::cache::CachePeekMode::PRIMARY)
> cache.LocalSize(ignite::cache::CachePeekMode::SWAP)
> {code}
> Despite this, manually calculations are correct, and returns local size(cache 
> on this node).
> {code}
> auto query = cache::query::ScanQuery();
> query.SetLocal(true);
> auto cursor = cache.Query(query);
> while (cursor.HasNext()) {
> cache_size++;
> }{code}



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


[jira] [Commented] (IGNITE-7682) C++: LocalSize cache functions

2018-02-16 Thread Roman Bastanov (JIRA)

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

Roman Bastanov commented on IGNITE-7682:


Java node and C++ node started with same Spring config.
I use replicated cache.

> C++: LocalSize cache functions
> --
>
> Key: IGNITE-7682
> URL: https://issues.apache.org/jira/browse/IGNITE-7682
> Project: Ignite
>  Issue Type: Bug
>  Components: platforms
> Environment: Ignite builded by jdk1.8.0_152 with sources 
> tag:ignite-2.3
> cpp libs builded by Microsoft Visual Studio Enterprise 2015 Version 
> 14.0.25431.01 Update 3
> all x64
>Reporter: Roman Bastanov
>Priority: Major
>
> LocalSize functions with all variations of CachePeekMode returns same results.
> They always returns all cache size, the sum of all node caches.
> {code}
> auto cache = IgniteNode.GetCache<...>(cache_name);
> cache.LocalSize(ignite::cache::CachePeekMode::BACKUP)
> cache.LocalSize(ignite::cache::CachePeekMode::NEAR_CACHE)
> cache.LocalSize(ignite::cache::CachePeekMode::OFFHEAP)
> cache.LocalSize(ignite::cache::CachePeekMode::ONHEAP)
> cache.LocalSize(ignite::cache::CachePeekMode::PRIMARY)
> cache.LocalSize(ignite::cache::CachePeekMode::SWAP)
> {code}
> Despite this, manually calculations are correct, and returns local size(cache 
> on this node).
> {code}
> auto query = cache::query::ScanQuery();
> query.SetLocal(true);
> auto cursor = cache.Query(query);
> while (cursor.HasNext()) {
> cache_size++;
> }{code}



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


[jira] [Comment Edited] (IGNITE-7682) C++: LocalSize cache functions

2018-02-16 Thread Roman Bastanov (JIRA)

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

Roman Bastanov edited comment on IGNITE-7682 at 2/16/18 9:07 AM:
-

Same code on Java works fine:
{code:java}
IgniteCache cache = igniteNode.cache(cache_name);
QueryCursor> cursor = cache.query(new ScanQuery().setLocal(true));
//-\/Debug\/
System.out.println("[T] ^-- cache.localSizeLong():" + cache.localSizeLong());
{code}

And result is size of local cache(cache size on this node)


was (Author: roman_brr):
Same code on Java works fine:
{code:java}
IgniteCache cache = igniteNode.cache(cache_name);
QueryCursor> cursor = cache.query(new ScanQuery().setLocal(true));
//-\/Debug\/
System.out.println("[T] ^-- cache.localSizeLong():" + cache.localSizeLong());
{code}

And result is size of local cashe(cache size on this node)

> C++: LocalSize cache functions
> --
>
> Key: IGNITE-7682
> URL: https://issues.apache.org/jira/browse/IGNITE-7682
> Project: Ignite
>  Issue Type: Bug
>  Components: platforms
> Environment: Ignite builded by jdk1.8.0_152 with sources 
> tag:ignite-2.3
> cpp libs builded by Microsoft Visual Studio Enterprise 2015 Version 
> 14.0.25431.01 Update 3
> all x64
>Reporter: Roman Bastanov
>Priority: Major
>
> LocalSize functions with all variations of CachePeekMode returns same results.
> They always returns all cache size, the sum of all node caches.
> {code}
> auto cache = IgniteNode.GetCache<...>(cache_name);
> cache.LocalSize(ignite::cache::CachePeekMode::BACKUP)
> cache.LocalSize(ignite::cache::CachePeekMode::NEAR_CACHE)
> cache.LocalSize(ignite::cache::CachePeekMode::OFFHEAP)
> cache.LocalSize(ignite::cache::CachePeekMode::ONHEAP)
> cache.LocalSize(ignite::cache::CachePeekMode::PRIMARY)
> cache.LocalSize(ignite::cache::CachePeekMode::SWAP)
> {code}
> Despite this, manually calculations are correct, and returns local size(cache 
> on this node).
> {code}
> auto query = cache::query::ScanQuery();
> query.SetLocal(true);
> auto cursor = cache.Query(query);
> while (cursor.HasNext()) {
> cache_size++;
> }{code}



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


[jira] [Comment Edited] (IGNITE-7682) C++: LocalSize cache functions

2018-02-16 Thread Roman Bastanov (JIRA)

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

Roman Bastanov edited comment on IGNITE-7682 at 2/16/18 9:06 AM:
-

Same code on Java works fine:
{code:java}
IgniteCache cache = igniteNode.cache(cache_name);
QueryCursor> cursor = cache.query(new ScanQuery().setLocal(true));
//-\/Debug\/
System.out.println("[T] ^-- cache.localSizeLong():" + cache.localSizeLong());
{code}

And result is size of local cashe(cache size on this node)


was (Author: roman_brr):
Same code on Java works fine:{code:java}
IgniteCache cache = igniteNode.cache(cache_name);
QueryCursor> cursor = cache.query(new ScanQuery().setLocal(true));
//-\/Debug\/
System.out.println("[T] ^-- cache.localSizeLong():" + cache.localSizeLong());
{code}

> C++: LocalSize cache functions
> --
>
> Key: IGNITE-7682
> URL: https://issues.apache.org/jira/browse/IGNITE-7682
> Project: Ignite
>  Issue Type: Bug
>  Components: platforms
> Environment: Ignite builded by jdk1.8.0_152 with sources 
> tag:ignite-2.3
> cpp libs builded by Microsoft Visual Studio Enterprise 2015 Version 
> 14.0.25431.01 Update 3
> all x64
>Reporter: Roman Bastanov
>Priority: Major
>
> LocalSize functions with all variations of CachePeekMode returns same results.
> They always returns all cache size, the sum of all node caches.
> {code}
> auto cache = IgniteNode.GetCache<...>(cache_name);
> cache.LocalSize(ignite::cache::CachePeekMode::BACKUP)
> cache.LocalSize(ignite::cache::CachePeekMode::NEAR_CACHE)
> cache.LocalSize(ignite::cache::CachePeekMode::OFFHEAP)
> cache.LocalSize(ignite::cache::CachePeekMode::ONHEAP)
> cache.LocalSize(ignite::cache::CachePeekMode::PRIMARY)
> cache.LocalSize(ignite::cache::CachePeekMode::SWAP)
> {code}
> Despite this, manually calculations are correct, and returns local size(cache 
> on this node).
> {code}
> auto query = cache::query::ScanQuery();
> query.SetLocal(true);
> auto cursor = cache.Query(query);
> while (cursor.HasNext()) {
> cache_size++;
> }{code}



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


[jira] [Commented] (IGNITE-7682) C++: LocalSize cache functions

2018-02-16 Thread Roman Bastanov (JIRA)

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

Roman Bastanov commented on IGNITE-7682:


Same code on Java works fine:{code:java}
IgniteCache cache = igniteNode.cache(cache_name);
QueryCursor> cursor = cache.query(new ScanQuery().setLocal(true));
//-\/Debug\/
System.out.println("[T] ^-- cache.localSizeLong():" + cache.localSizeLong());
{code}

> C++: LocalSize cache functions
> --
>
> Key: IGNITE-7682
> URL: https://issues.apache.org/jira/browse/IGNITE-7682
> Project: Ignite
>  Issue Type: Bug
>  Components: platforms
> Environment: Ignite builded by jdk1.8.0_152 with sources 
> tag:ignite-2.3
> cpp libs builded by Microsoft Visual Studio Enterprise 2015 Version 
> 14.0.25431.01 Update 3
> all x64
>Reporter: Roman Bastanov
>Priority: Major
>
> LocalSize functions with all variations of CachePeekMode returns same results.
> They always returns all cache size, the sum of all node caches.
> {code}
> auto cache = IgniteNode.GetCache<...>(cache_name);
> cache.LocalSize(ignite::cache::CachePeekMode::BACKUP)
> cache.LocalSize(ignite::cache::CachePeekMode::NEAR_CACHE)
> cache.LocalSize(ignite::cache::CachePeekMode::OFFHEAP)
> cache.LocalSize(ignite::cache::CachePeekMode::ONHEAP)
> cache.LocalSize(ignite::cache::CachePeekMode::PRIMARY)
> cache.LocalSize(ignite::cache::CachePeekMode::SWAP)
> {code}
> Despite this, manually calculations are correct, and returns local size(cache 
> on this node).
> {code}
> auto query = cache::query::ScanQuery();
> query.SetLocal(true);
> auto cursor = cache.Query(query);
> while (cursor.HasNext()) {
> cache_size++;
> }{code}



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


[jira] [Created] (IGNITE-7682) LocalSize cache functions on C++

2018-02-13 Thread Roman Bastanov (JIRA)
Roman Bastanov created IGNITE-7682:
--

 Summary: LocalSize cache functions on C++
 Key: IGNITE-7682
 URL: https://issues.apache.org/jira/browse/IGNITE-7682
 Project: Ignite
  Issue Type: Bug
  Components: platforms
 Environment: Ignite builded by jdk1.8.0_152 with sources tag:ignite-2.3
cpp libs builded by Microsoft Visual Studio Enterprise 2015 Version 
14.0.25431.01 Update 3
all x64
Reporter: Roman Bastanov


LocalSize functions with all variations of CachePeekMode returns same results.
They always returns all cache size, the sum of all node caches.
{code}
auto cache = IgniteNode.GetCache<...>(cache_name);
cache.LocalSize(ignite::cache::CachePeekMode::BACKUP)
cache.LocalSize(ignite::cache::CachePeekMode::NEAR_CACHE)
cache.LocalSize(ignite::cache::CachePeekMode::OFFHEAP)
cache.LocalSize(ignite::cache::CachePeekMode::ONHEAP)
cache.LocalSize(ignite::cache::CachePeekMode::PRIMARY)
cache.LocalSize(ignite::cache::CachePeekMode::SWAP)
{code}
Despite this, manually calculations are correct, and returns local size(cache 
on this node).
{code}
auto query = cache::query::ScanQuery();
query.SetLocal(true);
auto cursor = cache.Query(query);

while (cursor.HasNext()) {
cache_size++;
}{code}



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


[jira] [Updated] (IGNITE-7682) C++: LocalSize cache functions

2018-02-13 Thread Roman Bastanov (JIRA)

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

Roman Bastanov updated IGNITE-7682:
---
Summary: C++: LocalSize cache functions  (was: LocalSize cache functions on 
C++)

> C++: LocalSize cache functions
> --
>
> Key: IGNITE-7682
> URL: https://issues.apache.org/jira/browse/IGNITE-7682
> Project: Ignite
>  Issue Type: Bug
>  Components: platforms
> Environment: Ignite builded by jdk1.8.0_152 with sources 
> tag:ignite-2.3
> cpp libs builded by Microsoft Visual Studio Enterprise 2015 Version 
> 14.0.25431.01 Update 3
> all x64
>Reporter: Roman Bastanov
>Priority: Major
>
> LocalSize functions with all variations of CachePeekMode returns same results.
> They always returns all cache size, the sum of all node caches.
> {code}
> auto cache = IgniteNode.GetCache<...>(cache_name);
> cache.LocalSize(ignite::cache::CachePeekMode::BACKUP)
> cache.LocalSize(ignite::cache::CachePeekMode::NEAR_CACHE)
> cache.LocalSize(ignite::cache::CachePeekMode::OFFHEAP)
> cache.LocalSize(ignite::cache::CachePeekMode::ONHEAP)
> cache.LocalSize(ignite::cache::CachePeekMode::PRIMARY)
> cache.LocalSize(ignite::cache::CachePeekMode::SWAP)
> {code}
> Despite this, manually calculations are correct, and returns local size(cache 
> on this node).
> {code}
> auto query = cache::query::ScanQuery();
> query.SetLocal(true);
> auto cursor = cache.Query(query);
> while (cursor.HasNext()) {
> cache_size++;
> }{code}



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