Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-5633

Add table name info to scan logging

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.15.0
    • 5.1.0, 4.15.1, 4.16.0
    • None

    Description

      We log the scans at the debug level at various places such as inside BaseQueryPlan, BaseResultIterators, Parallelterators, etc. To help with debugging, we should also print the table name that the scan will be scanning. An example of a log line for a scan currently, is:

      19/12/16 22:10:38 DEBUG execute.BaseQueryPlan: Scan ready for iteration: {"loadColumnFamiliesOnDemand":true,"startRow":"","stopRow":"","batch":-1,"cacheBlocks":true,"totalColumns":1,"maxResultSize":-1,"families":{"0":["ALL"]},"caching":2147483647,"maxVersions":1,"timeRange":[0,9223372036854775807]}
      

      OR

      19/12/16 22:10:38 DEBUG iterate.BaseResultIterators: Getting iterators for ResultIterators [name=PARALLEL,id=1de62127-8ce9-b8d0-4881-6eaec8835ea5,scans=[[{"loadColumnFamiliesOnDemand":true,"startRow":"","stopRow":"","batch":-1,"cacheBlocks":true,"totalColumns":1,"maxResultSize":-1,"families":{"0":["ALL"]},"caching":2147483647,"maxVersions":1,"timeRange":[0,9223372036854775807]}]]]
      
      19/12/16 22:10:38 DEBUG iterate.ParallelIterators: Id: 1de62127-8ce9-b8d0-4881-6eaec8835ea5, Time: 0ms, Scan: {"loadColumnFamiliesOnDemand":true,"startRow":"","stopRow":"","batch":-1,"cacheBlocks":true,"totalColumns":1,"maxResultSize":-1,"families":{"0":["ALL"]},"caching":2147483647,"maxVersions":1,"timeRange":[0,9223372036854775807]}
      

      Attachments

        1. PHOENIX-5633.master.v5.patch
          3 kB
          Chinmay Kulkarni
        2. PHOENIX-5633.master.v4.patch
          3 kB
          Christine Feng
        3. PHOENIX-5633.master.v3.patch
          3 kB
          Christine Feng
        4. PHOENIX-5633.master.v2.patch
          3 kB
          Christine Feng
        5. PHOENIX-5633.master.v1.patch
          5 kB
          Christine Feng
        6. PHOENIX-5633.4.x-HBase-1.3.v1.patch
          3 kB
          Christine Feng

        Activity

          People

            christine.feng Christine Feng
            ckulkarni Chinmay Kulkarni
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: