spring-projects / spring-data-cassandra

Provides support to increase developer productivity in Java when using Apache Cassandra. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.
https://spring.io/projects/spring-data-cassandra/
Apache License 2.0
379 stars 310 forks source link

QueryForObjectListener will not be called, if result set is empty [DATACASS-287] #458

Closed spring-projects-issues closed 8 years ago

spring-projects-issues commented 8 years ago

Gregor Roth opened DATACASS-287 and commented

Within CassandraTemplate#doSelectOneAsync method the QueryForObjectListener will not be called, if the database resultset is empty. This causes that the caller will never be notified about an empty result. As consequence an empty query result is signaled by a timeout only.

In case of an empty result set the onQueryComplete(…) method should be called with value NULL


Affects: 1.4.1 (Hopper SR1)

Referenced from: pull request https://github.com/spring-projects/spring-data-cassandra/pull/63

Backported to: 1.4.2 (Hopper SR2), 1.3.5 (Gosling SR5)

spring-projects-issues commented 8 years ago

John Blum commented

PR #63 merged and closed!