Uploaded image for project: 'InsightEdge Platform'
  1. GS-13618

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: 14.0
    • Labels:
      None
    • Platform:
      All
    • SalesForce Case ID:
      12004
    • Acceptance Test:
      Skipped
    • Sprint:
    • Product:
      XAP
    • Edition:
      Open Source

      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)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: