hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Kellerman (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-2) hlog numbers should wrap around when they reach 999
Date Thu, 07 Feb 2008 20:21:08 GMT

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

Jim Kellerman commented on HBASE-2:
-----------------------------------

Thinking about this some more, using a long is overkill, and to truly maintain sort order,
would need to be zero filled from the left.

A simple integer counter will suffice (although it too needs to be zero filled from the left
to preserve sort order). e.g.:

The following do not sort properly:

1
2
10

whereas the following do:

01
02
10


> hlog numbers should wrap around when they reach 999
> ---------------------------------------------------
>
>                 Key: HBASE-2
>                 URL: https://issues.apache.org/jira/browse/HBASE-2
>             Project: Hadoop HBase
>          Issue Type: Bug
>          Components: regionserver
>            Reporter: Billy Pearson
>            Assignee: Bryan Duxbury
>            Priority: Minor
>             Fix For: 0.2.0
>
>         Attachments: 2-v2.patch, 2.patch
>
>
> Question about log numbers -> Closing current log writer hdfs://10.0.0.1:9000/gfs_storage/hadoop-root/hbase/log_10.0.0.3_1201900440436_60020/hlog.dat.024
> What happens when the log get to hlog.dat.999

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message