Skip to content

Commit d3c31ca

Browse files
committed
stats: fix metric used for flush
1 parent 4e51d19 commit d3c31ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/dcache/nearline/cta/CtaNearlineStorage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public void completed(Set<URI> uris) {
268268
};
269269

270270
var ar = ctaRequestFactory.getStoreRequest(r, ctaArchiveId);
271-
var response = withStats(Action.CANCEL_FLUSH, () -> cta.withDeadline(getRequestDeadline()).archive(ar));
271+
var response = withStats(Action.SUBMIT_FLUSH, () -> cta.withDeadline(getRequestDeadline()).archive(ar));
272272

273273
LOGGER.info("{} : {} : archive id {}, request: {}",
274274
r.getId(),
@@ -559,7 +559,7 @@ PendingRequest getRequest(String id) {
559559

560560
/**
561561
* Convert a given Throwable into CacheException to ensure serialization.
562-
* @param e origianl exception.
562+
* @param e original exception.
563563
* @return corresponding cache exception
564564
*/
565565
private CacheException asCacheException(Throwable e) {

0 commit comments

Comments
 (0)