Comments (4)
Hi Shay,
ByteIterator.toArray()
and ByteIterator.toString().getBytes()
should return the same byte array. Could you try something like this and see what ByteIterator.toArray()
is returning?
private Map<String, byte[]> convertToBytearrayMap(Map<String,ByteIterator> values) {
Map<String, byte[]> retVal = new HashMap<String, byte[]>();
for (String key : values.keySet()) {
System.out.println("key: " + key + ", bytesLeft: " + values.get(key).bytesLeft());
byte[] value = values.get(key).toArray();
System.out.println("value size: " + value.length);
System.out.println("key: " + key + ", bytesLeft: " + values.get(key).bytesLeft());
retVal.put(key, value);
}
return retVal;
}
Thanks!
--Michi
from ycsb.
@ShayHassidim - also something that may impact gemfire is that we recently merged a gemfire change that fixed a bug, #123. It might be worth pulling a fresh copy of the codebase.
from ycsb.
I think this issue comes down to incorrect handling of String <-> byte[]. In addition to #279, StringByteIterator incorrectly uses the String's character length to determine how many bytes should be made and then incorrectly pulls each character and truncates it to a byte.
That means for Strings made up of non-ascii, toArray()
will return a smaller array than if you immediately call toString().getBytes()
(if you don't call toString immediately then you get the wrong answer still).
from ycsb.
Fixed by #288
from ycsb.
Related Issues (20)
- Can we benchmark DynamoDB with DAX ?
- May anyone can give me the address of YCSB+T HOT 2
- Extremely high latencies when using measurement.interval=both to address coordinated omission
- Benchmarking sharded cluster mongodb with YCSB HOT 8
- @kruthar - I resolved this issue for myself by setting a maximum timeout for individual requests, in CRUD operations, in the client-binding. (Implementation was simply running a timer thread in parallel to stop the operation if it exceeded the given time limit.)
- builld error when run rocksdb benchmark
- Error on benchmarking Google Datastore: Commit not found HOT 1
- unable to connect to mongodb using mondb+srv connection HOT 9
- add support for zOS DB2 via jdbc
- `core` dependencies not being installed HOT 1
- Could not test memcached db HOT 1
- The file properties doesn't exist java.lang.NullPointerException: inStream parameter is null
- About the cassandra-driver-core version.
- How to control skewness in workload configuration file without recompiling?
- How to generate a workload trace file, such as : `ycsb-c-1m`?
- User defined data pattern during load phase
- How to extend YCSB to support multiple column families when load RocksDB interface HOT 2
- mongodb appear READ-FAILED and UPDATE-FAILED HOT 1
- Is this project active?
- How to generate keys which have variable length?
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 ycsb.