You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@helix.apache.org by "Zhen Zhang (JIRA)" <ji...@apache.org> on 2014/01/16 02:58:19 UTC

[jira] [Resolved] (HELIX-356) add a tool for grep zk transaction/snapshot logs based on time

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

Zhen Zhang resolved HELIX-356.
------------------------------

    Resolution: Fixed

> add a tool for grep zk transaction/snapshot logs based on time
> --------------------------------------------------------------
>
>                 Key: HELIX-356
>                 URL: https://issues.apache.org/jira/browse/HELIX-356
>             Project: Apache Helix
>          Issue Type: Bug
>            Reporter: Zhen Zhang
>            Assignee: Zhen Zhang
>
>  - to grep a pattern by t1 use:
>  zkgrep --zkCfg zkCfg --by t1 --pattern patterns...
>  
>  - to grep a pattern between t1 and t2 use:
>  zkgrep --zkCfg zkCfg --between t1 t2 --pattern patterns...
>  
> for example, to find fail-over latency between t1 and t2, use:
> 1) zkgrep --zkCfg zkCfg --between t1 t2 --pattern "closeSession" | grep {fail-node session-id}
> 2) zkgrep --zkCfg zkCfg --between t1 t2 --pattern "/{cluster}" | grep "CURRENTSTATES" | grep "setData" | tail -1
>  
> fail-over latency = timestamp difference between 1) and 2)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)