Gang Yan created GEODE-6787:
-------------------------------

             Summary: when create index, met some error promt
                 Key: GEODE-6787
                 URL: https://issues.apache.org/jira/browse/GEODE-6787
             Project: Geode
          Issue Type: Bug
            Reporter: Gang Yan


process steps:
 1.  create a region , "REPLICATE",  with keyConstraint "java.lang.Boolean" and 
valueConstraint "java.lang.Integer"
 2.  try to create index,  "create index --name=customers11.name 
--expression=name --region=/customers11"
 3.  met error promt: 
 
                Member                 | Status | Message
-------------------------------------- | ------ | 
------------------------------------------------------------------------------------------
192.168.99.1(g1-g2-s3:83259)<v4>:41004 | ERROR  |  
org.apache.geode.cache.query.IndexInvalidException: Invalid indexed expression 
: ' name '
192.168.99.1(g1-s1:83252)<v2>:41002    | ERROR  |  
org.apache.geode.cache.query.IndexInvalidException: Invalid indexed expression 
: ' name '
192.168.99.1(g2-s2:83256)<v3>:41003    | ERROR  |  
org.apache.geode.cache.query.IndexInvalidException: Invalid indexed expression 
: ' name '
192.168.99.1(s4:83263)<v5>:41005       | ERROR  |  
org.apache.geode.cache.query.IndexInvalidException: Invalid indexed expression 
: ' name '


4.  can not find any "Invalid indexed expression" in server log and locator log


so, I think that , there may be two point can be improved:
  a. error msg need to be more clear,  the reason is from "value constraint", 
not from "exression"
  b. in the log file , we need to record some error or info


another related stuff is, when I tried to create same index twice,  the error 
msg is not clear enough too.

"create index --name=r6.id --expression=id --region=/REGION6"
1st time,  it created index successfully.
2nd time , will meet error, "Index "r6.id" already exists.  Create failed due 
to duplicate name.", it good to match expectation.
And next,  when I update the index name with a new name: "create index 
--name=r6.id2 --expression=id --region=/REGION6",  it met error :"Index 
"r6.id2" already exists.  Create failed due to duplicate definition. ",  it is 
a bit confused, because Index "r6.id2" does not exist. the reason is the 
"expression" field duplicated.






--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to