Skip to content

HBASE-30225 Performance degradation observed on ycsb reads benchmark after HBASE-2972#8353

Open
wchevreuil wants to merge 1 commit into
apache:masterfrom
wchevreuil:HBASE-30225
Open

HBASE-30225 Performance degradation observed on ycsb reads benchmark after HBASE-2972#8353
wchevreuil wants to merge 1 commit into
apache:masterfrom
wchevreuil:HBASE-30225

Conversation

@wchevreuil

Copy link
Copy Markdown
Contributor

No description provided.

…after HBASE-2972

Change-Id: I63fdb4a5ea23a0b3815b8e955b22ce5faa020d71

@Apache9 Apache9 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Mind explaining more about the changes here? I do not fully get what you are trying to fix here...

public BlockCacheKey(Path hfilePath, long offset, boolean isPrimaryReplica, BlockType blockType) {
this(hfilePath.getName(), hfilePath.getParent().getName(),
hfilePath.getParent().getParent().getName(), offset, isPrimaryReplica, blockType,
HFileArchiveUtil.isHFileArchived(hfilePath));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why here we can use false directly?

this.hfileName = HFILE_NAME_POOL.intern(hfileName);
this.regionName = (regionName != null) ? REGION_NAME_POOL.intern(regionName) : null;
this.cfName = (cfName != null) ? CF_NAME_POOL.intern(cfName) : null;
this.hfileName = hfileName;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If we do not do intern here, why we still put the above 3 string pools in this class?

*/
package org.apache.hadoop.hbase.io.hfile;

import org.apache.commons.lang3.mutable.MutableBoolean;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Where do we use this import?

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.

2 participants