Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-5609

Add the ability to pass additional information for slow query logging

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.94.1
    • Client, IPC/RPC
    • None
    • Reviewed
    • Hide
      Added the ability to add identifiers to client operations. These identifiers will be output with slow query logging. The could be used to identify the piece of code that initiated the operation. This could be anything from a module name to a class.method with a line number.
      Show
      Added the ability to add identifiers to client operations. These identifiers will be output with slow query logging. The could be used to identify the piece of code that initiated the operation. This could be anything from a module name to a class.method with a line number.

    Description

      HBase-4117 added the ability to log information about queries that returned too much data or ran for too long. There is some information written as a fingerprint that can be used to tell what table/column families/... are affected. I would like to extend this functionality to allow the client to insert an identifier into the operation that gets output in the log. The idea behind this would be that if there were N places in the client application that touched a given table in a certain way, you could quickly narrow things down by inserting a className:functionName or similar identifier. I'm fully willing to go back on this if people think that it isn't a problem in real life and it would just add complexity to the code.

      Attachments

        1. HBASE-5609.patch
          5 kB
          Michael Drzal
        2. HBASE-5609-v2.patch
          5 kB
          Michael Drzal
        3. HBASE-5609-v3.patch
          5 kB
          Michael Drzal
        4. HBASE-5609-v4.patch
          5 kB
          Michael Stack
        5. HBASE-5609-v4-094.txt
          5 kB
          Michael Stack

        Issue Links

          Activity

            People

              mdrzal Michael Drzal
              mdrzal Michael Drzal
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: