Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
YCSB
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adnan Ahmad
YCSB
Commits
043c9688
Commit
043c9688
authored
9 years ago
by
Jaemyoun
Browse files
Options
Downloads
Patches
Plain Diff
Downgraded rados-java to 0.2.0 from 0.3.0-SNAPSHOT
parent
e748b42a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
rados/pom.xml
+6
-5
6 additions, 5 deletions
rados/pom.xml
rados/src/main/java/com/yahoo/ycsb/db/RadosClient.java
+6
-2
6 additions, 2 deletions
rados/src/main/java/com/yahoo/ycsb/db/RadosClient.java
with
12 additions
and
7 deletions
rados/pom.xml
+
6
−
5
View file @
043c9688
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
<!--
Copyright (c) 2016 YCSB contributors. All rights reserved.
Copyright (c) 2016 YCSB contributors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you
Licensed under the Apache License, Version 2.0 (the "License"); you
...
@@ -24,16 +24,17 @@ LICENSE file.
...
@@ -24,16 +24,17 @@ LICENSE file.
<version>
0.8.0-SNAPSHOT
</version>
<version>
0.8.0-SNAPSHOT
</version>
<relativePath>
../binding-parent
</relativePath>
<relativePath>
../binding-parent
</relativePath>
</parent>
</parent>
<artifactId>
rados-binding
</artifactId>
<artifactId>
rados-binding
</artifactId>
<name>
rados of Ceph FS binding
</name>
<name>
rados of Ceph FS binding
</name>
<packaging>
jar
</packaging>
<packaging>
jar
</packaging>
<dependencies>
<dependencies>
<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>
...
@@ -47,7 +48,7 @@ LICENSE file.
...
@@ -47,7 +48,7 @@ LICENSE file.
<version>
${json.version}
</version>
<version>
${json.version}
</version>
</dependency>
</dependency>
</dependencies>
</dependencies>
<properties>
<properties>
<rados.version>
0.3.0-SNAPSHOT
</rados.version>
<rados.version>
0.3.0-SNAPSHOT
</rados.version>
<json.version>
20160212
</json.version>
<json.version>
20160212
</json.version>
...
...
This diff is collapsed.
Click to expand it.
rados/src/main/java/com/yahoo/ycsb/db/RadosClient.java
+
6
−
2
View file @
043c9688
...
@@ -101,8 +101,12 @@ public class RadosClient extends DB {
...
@@ -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"
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment