You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2013/07/04 18:48:04 UTC

svn commit: r1499807 - /hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/compactions/CompactionRequest.java

Author: stack
Date: Thu Jul  4 16:48:04 2013
New Revision: 1499807

URL: http://svn.apache.org/r1499807
Log:
HBASE-8869 incorrect javadoc for CompactionRequest.compareTo()

Modified:
    hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/compactions/CompactionRequest.java

Modified: hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/compactions/CompactionRequest.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/compactions/CompactionRequest.java?rev=1499807&r1=1499806&r2=1499807&view=diff
==============================================================================
--- hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/compactions/CompactionRequest.java (original)
+++ hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/compactions/CompactionRequest.java Thu Jul  4 16:48:04 2013
@@ -108,10 +108,9 @@ public class CompactionRequest implement
    * priorities are the same it will first compare priority then date
    * to maintain a FIFO functionality.
    *
-   * <p>Note: The date is only accurate to the millisecond which means it is
-   * possible that two requests were inserted into the queue within a
-   * millisecond.  When that is the case this function will break the tie
-   * arbitrarily.
+   * <p>Note: The enqueue timestamp is accurate to the nanosecond. if two
+   * requests have same timestamp then this function will break the tie
+   * arbitrarily with hashCode() comparing.
    */
   @Override
   public int compareTo(CompactionRequest request) {