Closed maysamyabandeh closed 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.
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.