Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-14982

Improve the kafka-metadata-quorum output

    XMLWordPrintableJSON

Details

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

    Description

      When running kafka-metadata-quorum script to get the quorum replication status, I found the LastFetchTimestamp and LastCaughtUpTimestamp output is not human readable. The timestamp 1683701749161 is just a random integer to me. We should convert it into date/time (ex: May 10, 08:00 UTC), or if possible, convert it into strings like "10 seconds ago", "5 minutes ago"...

       

       

       % ./bin/kafka-metadata-quorum.sh --bootstrap-server localhost:9092 describe --replication
      NodeId    LogEndOffset    Lag    LastFetchTimestamp    LastCaughtUpTimestamp    Status      
      1         166             0      1683701749161         1683701749161            Leader      
      6         166             0      1683701748776         1683701748776            Follower    
      7         166             0      1683701748773         1683701748773            Follower    
      2         166             0      1683701748766         1683701748766            Observer 

       

       

      Attachments

        Issue Links

          Activity

            People

              fvaleri Federico Valeri
              showuon Luke Chen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: