Comments (5)
What version of cassandra are you running? Also, are any other tests failing?
from astyanax.
1.0.6. It's the only test that fails.
from astyanax.
I too have the same issue.
Cassandra 1.0.8 on windows 7x64, single node, default config (Except for the thrift port, that needs to be adjusted to 7102 for the tests to run [And it's not documented])
Trace:
Test set: com.netflix.astyanax.thrift.ThrifeKeyspaceImplTest
Tests run: 49, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 6.039 sec <<< FAILURE!
testCqlCount(com.netflix.astyanax.thrift.ThrifeKeyspaceImplTest) Time elapsed: 0.01 sec <<< FAILURE!
junit.framework.AssertionFailedError: null
at junit.framework.Assert.fail(Assert.java:47)
...
at com.netflix.astyanax.thrift.ThrifeKeyspaceImplTest.testCqlCount(ThrifeKeyspaceImplTest.java:1382)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
...
Additional Info:
TEST-com.netflix.astyanax.thrift.ThrifeKeyspaceImplTest.xml
http://pastie.org/3727005
from astyanax.
The CQL API in 1.0.8 is not backwards compatible with 0.8. I have commented out this unit test but will update to the newer version soon.
from astyanax.
With the latest CQL a count query returns a single row with a column "count" and value a long representing the count. With the current Astyanax api (as of 1.0.4) the best way to get the count from the result is to do the following
result.getResult()
.getRows()
.getRowByIndex(0)
.getColumns()
.getColumnByName("count")
.getLongValue()
from astyanax.
Related Issues (20)
- Starting an CqlKeyspace while all hosts are down results to empty session (Using JavaDriver) HOT 1
- plan to support cassandra 2.1 and on HOT 1
- java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.build()Lcom/google/common/cache/Cache; HOT 4
- Error while Shutting down tomcat while using astyanax library
- Remove log4j.xml from astyanax-core HOT 1
- read a part of object with chunked object store
- BadRequestException: Object Chunk storeage - InvalidRequestException - Astyanax
- Update DataStax version
- Update Cassandra Compatibility page
- Unexpected extraneous bytes after set value
- NodeDiscovery threads have non-unique name
- Cassandra Credentails
- Question regarding testGetAllKeysRoot method in ThriftKeyspaceImplTest.java HOT 1
- Nodes unreachable when upgrading from 2.2.5 to 3.0.9 on aws ec2snitch
- Wiki mentions DC Aware policy, but no such policy is defined in astyanax code
- Note that Astyanax is being retired? HOT 1
- API changes review for Astyanax Core
- astyanax-cql ships with version of Netty with known vulnerabilily HOT 1
- schema update
- https://github.com/Netflix/astyanax/wiki/Chunked-Object-Store
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astyanax.