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

SpaceTypeDescriptorBuilder fails when explicitly indexing the routing key using deprecated values

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 12.3.1
    • Labels:
      None
    • Platform:
      All
    • SalesForce Case ID:
      00011816
    • Workaround:
      Hide
      Removing this line:
      builder.addIndex(SpaceIndexFactory.createPropertyIndex("property", SpaceIndexType.BASIC));
      Show
      Removing this line: builder.addIndex(SpaceIndexFactory.createPropertyIndex("property", SpaceIndexType.BASIC));
    • Acceptance Test:
      com.gigaspaces.metadata.SpaceTypeDescriptorTestCase#testExplicitRoutingIndex()
    • Sprint:
    • Product:
      XAP
    • Edition:
      Open Source

      Description

      The following code is valid for version 12.1 & 12.1.1 but fails with 12.3

      SpaceTypeDescriptorBuilder builder = new SpaceTypeDescriptorBuilder("someType");
      builder.addIndex(SpaceIndexFactory.createPropertyIndex("property", SpaceIndexType.BASIC)); // SpaceIndexType.EQUAL also fails
      builder.routingProperty("property");

      Failure message: java.lang.IllegalArgumentException: Cannot add index 'aggregateId' - an index with the same name is already defined.
      Test and stack trace are attached.


      Investigation:
      In 12.3 when Routing is defined in addition to SpaceId it does not need to be indexed specifically. It's already indexed with EQUAL by default.
      Removing this line:
      builder.addIndex(SpaceIndexFactory.createPropertyIndex("property", SpaceIndexType.BASIC));
      will solve the issue but the customer insist to have backward compatibility.

        Attachments

          Activity

            People

            • Assignee:
              niv Niv Ingberg
              Reporter:
              Yuvald Yuval Dori (Inactive)
              Participants of an issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: