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
776ec892
Commit
776ec892
authored
9 years ago
by
nygard_89
Browse files
Options
Downloads
Patches
Plain Diff
[riak] Changed FetchValue.Option in update() transaction function.
parent
122b5b59
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
riak/src/main/java/com/yahoo/ycsb/db/riak/RiakKVClient.java
+4
-1
4 additions, 1 deletion
riak/src/main/java/com/yahoo/ycsb/db/riak/RiakKVClient.java
with
4 additions
and
1 deletion
riak/src/main/java/com/yahoo/ycsb/db/riak/RiakKVClient.java
+
4
−
1
View file @
776ec892
...
...
@@ -468,7 +468,7 @@ public final class RiakKVClient extends DB {
object
.
getIndexes
().
getIndex
(
LongIntIndex
.
named
(
"key_int"
)).
add
(
getKeyAsLong
(
key
));
UpdateValue
update
=
new
UpdateValue
.
Builder
(
location
)
.
withFetchOption
(
FetchValue
.
Option
.
DELETED_VCLOCK
,
tr
ue
)
.
withFetchOption
(
FetchValue
.
Option
.
R
,
rval
ue
)
.
withStoreOption
(
Option
.
W
,
wvalue
)
.
withUpdate
(
new
UpdateEntity
(
object
))
.
build
();
...
...
@@ -479,6 +479,9 @@ public final class RiakKVClient extends DB {
// For some reason, the update transaction doesn't throw any exception when no cluster has been started, so one
// needs to check whether it was done or not. When calling the wasUpdated() function with no nodes available, a
// NullPointerException is thrown.
// Moreover, such exception could be thrown when more threads are trying to update the same key or, more
// generally, when the system is being queried by many clients (i.e. overloaded). This is a known limitation of
// Riak KV's strong consistency implementation.
future
.
get
(
transactionTimeLimit
,
TimeUnit
.
SECONDS
).
wasUpdated
();
}
catch
(
TimeoutException
e
)
{
if
(
debug
)
{
...
...
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