Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-3332

TxnLogToolkit should print multi transactions readably

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.6.0
    • None

    Description

      Currently, LogFormatter shows multi transactions like the following and it's not readable:

      3/23/19 7:35:21 AM UTC session 0x3699141c4080020 cxid 0x21 zxid 0x1000002d9 multi v{s{1,#000292f726d73746f72652f5a4b524d5374617465526f6f742f524d5f5a4b5f46454e43494e475f4c4f434b000000010001f0005776f726c640006616e796f6e6500001c},s{5,#000312f726d73746f72652f5a4b524d5374617465526f6f742f414d524d546f6b656e5365637265744d616e61676572526f6f7400012a108ffffffe0fffffffdffffff92fffffff15128fffffff5ffffff9a731174ffffffa8ffffff86ffffffb40009},s{2,#000292f726d73746f72652f5a4b524d5374617465526f6f742f524d5f5a4b5f46454e43494e475f4c4f434b}}
      

      Like delete and setData as the following, LogFormatter should print multi transactions readably:

      3/22/19 7:20:48 AM UTC session 0x2699141c3f70022 cxid 0x885 zxid 0x1000002cc delete '/hbase-unsecure/region-in-transition/d6694b5f7ec2c45f6096fe373c8a34bc
      
      3/22/19 7:20:50 AM UTC session 0x2699141c3f70024 cxid 0x47 zxid 0x1000002cd setData '/hbase-unsecure/region-in-transition/a9c6dac76ce74812196667ebc01dad51,#ffffffff0001a726567696f6e7365727665723a313630323035617afffffffa42ffffff94ffffffe81f5042554684123f53595354454d2e434154414c4f472c2c313535333233313233393533352e61396336646163373663653734383132313936363637656263303164616435312e18ffffffe9ffffffa8ffffff98ffffffa2ffffff9a2d2228a1c633132362d6e6f6465342e7371756164726f6e2d6c6162732e636f6d10ffffff947d18ffffffcffffffffbffffff96ffffffa2ffffff9a2d,2
      

      Attachments

        Issue Links

          Activity

            People

              maoling Ling Mao
              brfrn169 Toshihiro Suzuki
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m