Calling GigaSpace#aggregate sometimes causes a NPE when type definition is missing in one of the parttions

Description

2019-11-26T08:09:43.343+0200 ERROR LX-S-ROM-WAN-31/GSC/2 P26192/T312 SPACE/ps-conversation-history-service/2/inbound/InboundWorkerSupervisor Caused by: java.lang.NullPointerException
2019-11-26T08:09:43.343+0200 ERROR LX-S-ROM-WAN-31/GSC/2 P26192/T312 SPACE/ps-conversation-history-service/2/inbound/InboundWorkerSupervisor at com.gigaspaces.internal.client.spaceproxy.operations.AggregateEntriesSpaceOperationRequest.processPartitionResult(AggregateEntriesSpaceOperationRequest.java:111)
2019-11-26T08:09:43.343+0200 ERROR LX-S-ROM-WAN-31/GSC/2 P26192/T312 SPACE/ps-conversation-history-service/2/inbound/InboundWorkerSupervisor at com.gigaspaces.internal.client.spaceproxy.operations.AggregateEntriesSpaceOperationRequest.processPartitionResult(AggregateEntriesSpaceOperationRequest.java:49)
2019-11-26T08:09:43.343+0200 ERROR LX-S-ROM-WAN-31/GSC/2 P26192/T312 SPACE/ps-conversation-history-service/2/inbound/InboundWorkerSupervisor at com.gigaspaces.internal.remoting.routing.partitioned.BroadcastOperationFutureListener.onOperationResultArrival(BroadcastOperationFutureListener.java:50)
2019-11-26T08:09:43.343+0200 ERROR LX-S-ROM-WAN-31/GSC/2 P26192/T312 SPACE/ps-conversation-history-service/2/inbound/InboundWorkerSupervisor at com.gigaspaces.internal.remoting.RemoteOperationFutureListener.onOperationCompletion(RemoteOperationFutureListener.java:149)
2019-11-26T08:09:43.343+0200 ERROR LX-S-ROM-WAN-31/GSC/2 P26192/T312 SPACE/ps-conversation-history-service/2/inbound/InboundWorkerSupervisor at com.gigaspaces.internal.remoting.routing.clustered.ClusterRemoteOperationRouter$AsyncOperationExecutor.onOperationCompletion(ClusterRemoteOperationRouter.java:299)
2019-11-26T08:09:43.343+0200 ERROR LX-S-ROM-WAN-31/GSC/2 P26192/T312 SPACE/ps-conversation-history-service/2/inbound/InboundWorkerSupervisor at com.gigaspaces.internal.remoting.routing.clustered.ClusterRemoteOperationRouter$AsyncOperationExecutor.onResult(ClusterRemoteOperationRouter.java:283)
2019-11-26T08:09:43.343+0200 ERROR LX-S-ROM-WAN-31/GSC/2 P26192/T312 SPACE/ps-conversation-history-service/2/inbound/InboundWorkerSupervisor at com.gigaspaces.lrmi.nio.async.LRMIFuture.sendEvent(LRMIFuture.java:252)
2019-11-26T08:09:43.343+0200 ERROR LX-S-ROM-WAN-31/GSC/2 P26192/T312 SPACE/ps-conversation-history-service/2/inbound/InboundWorkerSupervisor at com.gigaspaces.lrmi.nio.async.LRMIFuture.setResultPacketInternal(LRMIFuture.java:230)
2019-11-26T08:09:43.343+0200 ERROR LX-S-ROM-WAN-31/GSC/2 P26192/T312 SPACE/ps-conversation-history-service/2/inbound/InboundWorkerSupervisor at com.gigaspaces.lrmi.nio.async.LRMIFuture.setResultPacket(LRMIFuture.java:183)
2019-11-26T08:09:43.343+0200 ERROR LX-S-ROM-WAN-31/GSC/2 P26192/T312 SPACE/ps-conversation-history-service/2/inbound/InboundWorkerSupervisor at com.gigaspaces.lrmi.nio.async.AsyncContext.finishExecution(AsyncContext.java:285)
2019-11-26T08:09:43.343+0200 ERROR LX-S-ROM-WAN-31/GSC/2 P26192/T312 SPACE/ps-conversation-history-service/2/inbound/InboundWorkerSupervisor at com.gigaspaces.lrmi.nio.async.AsyncContext.access$1000(AsyncContext.java:71)
2019-11-26T08:09:43.343+0200 ERROR LX-S-ROM-WAN-31/GSC/2 P26192/T312 SPACE/ps-conversation-history-service/2/inbound/InboundWorkerSupervisor at com.gigaspaces.lrmi.nio.async.AsyncContext$1.execute(AsyncContext.java:195)
2019-11-26T08:09:43.343+0200 ERROR LX-S-ROM-WAN-31/GSC/2 P26192/T312 SPACE/ps-conversation-history-service/2/inbound/InboundWorkerSupervisor at com.gigaspaces.internal.utils.concurrent.ContextClassLoaderRunnable.run(ContextClassLoaderRunnable.java:45)
2019-11-26T08:09:43.343+0200 ERROR LX-S-ROM-WAN-31/GSC/2 P26192/T312 SPACE/ps-conversation-history-service/2/inbound/InboundWorkerSupervisor at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
2019-11-26T08:09:43.343+0200 ERROR LX-S-ROM-WAN-31/GSC/2 P26192/T312 SPACE/ps-conversation-history-service/2/inbound/InboundWorkerSupervisor at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
2019-11-26T08:09:43.343+0200 ERROR LX-S-ROM-WAN-31/GSC/2 P26192/T312 SPACE/ps-conversation-history-service/2/inbound/InboundWorkerSupervisor ... 1 more

customer current workaround is that we do a "dummy" read query with the type in every partition during startup.

Workaround

None

Acceptance Test

None

Assignee

Unassigned

Reporter

Ester Atzmon

Labels

None

Priority

Medium

SalesForce Case ID

12719

Fix versions

None

Commitment Version/s

None

Due date

None

Product

None

Edition

Open Source

Platform

All
Configure