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
19d8cb23
Commit
19d8cb23
authored
9 years ago
by
ivan
Browse files
Options
Downloads
Patches
Plain Diff
maxErrorRetry is configurable
parent
da8c7428
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
+3
-1
3 additions, 1 deletion
s3/src/main/java/com/yahoo/ycsb/db/S3Client.java
with
3 additions
and
1 deletion
s3/src/main/java/com/yahoo/ycsb/db/S3Client.java
+
3
−
1
View file @
19d8cb23
...
...
@@ -54,6 +54,7 @@ public class S3Client extends DB {
private
static
String
secretKey
;
private
static
String
endPoint
;
private
static
String
region
;
private
static
String
maxErrorRetry
;
private
static
BasicAWSCredentials
s3Credentials
;
private
static
AmazonS3Client
s3Client
;
private
static
ClientConfiguration
clientConfig
;
...
...
@@ -102,10 +103,11 @@ public class S3Client extends DB {
secretKey
=
props
.
getProperty
(
"s3.secretKey"
,
"secretKey"
);
endPoint
=
props
.
getProperty
(
"s3.endPoint"
,
"s3.amazonaws.com"
);
region
=
props
.
getProperty
(
"s3.region"
,
"us-east-1"
);
maxErrorRetry
=
props
.
getProperty
(
"s3.maxErrorRetry"
,
"15"
);
System
.
out
.
println
(
"Inizializing the S3 connection"
);
s3Credentials
=
new
BasicAWSCredentials
(
accessKeyId
,
secretKey
);
clientConfig
=
new
ClientConfiguration
();
clientConfig
.
setMaxErrorRetry
(
15
);
clientConfig
.
setMaxErrorRetry
(
Integer
.
parseInt
(
maxErrorRetry
)
);
try
{
s3Client
=
new
AmazonS3Client
(
s3Credentials
,
clientConfig
);
s3Client
.
setRegion
(
Region
.
getRegion
(
Regions
.
fromName
(
region
)));
...
...
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