Skip to content

Merging the pipeline#7

Open
sanastas wants to merge 5 commits intomasterfrom
HBASE-16417-V01
Open

Merging the pipeline#7
sanastas wants to merge 5 commits intomasterfrom
HBASE-16417-V01

Conversation

@sanastas
Copy link
Collaborator

@sanastas sanastas commented Aug 30, 2016

@Eshcar please review after Eddie's comments were applied

@sanastas sanastas self-assigned this Aug 30, 2016
@sanastas
Copy link
Collaborator Author

@Eshcar @ebortnik

Please review the merge of the segments in the pipeline process. I think it can be committed as a separate issue before the policy. Pay attention that I didn't want to change the HeapMemStoreLAB-Chunk-MemStoreLAB awkward relationships. So this is all a bit awkward by now in that area.

/**
* To be used for merging multiple MSLABs
*/
public void addPooledChunkQueue(BlockingQueue<PooledChunk> targetQueue) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the complexity here O(#items in queue)? How many items in queue, roughly? Could this become a bottleneck in merging/compaction?
Not important for this patch but maybe add a todo comment to change this to a set or list instead of queue

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The complexity is O(#items in targetQueue). Can not say how many items are in the queue as it depends on how many chunks we have per segment and this can vary. But I don't believe there are so many chunks that this would become a bottleneck, however this is for us to see later with stress benchmarking...

Added the comment

@sanastas
Copy link
Collaborator Author

sanastas commented Sep 7, 2016

@Eshcar @ebortnik

Please review the merge of the segments in the pipeline process. I think it can be committed as a separate issue before the policy. Pay attention that I didn't want to change the HeapMemStoreLAB-Chunk-MemStoreLAB awkward relationships. So this is all a bit awkward by now in that area.

@sanastas
Copy link
Collaborator Author

sanastas commented Sep 7, 2016

@Eshcar @ebortnik please take a quick look after significant changing of the MemStoreCompactor. Thanks!

// Create CellSet based on CellArrayMap from compacting iterator
private CellSet createCellArrayMapSet(int numOfCells, MemStoreCompactorIterator iterator) {
private CellSet createCellArrayMapSet(int numOfCells, MemStoreCompactorIterator iterator,
boolean merge) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge --> doMerge

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@ebortnik
Copy link

ebortnik commented Sep 8, 2016

Done reviewing the recent PR

version++;
for(Segment itemInSuffix : suffix) {
itemInSuffix.close();
if (!merge) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

having the merge flag affecting the swap suffix seems wrong
applying the close in the outer scope seems to be better.
this change could be deferred to the policy jira, but if there's no policy jira, should do it here.

@sanastas sanastas force-pushed the master branch 2 times, most recently from 5d38c99 to 1d70e81 Compare October 30, 2017 22:38
@Eshcar Eshcar force-pushed the master branch 2 times, most recently from 677b95e to a2e7557 Compare October 31, 2017 16:57
@Eshcar Eshcar force-pushed the master branch 3 times, most recently from fb8b96a to 649fa32 Compare November 19, 2017 13:28
@sanastas sanastas force-pushed the master branch 2 times, most recently from 47d1b90 to f40c386 Compare November 27, 2017 11:55
@galisheffi galisheffi force-pushed the master branch 5 times, most recently from e050aeb to c043660 Compare December 19, 2017 15:33
@sanastas sanastas force-pushed the master branch 3 times, most recently from 77c2c1a to c09b847 Compare December 21, 2017 21:09
@sanastas sanastas force-pushed the master branch 3 times, most recently from 3603e12 to 0d94ba7 Compare December 31, 2017 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants