You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Michael Han (JIRA)" <ji...@apache.org> on 2019/06/11 23:37:00 UTC

[jira] [Created] (ZOOKEEPER-3427) Introduce SnapshotComparer that assists debugging with snapshots.

Michael Han created ZOOKEEPER-3427:
--------------------------------------

             Summary: Introduce SnapshotComparer that assists debugging with snapshots.
                 Key: ZOOKEEPER-3427
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3427
             Project: ZooKeeper
          Issue Type: Improvement
          Components: server
    Affects Versions: 3.6.0
            Reporter: Michael Han
            Assignee: Michael Han


SnapshotComparer is a tool that loads and compares two snapshots, with configurable threshold and various filters. It's useful in use cases that involve snapshot analysis, such as offline data consistency checking, and data trending analysis (e.g. what's growing under which zNode path during when). 

A sample output of the tool (actual numbers removed, due to sensitivity).
{code:java}
Successfully parsed options!

Deserialized snapshot in snapshot.0 in  seconds

Processed data tree in seconds

Deserialized snapshot in snapshot.1 in  seconds

Processed data tree in seconds

Node count: 

Total size: 

Max depth: 

Count of nodes at depth 1: 

Count of nodes at depth 2: 

Count of nodes at depth 3: 

Count of nodes at depth 4: 

Count of nodes at depth 5: 

Count of nodes at depth 6: 

Count of nodes at depth 7: 

Count of nodes at depth 8: 

Count of nodes at depth 9: 

Count of nodes at depth 10: 

Count of nodes at depth 11: 


Node count: 

Total size: 

Max depth: 

Count of nodes at depth 1: 

Count of nodes at depth 2: 

Count of nodes at depth 3: 

Count of nodes at depth 4: 

Count of nodes at depth 5:

Count of nodes at depth 6:

Count of nodes at depth 7: 

Count of nodes at depth 8: 

Count of nodes at depth 9: 

Count of nodes at depth 10: 

Count of nodes at depth 11: 




Analysis for depth 0

Analysis for depth 1

Analysis for depth 2

Analysis for depth 3

Analysis for depth 4

Analysis for depth 5

Analysis for depth 6

Analysis for depth 7

Analysis for depth 8

Analysis for depth 9

Analysis for depth 10
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)