hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-15632) Undo the checking of lastStoreFlushTimeMap.isEmpty() introduced in HBASE-13145
Date Tue, 12 Apr 2016 23:31:26 GMT

    [ https://issues.apache.org/jira/browse/HBASE-15632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15238245#comment-15238245
] 

Hudson commented on HBASE-15632:
--------------------------------

SUCCESS: Integrated in HBase-1.3 #644 (See [https://builds.apache.org/job/HBase-1.3/644/])
HBASE-15632 Undo the checking of lastStoreFlushTimeMap.isEmpty() (matteo.bertozzi: rev 40c1f39743e8cf408e76425267b8e61e441ad028)
* hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java


> Undo the checking of lastStoreFlushTimeMap.isEmpty() introduced in HBASE-13145
> ------------------------------------------------------------------------------
>
>                 Key: HBASE-15632
>                 URL: https://issues.apache.org/jira/browse/HBASE-15632
>             Project: HBase
>          Issue Type: Improvement
>          Components: regionserver
>    Affects Versions: 2.0.0
>            Reporter: huaxiang sun
>            Assignee: huaxiang sun
>            Priority: Minor
>             Fix For: 2.0.0, 1.3.0, 1.4.0
>
>         Attachments: HBASE-15632-v001.patch
>
>
> HBASE-13145 introduce the following check
> {code}
> diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
> index 215069c..8f73af5 100644
> --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
> +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
> @@ -1574,7 +1574,8 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver
{ //
>     */
>    @VisibleForTesting
>    public long getEarliestFlushTimeForAllStores() {
> -    return Collections.min(lastStoreFlushTimeMap.values());
> +    return lastStoreFlushTimeMap.isEmpty() ? Long.MAX_VALUE : Collections.min(lastStoreFlushTimeMap
> +        .values());
>    }
>  {code}
> I think the reason for the check is that table creation without family is allowed before
HBASE-15456. With HBASE-15456, table creation without family is not allowed. We have one user
claimed that they run into the same HRegionServer$PeriodicMemstoreFlusher exception, and the
table was created with family. The log was not kept so could not find more info there.  By
checking the code, it seems impossible. Can we undo this check so the real issue is not hidden
in case there is one, [~Apache9]?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message