This is a known product issue reported as
GEM-3137 for Gemfire 9.9.5, 9.10.5, and earlier versions. The issue happens when initializing member’s cache via
cache-xml-file and having the cluster configuration service enabled. Note that the cluster configuration service is enabled by default.
There are three workarounds could help create the index:
Workaround 1
You could add the "
--members" option when creating an index from gfsh. For example:
Cluster-1 gfsh>create index --name=TestCustomerindex1 --expression=field1 --region=/TestCustomer --members=server1
Configuration change is not persisted because the command is executed on specific member.
Member | Status | Message
---------------------------------------- | ------ | --------------------------
10.169.10.209(server1:329496)<v1>:41001 | OK | Index successfully created
Workaround 2
You could define the index from the cache xml file instead of gfsh create index command.
Workaround 3
You could disable Gemfire cluster configuration service. In the locator's start script:
--enable-cluster-configuration=false
In the cacheserver's start script:
--use-cluster-configuration=false