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
1206bc8a
Commit
1206bc8a
authored
9 years ago
by
Connor McCoy
Browse files
Options
Downloads
Plain Diff
Merge pull request #498 from kruthar/verify-reporting
[core] added return codes to VERIFY
parents
d6e37c25
05d00f35
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
core/src/main/java/com/yahoo/ycsb/workloads/CoreWorkload.java
+7
-14
7 additions, 14 deletions
.../src/main/java/com/yahoo/ycsb/workloads/CoreWorkload.java
with
7 additions
and
14 deletions
core/src/main/java/com/yahoo/ycsb/workloads/CoreWorkload.java
+
7
−
14
View file @
1206bc8a
...
...
@@ -172,16 +172,6 @@ public class CoreWorkload extends Workload
*/
private
boolean
dataintegrity
;
/**
* Response values for data integrity checks.
* Need to be multiples of 1000 to match bucket offsets of
* measurements/OneMeasurementHistogram.java.
*/
private
final
int
DATA_INT_MATCH
=
0
;
private
final
int
DATA_INT_DEVIATE
=
1000
;
private
final
int
DATA_INT_UNEXPECTED_NULL
=
2000
;
/**
* The name of the property for the proportion of transactions that are reads.
*/
...
...
@@ -594,20 +584,23 @@ public class CoreWorkload extends Workload
* Bucket 2 means null data was returned when some data was expected.
*/
protected
void
verifyRow
(
String
key
,
HashMap
<
String
,
ByteIterator
>
cells
)
{
int
matchType
=
DATA_INT_MATCH
;
Status
verifyStatus
=
Status
.
OK
;
long
startTime
=
System
.
nanoTime
();
if
(!
cells
.
isEmpty
())
{
for
(
Map
.
Entry
<
String
,
ByteIterator
>
entry
:
cells
.
entrySet
())
{
if
(!
entry
.
getValue
().
toString
().
equals
(
buildDeterministicValue
(
key
,
entry
.
getKey
())))
{
matchType
=
DATA_INT_DEVI
ATE
;
verifyStatus
=
Status
.
UNEXPECTED_ST
ATE
;
break
;
}
}
}
else
{
//This assumes that null data is never valid
matchType
=
DATA_INT_UNEXPECTED_NULL
;
verifyStatus
=
Status
.
ERROR
;
}
Measurements
.
getMeasurements
().
measure
(
"VERIFY"
,
matchType
);
long
endTime
=
System
.
nanoTime
();
_measurements
.
measure
(
"VERIFY"
,
(
int
)
(
endTime
-
startTime
)
/
1000
);
_measurements
.
reportStatus
(
"VERIFY"
,
verifyStatus
);
}
int
nextKeynum
()
{
...
...
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