We're updating the issue view to help you get more done. 

Add ChangeSet.isEmpty() to indicate if it contains any change operations

Description

An empty ChangeSet in change operation will cause an exception, Client wants to check this possibility in advance before sending the change.

ChangeSet changeSet = new ChangeSet();
myProcess.execute(mySpaceObject, changeSet);
space.change(new IdQuery<>(MySpaceObject.class, mySpaceObject.getSpaceId()), changeSet);

will cause:
Caused by: java.lang.IllegalArgumentException: change operation cannot accept empty changeSet.
at com.gigaspaces.internal.client.spaceproxy.actioninfo.ChangeProxyActionInfo.<init>(ChangeProxyActionInfo.java:56)
at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.change(AbstractSpaceProxyActionManager.java:397)
at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.change(AbstractSpaceProxy.java:512)
at org.openspaces.core.DefaultGigaSpace.change(DefaultGigaSpace.java:1002)

Workaround

None

Acceptance Test

Skipped

Status

Assignee

Niv Ingberg

Reporter

Ester Atzmon

Labels

None

Priority

Medium

SalesForce Case ID

12004

Fix versions

Commitment Version/s

None

Due date

None

Product

XAP

Edition

Open Source

Platform

All