You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by ds...@apache.org on 2016/09/15 21:02:23 UTC
[66/76] [abbrv] incubator-geode git commit: GEODE-1644: Check if key
is an instance of Object[]
GEODE-1644: Check if key is an instance of Object[]
* Checking if the key is of the type object array
* This fixes the issue with forming the correct index name.
Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/6a109a7f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/6a109a7f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/6a109a7f
Branch: refs/heads/feature/GEODE-1886
Commit: 6a109a7f57a5402af458d593d93c2e328bd3281b
Parents: 9fbad68
Author: nabarun <nn...@pivotal.io>
Authored: Wed Sep 14 10:08:29 2016 -0700
Committer: nabarun <nn...@pivotal.io>
Committed: Wed Sep 14 10:08:29 2016 -0700
----------------------------------------------------------------------
.../gemfire/cache/query/internal/IndexTrackingQueryObserver.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6a109a7f/geode-core/src/main/java/com/gemstone/gemfire/cache/query/internal/IndexTrackingQueryObserver.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/com/gemstone/gemfire/cache/query/internal/IndexTrackingQueryObserver.java b/geode-core/src/main/java/com/gemstone/gemfire/cache/query/internal/IndexTrackingQueryObserver.java
index e92e7ca..a8ab178 100644
--- a/geode-core/src/main/java/com/gemstone/gemfire/cache/query/internal/IndexTrackingQueryObserver.java
+++ b/geode-core/src/main/java/com/gemstone/gemfire/cache/query/internal/IndexTrackingQueryObserver.java
@@ -55,7 +55,7 @@ public class IndexTrackingQueryObserver extends QueryObserverAdapter {
String indexName;
//Dont create new IndexInfo if one is already there in map for aggregation
//of results later for whole partition region on this node.
- if(index instanceof MapRangeIndex || index instanceof CompactMapRangeIndex){
+ if((index instanceof MapRangeIndex || index instanceof CompactMapRangeIndex) && key instanceof Object[]){
indexName = index.getName()+ "-"+((Object[])key)[1];
} else {
indexName = index.getName();