You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Derek Wollenstein (JIRA)" <ji...@apache.org> on 2012/05/17 04:00:08 UTC
[jira] [Created] (HBASE-6028) Implement a cancel for in-progress
compactions
Derek Wollenstein created HBASE-6028:
----------------------------------------
Summary: Implement a cancel for in-progress compactions
Key: HBASE-6028
URL: https://issues.apache.org/jira/browse/HBASE-6028
Project: HBase
Issue Type: Bug
Components: regionserver
Reporter: Derek Wollenstein
Priority: Minor
Depending on current server load, it can be extremely expensive to run periodic minor / major compactions. It would be helpful to have a feature where a user could use the shell or a client tool to explicitly cancel an in-progress compactions. This would allow a system to recover when too many regions became eligible for compactions at once
--
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-6028) Implement a cancel for in-progress
compactions
Posted by "Nicolas Spiegelberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13294619#comment-13294619 ]
Nicolas Spiegelberg commented on HBASE-6028:
--------------------------------------------
this should be trivial to implement. just remember that canceling a compaction also requires manually freeing the files under compaction.
> Implement a cancel for in-progress compactions
> ----------------------------------------------
>
> Key: HBASE-6028
> URL: https://issues.apache.org/jira/browse/HBASE-6028
> Project: HBase
> Issue Type: Bug
> Components: regionserver
> Reporter: Derek Wollenstein
> Priority: Minor
> Labels: compaction, operations, regionserver
>
> Depending on current server load, it can be extremely expensive to run periodic minor / major compactions. It would be helpful to have a feature where a user could use the shell or a client tool to explicitly cancel an in-progress compactions. This would allow a system to recover when too many regions became eligible for compactions at once
--
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-6028) Implement a cancel for in-progress
compactions
Posted by "Derek Wollenstein (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279277#comment-13279277 ]
Derek Wollenstein commented on HBASE-6028:
------------------------------------------
@Stack --
I just looked at the current version -- it looks like the current check for this is in StoreFile.Writer.compactStore(final Collection<StoreFile> filesToCompact,
final boolean majorCompaction, final long maxId).
// check periodically to see if a system stop is requested
if (Store.closeCheckInterval > 0) {
bytesWritten += kv.getLength();
if (bytesWritten > Store.closeCheckInterval) {
bytesWritten = 0;
if (!this.region.areWritesEnabled()) {
writer.close();
fs.delete(writer.getPath(), false);
throw new InterruptedIOException(
"Aborting compaction of store " + this +
" in region " + this.region +
" because user requested stop.");
}
}
}
So we could go ahead and actually put an explicit "compactions enabled" feature. This would also help if I wanted to later on add a feature to put in a time window for compactions.
> Implement a cancel for in-progress compactions
> ----------------------------------------------
>
> Key: HBASE-6028
> URL: https://issues.apache.org/jira/browse/HBASE-6028
> Project: HBase
> Issue Type: Bug
> Components: regionserver
> Reporter: Derek Wollenstein
> Priority: Minor
> Labels: compaction, operations, regionserver
>
> Depending on current server load, it can be extremely expensive to run periodic minor / major compactions. It would be helpful to have a feature where a user could use the shell or a client tool to explicitly cancel an in-progress compactions. This would allow a system to recover when too many regions became eligible for compactions at once
--
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-6028) Implement a cancel for in-progress
compactions
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13277584#comment-13277584 ]
stack commented on HBASE-6028:
------------------------------
IIRC, there already is a cancel facility that is used on region close; if an ongoing compaction, its interrupted. If such is the case, this issue would hopefully just be about exposing this functionality in hbase admin (Sorry D, should have remembered today that we do this).
> Implement a cancel for in-progress compactions
> ----------------------------------------------
>
> Key: HBASE-6028
> URL: https://issues.apache.org/jira/browse/HBASE-6028
> Project: HBase
> Issue Type: Bug
> Components: regionserver
> Reporter: Derek Wollenstein
> Priority: Minor
> Labels: compaction, operations, regionserver
>
> Depending on current server load, it can be extremely expensive to run periodic minor / major compactions. It would be helpful to have a feature where a user could use the shell or a client tool to explicitly cancel an in-progress compactions. This would allow a system to recover when too many regions became eligible for compactions at once
--
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