YahooArchive / omid

Transactional Support for HBase (Mirror of https://github.com/apache/incubator-omid)
http://omid.incubator.apache.org/
Apache License 2.0
302 stars 107 forks source link

problem with running tests with large number of rows #3

Closed maysamyabandeh closed 12 years ago

maysamyabandeh commented 12 years ago

at tso/ClientHandler.java which is to test the status oracle, here is the way we generate the row ids:

byte writtenSize = readOnly ? 0 : (byte) rnd.nextInt(MAX_ROW);

if MAX_ROW is larger than max unsigned byte (i.e., 127). then the result could be negative. This is because the byte sign is the 8th bit.