You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Amitanand Aiyer (Created) (JIRA)" <ji...@apache.org> on 2011/10/05 20:42:30 UTC

[jira] [Created] (HBASE-4543) major_compact '.META.' has no effect

major_compact '.META.' has no effect
------------------------------------

                 Key: HBASE-4543
                 URL: https://issues.apache.org/jira/browse/HBASE-4543
             Project: HBase
          Issue Type: Bug
            Reporter: Amitanand Aiyer
            Priority: Minor


major_compact '.META.' has no effect, although major_compact 'any_other_table' works fine from the shell.

The issue is that getTableRegions() in HMaster.java only works if the tableName given is a "normal" table.
The methodology (using a MetaScanner to look through the .META. table for the tableName) does not work if
the tableName is .META.

The fix modifies getTableRegions() to check if the tableName is .META.; and if so, handle it accordingly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4543) major_compact '.META.' has no effect

Posted by "stack (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13151574#comment-13151574 ] 

stack commented on HBASE-4543:
------------------------------

Its working in trunk.  I see these messages when I tried it just now:

{code}
2011-11-16 22:20:53,676 DEBUG org.apache.hadoop.hbase.regionserver.CompactSplitThread: Small Compaction requested: regionName=.META.,,1.1028785192, storeName=info, fileCount=1, fileSize=582.8k (582.8k), priority=1, time=9000612904273038; Because: User-triggered major compaction; compaction_queue=(0:0), split_queue=0
{code}

(Notice the 'User-triggered...')
                
> major_compact '.META.' has no effect
> ------------------------------------
>
>                 Key: HBASE-4543
>                 URL: https://issues.apache.org/jira/browse/HBASE-4543
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.89.20100621, 0.89.20100924
>            Reporter: Amitanand Aiyer
>            Assignee: Amitanand Aiyer
>            Priority: Minor
>         Attachments: 0001-fix-the-issue-of-.META.-getting-ignored.patch
>
>
> major_compact '.META.' has no effect, although major_compact 'any_other_table' works fine from the shell.
> This issue seems to only affect 0.89. The apache-trunk seems to handle this case properly.
> The issue is that getTableRegions() in HMaster.java only works if the tableName given is a "normal" table.
> The methodology (using a MetaScanner to look through the .META. table for the tableName) does not work if
> the tableName is .META.
> The fix modifies getTableRegions() to check if the tableName is .META.; and if so, handle it accordingly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4543) major_compact '.META.' has no effect

Posted by "Nicolas Spiegelberg (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13151538#comment-13151538 ] 

Nicolas Spiegelberg commented on HBASE-4543:
--------------------------------------------

does this occur in trunk?  can we get a patch for this?
                
> major_compact '.META.' has no effect
> ------------------------------------
>
>                 Key: HBASE-4543
>                 URL: https://issues.apache.org/jira/browse/HBASE-4543
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.89.20100621, 0.89.20100924
>            Reporter: Amitanand Aiyer
>            Assignee: Amitanand Aiyer
>            Priority: Minor
>         Attachments: 0001-fix-the-issue-of-.META.-getting-ignored.patch
>
>
> major_compact '.META.' has no effect, although major_compact 'any_other_table' works fine from the shell.
> This issue seems to only affect 0.89. The apache-trunk seems to handle this case properly.
> The issue is that getTableRegions() in HMaster.java only works if the tableName given is a "normal" table.
> The methodology (using a MetaScanner to look through the .META. table for the tableName) does not work if
> the tableName is .META.
> The fix modifies getTableRegions() to check if the tableName is .META.; and if so, handle it accordingly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-4543) major_compact '.META.' has no effect

Posted by "Amitanand Aiyer (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amitanand Aiyer updated HBASE-4543:
-----------------------------------

    Attachment: 0001-fix-the-issue-of-.META.-getting-ignored.patch

was not able to upload the patch to review board. just uploading it here.
                
> major_compact '.META.' has no effect
> ------------------------------------
>
>                 Key: HBASE-4543
>                 URL: https://issues.apache.org/jira/browse/HBASE-4543
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.89.20100621, 0.89.20100924
>            Reporter: Amitanand Aiyer
>            Assignee: Amitanand Aiyer
>            Priority: Minor
>         Attachments: 0001-fix-the-issue-of-.META.-getting-ignored.patch
>
>
> major_compact '.META.' has no effect, although major_compact 'any_other_table' works fine from the shell.
> This issue seems to only affect 0.89. The apache-trunk seems to handle this case properly.
> The issue is that getTableRegions() in HMaster.java only works if the tableName given is a "normal" table.
> The methodology (using a MetaScanner to look through the .META. table for the tableName) does not work if
> the tableName is .META.
> The fix modifies getTableRegions() to check if the tableName is .META.; and if so, handle it accordingly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-4543) major_compact '.META.' has no effect

Posted by "Amitanand Aiyer (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amitanand Aiyer updated HBASE-4543:
-----------------------------------

          Description: 
major_compact '.META.' has no effect, although major_compact 'any_other_table' works fine from the shell.

This issue seems to only affect 0.89. The apache-trunk seems to handle this case properly.


The issue is that getTableRegions() in HMaster.java only works if the tableName given is a "normal" table.
The methodology (using a MetaScanner to look through the .META. table for the tableName) does not work if
the tableName is .META.

The fix modifies getTableRegions() to check if the tableName is .META.; and if so, handle it accordingly.

  was:
major_compact '.META.' has no effect, although major_compact 'any_other_table' works fine from the shell.

The issue is that getTableRegions() in HMaster.java only works if the tableName given is a "normal" table.
The methodology (using a MetaScanner to look through the .META. table for the tableName) does not work if
the tableName is .META.

The fix modifies getTableRegions() to check if the tableName is .META.; and if so, handle it accordingly.

    Affects Version/s: 0.89.20100621
                       0.89.20100924
    
> major_compact '.META.' has no effect
> ------------------------------------
>
>                 Key: HBASE-4543
>                 URL: https://issues.apache.org/jira/browse/HBASE-4543
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.89.20100621, 0.89.20100924
>            Reporter: Amitanand Aiyer
>            Assignee: Amitanand Aiyer
>            Priority: Minor
>
> major_compact '.META.' has no effect, although major_compact 'any_other_table' works fine from the shell.
> This issue seems to only affect 0.89. The apache-trunk seems to handle this case properly.
> The issue is that getTableRegions() in HMaster.java only works if the tableName given is a "normal" table.
> The methodology (using a MetaScanner to look through the .META. table for the tableName) does not work if
> the tableName is .META.
> The fix modifies getTableRegions() to check if the tableName is .META.; and if so, handle it accordingly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (HBASE-4543) major_compact '.META.' has no effect

Posted by "Amitanand Aiyer (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amitanand Aiyer reassigned HBASE-4543:
--------------------------------------

    Assignee: Amitanand Aiyer
    
> major_compact '.META.' has no effect
> ------------------------------------
>
>                 Key: HBASE-4543
>                 URL: https://issues.apache.org/jira/browse/HBASE-4543
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Amitanand Aiyer
>            Assignee: Amitanand Aiyer
>            Priority: Minor
>
> major_compact '.META.' has no effect, although major_compact 'any_other_table' works fine from the shell.
> The issue is that getTableRegions() in HMaster.java only works if the tableName given is a "normal" table.
> The methodology (using a MetaScanner to look through the .META. table for the tableName) does not work if
> the tableName is .META.
> The fix modifies getTableRegions() to check if the tableName is .META.; and if so, handle it accordingly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira