Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
YCSB
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
a9f5c045
Commit
a9f5c045
authored
7 years ago
by
Boris Osher
Committed by
Sean Busbey
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[s3] S3Client could not estimate read perfomance correctly (#1010)
closes #994
parent
385a3898
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
s3/src/main/java/com/yahoo/ycsb/db/S3Client.java
+5
-1
5 additions, 1 deletion
s3/src/main/java/com/yahoo/ycsb/db/S3Client.java
with
5 additions
and
1 deletion
s3/src/main/java/com/yahoo/ycsb/db/S3Client.java
+
5
−
1
View file @
a9f5c045
...
...
@@ -429,7 +429,11 @@ public class S3Client extends DB {
// writing the stream to bytes and to results
int
sizeOfFile
=
(
int
)
objectAndMetadata
.
getValue
().
getContentLength
();
byte
[]
inputStreamToByte
=
new
byte
[
sizeOfFile
];
objectData
.
read
(
inputStreamToByte
,
0
,
sizeOfFile
);
int
len
;
int
offset
=
0
;
while
((
len
=
objectData
.
read
(
inputStreamToByte
,
offset
,
sizeOfFile
-
offset
))
>
0
)
{
offset
+=
len
;
}
result
.
put
(
key
,
new
ByteArrayByteIterator
(
inputStreamToByte
));
objectData
.
close
();
objectAndMetadata
.
getKey
().
close
();
...
...
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