forked from apache/cassandra-java-driver
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable disabled load balancing integration tests
Enable previously disabled load balancing integration tests. The tests were disabled, because they were failing. It turns out that the root cause of the problem was that c083ccf introduced PagingOptimizingLoadBalancingPolicy which is wrapped on top of all policies (see issue #225). This policy makes sure that queries for reading the next page of a statement are sent to the same node. However, it turns out that if you reuse a SimpleStatement many times, the policy incorrectly treats the next execution of it as if it is a next page fetch. A workaround is introduced - do not apply this policy for statements which are not BoundStatement. This a heuristic that BoundStatements are generally not reused (you call .bind() with different parameters), but all other statement can be reused (such as SimpleStatement). Ultimately, this should be fixed in a better fashion: see #225.
- Loading branch information
1 parent
d296895
commit ca1fe44
Showing
4 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters