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

RowCounter logic for DefaultStatisticsCollector is incorrect for tables with multiple CF

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      DefaultStatisticsCollector#collectStatistics() method increments a counter to keep track of unique rows that has been read. However, currently we increment the counter twice for a table with two column families. Since the row key remains same across CF's, the counter should be incremented once only. famMap is the local variable to keep track of CF's seen so far across all cells from the result.

      The relevant piece of code is: 

      if (famMap.get(cfKey) == null) {
          famMap.put(cfKey, true);
          gps.getSecond().incrementRowCount();
      } 

      Attachments

        Activity

          People

            Unassigned Unassigned
            karanmehta93 Karan Mehta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: