Skip to content

PHOENIX-6658 Replace HRegion.get() calls#1398

Closed
stoty wants to merge 4 commits intoapache:masterfrom
stoty:PHOENIX-6658
Closed

PHOENIX-6658 Replace HRegion.get() calls#1398
stoty wants to merge 4 commits intoapache:masterfrom
stoty:PHOENIX-6658

Conversation

@stoty
Copy link
Copy Markdown
Contributor

@stoty stoty commented Feb 28, 2022

No description provided.

Copy link
Copy Markdown
Member

@joshelser joshelser left a comment

Choose a reason for hiding this comment

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

The fix makes sense overall (switch over to using RegionScanner to take advantage of the off-heaping work in HBase as already written).

Istvan and I also talking about the value of looking at Phoenix now and trying to see how often we're doing unnecessary on-heap copies. He made https://issues.apache.org/jira/browse/PHOENIX-6621 for this. Made me wonder how we could measure the possible impact from off-heaping everything.

Comment on lines +606 to +608
List<Cell> cells = new ArrayList<>();
PhoenixKeyValueUtil.maybeCopyCellList(cells);
scanner.next(cells);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks funky :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thank you, fixed.

@stoty stoty requested a review from apurtell March 8, 2022 16:23
@stoty stoty requested a review from joshelser March 16, 2022 07:01
Copy link
Copy Markdown
Contributor

@gjacoby126 gjacoby126 left a comment

Choose a reason for hiding this comment

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

+1

@stoty stoty closed this Mar 21, 2022
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