question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hazelcast query long(Int64) type doesn't work NOT IN condition

See original GitHub issue

I try to use NOT IN but I am not successed. It is throw: InvalidOperationException: Exception of type 'System.InvalidOperationException' was thrown. and lots of map and property name.

My query: Id NOT IN ( 13, 17, 22533)

So I try that: Id NOT IN ( 13L, 17L, 22533L) In that case, exception thrown like HazelcastException: 'For input string: "13L"'

Then I change my query to Id IN ( 13, 17, 22533), it worked.

Why IN condition is working but NOT IN condition is not working, I still dont understand.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sancarcommented, Mar 6, 2019

Note that querying with the wrong field does not affect the server and other clients. It only returns the wrong result where the query is done.

If there is a client that does writer.WriteLong("id", Id); with wrong name, this could affect the server and other clients. Since restarting solved your problem, I think there is a problem with your WritePortable method in one of your clients.

Since restart solves your problem, you need to replace your faulty clients with correct ones and restart the server one final time. Since the mystery is solved and this is not a bug but a wrong usage, I am closing the issue.

0reactions
iozcelikcommented, Mar 5, 2019

Ok, you are right about that. When I restart, it is worked. But still it does not solve my problem 😃 Because I have multiple c# clients. One of them could query like that. After a while the problem shown again.

My server version: 3.11.2 C# clients all of them: 3.10

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hazelcast not working correctly with SqlPredicate and ...
This is not an option when working with spring-data-hazelcast as it always converts @Query based searches to SqlPredicates.
Read more >
Hazelcast Platform Operator API Docs
This is a reference for the Hazelcast Platform Operator API types. These are all the types and fields that are used in the...
Read more >
Locking Maps
Hazelcast offers two ways of locking map entries: pessimistic locking and optimistic locking. Hazelcast uses and manages its own partition threads. Each ...
Read more >
Queue
Hazelcast distributed queue performs no batching while iterating over the queue. All items are copied locally and iteration occurs locally. Creating a Queue....
Read more >
Querying Maps with the Predicate API
The Predicates class includes many operators for your query requirements. ... Hazelcast does not check the validity of JSON strings that are added...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found