You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by sahanashankar <sa...@gmail.com> on 2014/10/20 17:52:33 UTC

can read operation be performed during the execution of major compaction

Hello,

I am trying to understand the working of major compaction and i am wondering
if a read operation can be performed while the major compaction process is
running on HBase. Will the read operation be queued and start after major
compaction has finished executing? or can both execute together? 

To be more general, will only the particular region be blocked during major
compaction or will the entire RegionServer hosting the region be blocked ? 

Thanks in advance
Sahana



--
View this message in context: http://apache-hbase.679495.n3.nabble.com/can-read-operation-be-performed-during-the-execution-of-major-compaction-tp4065208.html
Sent from the HBase User mailing list archive at Nabble.com.

Re: can read operation be performed during the execution of major compaction

Posted by sahanashankar <sa...@gmail.com>.
Thank u so much for your response.

It makes sense to me now.



On 20 Oct 2014 20:27, "Elliott Clark-3 [via Apache HBase]" <
ml-node+s679495n4065210h82@n3.nabble.com> wrote:

> No read operations are not blocked by any compactions.
>
> Compaction will swap in it's newly created file for any subsequent read
> requests. Any read requests that come in during the compaction will be
> answered from the files already there and the memstore.
>
> On Mon, Oct 20, 2014 at 8:52 AM, sahanashankar <[hidden email]
> <http://user/SendEmail.jtp?type=node&node=4065210&i=0>>
> wrote:
>
> > Hello,
> >
> > I am trying to understand the working of major compaction and i am
> > wondering
> > if a read operation can be performed while the major compaction process
> is
> > running on HBase. Will the read operation be queued and start after
> major
> > compaction has finished executing? or can both execute together?
> >
> > To be more general, will only the particular region be blocked during
> major
> > compaction or will the entire RegionServer hosting the region be blocked
> ?
> >
> > Thanks in advance
> > Sahana
> >
> >
> >
> > --
> > View this message in context:
> >
> http://apache-hbase.679495.n3.nabble.com/can-read-operation-be-performed-during-the-execution-of-major-compaction-tp4065208.html
> > Sent from the HBase User mailing list archive at Nabble.com.
> >
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-hbase.679495.n3.nabble.com/can-read-operation-be-performed-during-the-execution-of-major-compaction-tp4065208p4065210.html
>  To unsubscribe from can read operation be performed during the execution
> of major compaction, click here
> <http://apache-hbase.679495.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4065208&code=c2FoYW5hc2hhbmthcjkwQGdtYWlsLmNvbXw0MDY1MjA4fDM5ODU4NTQ5Mg==>
> .
> NAML
> <http://apache-hbase.679495.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://apache-hbase.679495.n3.nabble.com/can-read-operation-be-performed-during-the-execution-of-major-compaction-tp4065208p4065323.html
Sent from the HBase User mailing list archive at Nabble.com.

Re: can read operation be performed during the execution of major compaction

Posted by Elliott Clark <ec...@apache.org>.
No read operations are not blocked by any compactions.

Compaction will swap in it's newly created file for any subsequent read
requests. Any read requests that come in during the compaction will be
answered from the files already there and the memstore.

On Mon, Oct 20, 2014 at 8:52 AM, sahanashankar <sa...@gmail.com>
wrote:

> Hello,
>
> I am trying to understand the working of major compaction and i am
> wondering
> if a read operation can be performed while the major compaction process is
> running on HBase. Will the read operation be queued and start after major
> compaction has finished executing? or can both execute together?
>
> To be more general, will only the particular region be blocked during major
> compaction or will the entire RegionServer hosting the region be blocked ?
>
> Thanks in advance
> Sahana
>
>
>
> --
> View this message in context:
> http://apache-hbase.679495.n3.nabble.com/can-read-operation-be-performed-during-the-execution-of-major-compaction-tp4065208.html
> Sent from the HBase User mailing list archive at Nabble.com.
>