Skip to content

Commit

Permalink
Fix issue #222: completed operation count is mismatching with configu…
Browse files Browse the repository at this point in the history
…red totalOps

Signed-off-by: ywang19 <yaguang.wang@intel.com>
  • Loading branch information
ywang19 committed Dec 15, 2014
1 parent 0e71eba commit 3a84f33
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public static void doDispose(String conName, Config config, Session session) {
try {
session.getApi().deleteContainer(conName, config);
} catch (StorageInterruptedException sie) {
doLogErr(session.getLogger(), sie.getMessage(), sie);
throw new AbortedException();
} catch (StorageException se) {
String msg = "Error deleting container " + conName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public static Sample doDelete(String conName, String objName,
try {
session.getApi().deleteObject(conName, objName, config);
} catch (StorageInterruptedException sie) {
doLogErr(session.getLogger(), sie.getMessage(), sie);
throw new AbortedException();
} catch (StorageException se) {
String msg = "Error deleting object " + conName + ": " + objName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ public Sample doWrite(InputStream in, long length, String conName, String objNam
try {
session.getApi().createObject(conName, objName, cin, length, config);
} catch (StorageInterruptedException sie) {
doLogErr(session.getLogger(), sie.getMessage(), sie);
throw new AbortedException();
} catch (Exception e) {
isUnauthorizedException(e, session);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ private Sample doList(OutputStream out, String conName, String objName,
copyLarge(in, cout);
xferTime = System.currentTimeMillis() - xferStart;
} catch (StorageInterruptedException sie) {
doLogErr(session.getLogger(), sie.getMessage(), sie);
throw new AbortedException();
} catch (Exception e) {
isUnauthorizedException(e, session);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ public static void doInit(String conName, Config config, Session session) {
try {
session.getApi().createContainer(conName, config);
} catch (StorageInterruptedException sie) {
doLogErr(session.getLogger(), sie.getMessage(), sie);
throw new AbortedException();
}catch(StorageException se) {
isUnauthorizedException(se, session);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ private Sample doRead(OutputStream out, String conName, String objName,
return new Sample(new Date(), getId(), getOpType(),
getSampleType(), getName(), false);
} catch (StorageInterruptedException sie) {
doLogErr(session.getLogger(), sie.getMessage(), sie);
throw new AbortedException();
} catch (Exception e) {
isUnauthorizedException(e, session);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public static Sample doWrite(InputStream in, long length, String conName,
session.getApi()
.createObject(conName, objName, cin, length, config);
} catch (StorageInterruptedException sie) {
doLogErr(session.getLogger(), sie.getMessage(), sie);
throw new AbortedException();
} catch (Exception e) {
isUnauthorizedException(e, session);
Expand Down

0 comments on commit 3a84f33

Please sign in to comment.