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

[replication] replication metrics value AgeOfLastShippedOp is not set correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.94.1
    • 0.92.2, 0.94.2
    • Replication
    • None
    • Reviewed

    Description

      From code below we can see AgeOfLastShippedOp is not set correctly

      ReplicationSource.java
      // entriesArray init
        public void init(){
          this.entriesArray = new HLog.Entry[this.replicationQueueNbCapacity];
          for (int i = 0; i < this.replicationQueueNbCapacity; i++) {
            this.entriesArray[i] = new HLog.Entry();
          }
      
      }
      
      //set the metrics value should not get the array length
      
      protected void shipEdits() {
      ...
              this.metrics.setAgeOfLastShippedOp(
                  this.entriesArray[this.entriesArray.length-1].getKey().getWriteTime());
      ...
      }
      
      

      Attachments

        1. jira-6623.patch
          0.8 kB
          terry zhang

        Activity

          People

            terry_zhang terry zhang
            terry_zhang terry zhang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: