Details
-
Bug
-
Resolution: Fixed
-
Critical
-
Cheshire-Cat
-
Untriaged
-
1
-
Unknown
Description
Issue found in: 7.0.0-3644 CE
REST API to enable migration mode should fail for CE - currently it allows collectionsMigrationMode to be set to true for CE:
[root@node1-mad-hatter-testing-centos7 ~]# curl -s -X POST -u Administrator:password http://10.112.194.101:8091/settings/replications/680c91446f192f637664b9876a5c4865%2Ftravel-sample%2Fdefault -d collectionsMigrationMode=true
|
{"checkpointInterval":600,"colMappingRules":{"s1.c1":"s1.c1"},*"collectionsExplicitMapping":true*,"collectionsMigrationMode":true,"collectionsMirroringMode":false,"collectionsOSOMode":false,"compressionType":"None","desiredLatency":50,"docBatchSizeKb":2048,"failureRestartInterval":10,"filterBypassExpiry":false,"filterDeletion":false,"filterExpiration":false,"filterExpression":"","logLevel":"Info","mergeFunctionMapping":{},"networkUsageLimit":0,"optimisticReplicationThreshold":256,"pauseRequested":false,"priority":"High","sourceNozzlePerNode":2,"statsInterval":1000,"targetNozzlePerNode":2,"type":"xmem","workerBatchSize":500}[root@node1-mad-hatter-testing-centos7 ~]#
|
This should fail with an error message - although when the user tries to set the actual rules it fails:
[root@node1-mad-hatter-testing-centos7 ~]# curl -s -X POST -u Administrator:password http://10.112.194.101:8091/settings/replications/680c91446f192f637664b9876a5c4865%2Ftravel-sample%2Fdefault -d colMappingRules='{"country == United States":"s1.c1"}'
|
{"colMappingRules":"Collections migration is supported in Enterprise edition only"}[root@node1-mad-hatter-testing-centos7 ~]#
|
It would be better to fail with the same while trying to set collectionsMigrationMode to true