зеркало из https://github.com/Azure/YCSB.git
Downgraded rados-java to 0.2.0 from 0.3.0-SNAPSHOT
This commit is contained in:
Родитель
e748b42a9f
Коммит
043c968843
|
@ -33,7 +33,8 @@ LICENSE file.
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.ceph</groupId>
|
<groupId>com.ceph</groupId>
|
||||||
<artifactId>rados</artifactId>
|
<artifactId>rados</artifactId>
|
||||||
<version>${rados.version}</version>
|
<!-- <version>${rados.version}</version> -->
|
||||||
|
<version>0.2.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.yahoo.ycsb</groupId>
|
<groupId>com.yahoo.ycsb</groupId>
|
||||||
|
|
|
@ -101,8 +101,12 @@ public class RadosClient extends DB {
|
||||||
ReadOp rop = ioctx.readOpCreate();
|
ReadOp rop = ioctx.readOpCreate();
|
||||||
ReadResult readResult = rop.queueRead(0, info.getSize());
|
ReadResult readResult = rop.queueRead(0, info.getSize());
|
||||||
// TODO: more size than byte length possible;
|
// TODO: more size than byte length possible;
|
||||||
rop.operate(key, Rados.OPERATION_NOFLAG);
|
// rop.operate(key, Rados.OPERATION_NOFLAG); // for rados-java 0.3.0
|
||||||
readResult.raiseExceptionOnError("Error ReadOP(%d)", readResult.getRVal());
|
rop.operate(key, 0);
|
||||||
|
// readResult.raiseExceptionOnError("Error ReadOP(%d)", readResult.getRVal()); // for rados-java 0.3.0
|
||||||
|
if (readResult.getRVal() < 0) {
|
||||||
|
throw new RadosException("Error ReadOP", readResult.getRVal());
|
||||||
|
}
|
||||||
if (info.getSize() != readResult.getBytesRead()) {
|
if (info.getSize() != readResult.getBytesRead()) {
|
||||||
return new Status("ERROR", "Error the object size read");
|
return new Status("ERROR", "Error the object size read");
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче