Skip to content
Browse files

Fixed a bug in insert() and delete().Added link to YCSB wiki and corr…

…ected typo in README.Removed extra space in properties file
  • Loading branch information...
1 parent c65c53d commit e328775a1378a9cfa6d8f992787d1774ad64c7c4 @jananin committed Oct 22, 2012
View
7 dynamodb/README
@@ -3,10 +3,13 @@ CONFIGURE
YCSB_HOME - YCSB home directory
DYNAMODB_HOME - Amazon DynamoDB package files
+Please refer to https://github.com/brianfrankcooper/YCSB/wiki/Using-the-Database-Libraries
+for more information on setup.
+
BENCHMARK
-$YCSB_HOME/bin/ycsb load dynamodb -P worklaods/workloada -P dynamodb.properties
-$YCSB_HOME/bin/ycsb run dynamodb -P worklaods/workloada -P dynamodb.properties
+$YCSB_HOME/bin/ycsb load dynamodb -P workloads/workloada -P dynamodb.properties
+$YCSB_HOME/bin/ycsb run dynamodb -P workloads/workloada -P dynamodb.properties
PROPERTIES
View
2 dynamodb/conf/dynamodb.properties
@@ -17,7 +17,7 @@
#dynamodb.endpoint = http://dynamodb.us-east-1.amazonaws.com
# Strongly recommended to set to uniform.Refer FAQs in README
-#requestdistribution = uniform
+#requestdistribution = uniform
# Enable/disable debug messages.Defaults to false
# "true" or "false"
View
6 dynamodb/src/main/java/com/yahoo/ycsb/db/DynamoDBClient.java
@@ -200,7 +200,7 @@ public int scan(String table, String startkey, int recordcount,
}
startKey = res.getLastEvaluatedKey();
- }
+ }
return OK;
}
@@ -249,7 +249,7 @@ public int insert(String table, String key,HashMap<String, ByteIterator> values)
logger.error(ex.getMessage());
return CLIENT_ERROR;
}
- return res.getConsumedCapacityUnits().intValue();
+ return OK;
}
@Override
@@ -267,7 +267,7 @@ public int delete(String table, String key) {
logger.error(ex.getMessage());
return CLIENT_ERROR;
}
- return res.getConsumedCapacityUnits().intValue();
+ return OK;
}
private static Map<String, AttributeValue> createAttributes(

0 comments on commit e328775

Please sign in to comment.
Something went wrong with that request. Please try again.