You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by "Charles Xie (JIRA)" <ji...@apache.org> on 2014/12/04 03:25:12 UTC

[jira] [Updated] (BOOKKEEPER-809) Wrong metric on LedgerDeleteOp and LedgerOpenOp

     [ https://issues.apache.org/jira/browse/BOOKKEEPER-809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Charles Xie updated BOOKKEEPER-809:
-----------------------------------
    Attachment: BOOKKEEPER-809.patch

Attach a patch to fix the metrics

> Wrong metric on LedgerDeleteOp and LedgerOpenOp
> -----------------------------------------------
>
>                 Key: BOOKKEEPER-809
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-809
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-client
>    Affects Versions: 4.3.0
>            Reporter: Charles Xie
>         Attachments: BOOKKEEPER-809.patch
>
>
> These two operations uses startTime as the latency for metric, which is wrong. 
> {code}
>     void openComplete(int rc, LedgerHandle lh) {
>         if (BKException.Code.OK != rc) {
>             openOpLogger.registerFailedEvent(startTime);
>         } else {
>             openOpLogger.registerSuccessfulEvent(startTime);
>         }
>         cb.openComplete(rc, lh, ctx);
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)