0 Replies Latest reply: Nov 22, 2012 5:11 PM by 810721 RSS

    ArrayIndexOutOfBoundsException during PartitionFilter with LimitFilter

    810721
      Hi All,

      We are having a critical production issue where a PartitionFilter wrapped with LimitFilter causes following exception when new member joins the cluster. Issue is we are not able to recreate the problem inhouse and happens only in customer site. At this stage any workaround without any code change would be highly appreciated followed by the proper fix.

      Machine OS - AIX machine.
      Coherence version: 3.6.1.4

      Exception details

      java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1 [Also we are finding numbers other than -1 like -4, -6 etc]
           at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.limitQuerySequential(PartitionedCache.CDB:67)
           at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.keySet(PartitionedCache.CDB:8)
           at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ViewMap.keySet(PartitionedCache.CDB:45)
           at com.tangosol.coherence.component.util.SafeNamedCache.keySet(SafeNamedCache.CDB:1)


      Code fragment that causes exception is as follows...

      PartitionSet partsMember = ((DistributedCacheService)cache.getCacheService()).getOwnedPartitions(member);

      Set<Map.Entry<Long, MyClass>> setOfEntries = cache.keySet(new PartitionedFilter(new LimitFilter(new AlwaysFilter(), 500), partsMember));

      Please help.

      Thanks,
      Girish