You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Jonathan Gray (JIRA)" <ji...@apache.org> on 2009/06/16 17:59:07 UTC

[jira] Commented: (HBASE-1530) Optimize changed readers notification to only update what has changed rather than rebuild entire KV heap

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

Jonathan Gray commented on HBASE-1530:
--------------------------------------

(copied over from HBASE-1207)

I have started up a patch to do what you're describing; reusing the open scanners, basically diff'ing what has changed rather than rebuilding.

It's certainly possible but requires a bunch of changes, from the ChangedReadersObserver interface to actually adding some stuff to KeyValueScanner. The actual modification of the heap should probably actually happen in the KeyValueHeap. The set of parameters that gets passed through changed readers to KVHeap is (List<StoreFile> deleted, StoreFile added) where added always exists but deleted list is sometimes null.

I'm happy to finish the patch, but wanted to know if you still think it's a good idea given the complexity. It will be far easier to just rebuild the heap and won't require changing much. Another approach might be to actually do a "diff", looking at current storefiles against what's in the heap. This will prevent us from needing to change the changed observer interface but we'll basically be recalculating what we already know when we make the call to it. If no one comments I will try to get a patch up later today.

> Optimize changed readers notification to only update what has changed rather than rebuild entire KV heap
> --------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-1530
>                 URL: https://issues.apache.org/jira/browse/HBASE-1530
>             Project: Hadoop HBase
>          Issue Type: Improvement
>          Components: regionserver
>    Affects Versions: 0.20.0
>            Reporter: Jonathan Gray
>             Fix For: 0.20.1
>
>
> As discussed in HBASE-1207 and to build on what was implemented in HBASE-1503, we should modify the existing KeyValueHeap in place by reusing any open scanners possible.

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