hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Dimiduk (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-11983) HRegion constructors should not create HLog
Date Wed, 14 Jan 2015 18:31:35 GMT

     [ https://issues.apache.org/jira/browse/HBASE-11983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nick Dimiduk updated HBASE-11983:
---------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: 1.1.0)
           Status: Resolved  (was: Patch Available)

Resolving against 2.0 only for now. I don't have resources necessary to validate the back
port to earlier branches. Can open a back port ticket in the future, especially if [~busbey]'s
future work needs back ported.

Thanks for reviews everyone!

> HRegion constructors should not create HLog 
> --------------------------------------------
>
>                 Key: HBASE-11983
>                 URL: https://issues.apache.org/jira/browse/HBASE-11983
>             Project: HBase
>          Issue Type: Bug
>          Components: wal
>            Reporter: Enis Soztutar
>            Assignee: Nick Dimiduk
>              Labels: beginner
>             Fix For: 2.0.0
>
>         Attachments: HBASE-11983.00-branch-1.patch, HBASE-11983.00.patch, HBASE-11983.01.patch,
HBASE-11983.02.patch, HBASE-11983.03.patch, HBASE-11983.03.patch, HBASE-11983.04.patch, HBASE-11983.05.patch
>
>
> We should get rid of HRegion creating its own HLog. It should ALWAYS get the log from
outside. 
> I think this was added for unit tests, but we should refrain from such practice in the
future (adding UT constructors always leads to weird and critical bugs down the road). See
recent: HBASE-11982, HBASE-11654. 
> Get rid of weird things like ignoreHLog:
> {code}
>   /**
>    * @param ignoreHLog - true to skip generate new hlog if it is null, mostly for createTable
>    */
>   public static HRegion createHRegion(final HRegionInfo info, final Path rootDir,
>                                       final Configuration conf,
>                                       final HTableDescriptor hTableDescriptor,
>                                       final HLog hlog,
>                                       final boolean initialize, final boolean ignoreHLog)
> {code}
> We can unify all the createXX and newXX methods and separate creating a region in the
file system vs opening a region. 



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

Mime
View raw message