Hi The query seems to be working as per our doc examples. I can reproduce the issue if the key is of Integer type but the get and remove operations are based on String keys.
Alberto's solution should be resolving this issue. Regards Nabarun ________________________________ From: Alberto Gomez <[email protected]> Sent: Wednesday, August 26, 2020 10:09 AM To: [email protected] <[email protected]> Subject: Re: weird gfsh behavior I think the problem is that the key is of type Integer. Can you try this? remove --region=/test --key=1234 --key-class=java.lang.Integer BR, Alberto ________________________________ From: Claudiu Balciza <[email protected]> Sent: Wednesday, August 26, 2020 6:58 PM To: [email protected] <[email protected]> Subject: weird gfsh behavior Hi all, I have encountered this strange gfsh behavior There is data in a region and I can query it gfsh>query --query='select key from /Region.entries where key=28733' Result : true Limit : 100 Rows : 1 Result ------ 28733 But when I try to get or remove the entry gfsh>get --region=Region --key='28733' Result : false Key Class : java.lang.String Key : 28733 Value Class : java.lang.String Value : null gfsh>remove --region=Region --key='28733' Result : false Message : Key is not present in the region Key Class : java.lang.String Key : 28733 But then gfsh>query --query='select key from /Region.entries where key=28733' Result : true Limit : 100 Rows : 1 Result ------ 28733 I’m a bit stumped ?? Claudiu
