Local view fails to start when locator is defined as IPv6

Description

Trying to start local view with ipv6 setting fails due to following exception:
com.gigaspaces.space.dr_configurationstore_space_LocalView_fe80:0:0:0:a00:27ff:fe8c:e699[3625]_b6e47b49-e44d-4b40-b068-61260688ca35.1] - Failed to start space with url [jini:////dr_configurationstore_space?locators=[fe80:0:0:0:a00:27ff:fe8c:e699]&groups=GROUP-DCA&state=started&create=false]; Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1955)
at com.gigaspaces.internal.cluster.node.impl.ReplicationUtils.toShortLookupName(ReplicationUtils.java:40)
at com.gigaspaces.internal.cluster.node.impl.gateway.GatewayReplicationUtils.toShortLookupName(GatewayReplicationUtils.java:33)
at com.gigaspaces.internal.cluster.node.impl.ReplicationLogUtils.toShortLookupName(ReplicationLogUtils.java:31)
at com.gigaspaces.internal.cluster.node.impl.router.spacefinder.failuredetector.FailureDetectorConnectionMonitor.<init>(FailureDetectorConnectionMonitor.java:88)
at com.gigaspaces.internal.cluster.node.impl.router.ReplicationRouterBuilderFactory.createSpaceProxyReplicationRouterBuilder(ReplicationRouterBuilderFactory.java:59)
at com.gigaspaces.internal.server.space.replication.SpaceReplicationInitializer.createEmptyReplicationNode(SpaceReplicationInitializer.java:293)
at com.gigaspaces.internal.server.space.replication.SpaceReplicationInitializer.<init>(SpaceReplicationInitializer.java:143)
at com.gigaspaces.internal.server.space.SpaceEngine.<init>(SpaceEngine.java:324)
at com.gigaspaces.internal.server.space.SpaceImpl.startInternal(SpaceImpl.java:2914)
at com.gigaspaces.internal.server.space.SpaceImpl.<init>(SpaceImpl.java:299)
at com.gigaspaces.internal.client.cache.AbstractSpaceCache.createLocalSpaceImpl(AbstractSpaceCache.java:127)
at com.gigaspaces.internal.client.cache.AbstractSpaceCache.initialize(AbstractSpaceCache.java:46)
at com.gigaspaces.internal.client.cache.localview.replication.ReplicationLocalView.initialize(ReplicationLocalView.java:77)
at com.gigaspaces.internal.client.cache.AbstractSpaceCacheContainer.tryCreateCache(AbstractSpaceCacheContainer.java:250)
at com.gigaspaces.internal.client.cache.AbstractSpaceCacheContainer.restart(AbstractSpaceCacheContainer.java:213)
at com.gigaspaces.internal.client.cache.AbstractSpaceCacheContainer.access$100(AbstractSpaceCacheContainer.java:41)
at com.gigaspaces.internal.client.cache.AbstractSpaceCacheContainer$StateMonitor.call(AbstractSpaceCacheContainer.java:528)
at com.gigaspaces.internal.client.cache.AbstractSpaceCacheContainer$StateMonitor.call(AbstractSpaceCacheContainer.java:503)
at com.gigaspaces.internal.utils.concurrent.ScheduledThreadPoolAsyncHandlerProvider$AsyncRunnableWrapper$ExecutionTask.run(ScheduledThreadPoolAsyncHandlerProvider.java:291)

Workaround

None

Acceptance Test

com.gigaspaces.internal.cluster.node.impl.ReplicationUtilsTest

Assignee

Yael Nahon

Reporter

Ester Atzmon

Labels

None

Priority

Medium

SalesForce Case ID

12602

Fix versions

Commitment Version/s

None

Due date

None

Product

XAP

Edition

Open Source

Platform

All
Configure