[
https://issues.apache.org/jira/browse/HBASE-29703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xiao Liu updated HBASE-29703:
-----------------------------
Description:
In the {{BlockCacheUtil.getBlockForCaching}} method,
{{withNextBlockOnDiskSize}} is set twice, {{withNextBlockOnDiskSize(-1)}} and
{{withNextBlockOnDiskSize(block.getNextBlockOnDiskSize())}}, and the first -1
could be deleted.
was:
In the {{BlockCacheUtil.getBlockForCaching}} method,
{{withNextBlockOnDiskSize}} is set twice ({{withNextBlockOnDiskSize(-1)}} and
{{withNextBlockOnDiskSize(block.getNextBlockOnDiskSize())}}), and the first -1
could be deleted
> Remove duplicate calls to withNextBlockOnDiskSize
> -------------------------------------------------
>
> Key: HBASE-29703
> URL: https://issues.apache.org/jira/browse/HBASE-29703
> Project: HBase
> Issue Type: Improvement
> Components: BucketCache
> Affects Versions: 3.0.0-beta-1
> Reporter: Xiao Liu
> Priority: Minor
> Labels: pull-request-available
>
> In the {{BlockCacheUtil.getBlockForCaching}} method,
> {{withNextBlockOnDiskSize}} is set twice, {{withNextBlockOnDiskSize(-1)}} and
> {{withNextBlockOnDiskSize(block.getNextBlockOnDiskSize())}}, and the first -1
> could be deleted.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)