hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerry He (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-16455) Provide API for obtaining highest file number among all the WAL files
Date Sun, 21 Aug 2016 22:19:21 GMT

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

Jerry He commented on HBASE-16455:
----------------------------------

Hi, Ted

My feeling is that exposing the filenum as region server level API does not seem to be good
fit.
filenum is specific internal at the fs Provider or fs WAL level.  At the region server level,
we deal with the WALFactory or WAL interfaces.

How about we do this:
Have a API in the region server service level to return a list/array of WALs that belong to
this region server. This makes sense given the support for multiwal,
You can overload the current getWAL(), or add a new API.
The current backup relies on FsWal and relies on knowing its internals, which is ok. It can
cast WAL to FsWal and obtain and calculate what it needs.


> Provide API for obtaining highest file number among all the WAL files
> ---------------------------------------------------------------------
>
>                 Key: HBASE-16455
>                 URL: https://issues.apache.org/jira/browse/HBASE-16455
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>             Fix For: 2.0.0, 1.4.0
>
>         Attachments: 16455.v1.txt, 16455.v2.txt, 16455.v3.txt
>
>
> Currently RegionServerServices has the following API:
> {code}
>   WAL getWAL(HRegionInfo regionInfo) throws IOException;
> {code}
> Caller can only obtain filenum for a specific WAL.
> When multi wal is in use, we should add API for obtaining highest file number among all
the outstanding WAL files.
> User can pass null to getWAL() method above, but the filenum for the returned WAL may
not be the highest among all the WAL files.
> See log snippet in the first comment.



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

Mime
View raw message