You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "selina.yan (Jira)" <ji...@apache.org> on 2023/05/12 02:16:00 UTC

[jira] [Updated] (PHOENIX-6955) The value of region metric--lastMajorCompactionAge is wrong,when the hfile is buckload file

     [ https://issues.apache.org/jira/browse/PHOENIX-6955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

selina.yan updated PHOENIX-6955:
--------------------------------
    Description: 
When HFileOutputFormat2 is used to create an hfile, the CREATE_TIME_TS of hfileinfo will not be assigned when creating an hfileContext, resulting in the value of  lastMajorCompactionAge  is the timestamp of the current time.
{code:java}
##MultiHfileOutputFormat.getNewWriter 
              HFileContextBuilder contextBuilder = new HFileContextBuilder()
                                        .withCompression(compression)
                                       .withChecksumType(CompatUtil.getChecksumType(conf))                                .withBytesPerCheckSum(CompatUtil.getBytesPerChecksum(conf))
                                        .withBlockSize(blockSize)
                                        .withDataBlockEncoding(encoding)                                        .withCellComparator(CellComparatorImpl.COMPARATOR);

{code}

  was:
When HFileOutputFormat2 is used to create an hfile, the CREATE_TIME_TS of hfileinfo will not be assigned when creating an hfileContext, resulting in the value of  lastMajorCompactionAge  is the timestamp of the current time.
{code:java}
MultiHfileOutputFormat.getNewWriter {code}


> The value of region  metric--lastMajorCompactionAge is wrong,when the hfile is buckload file
> --------------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-6955
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-6955
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: selina.yan
>            Priority: Major
>
> When HFileOutputFormat2 is used to create an hfile, the CREATE_TIME_TS of hfileinfo will not be assigned when creating an hfileContext, resulting in the value of  lastMajorCompactionAge  is the timestamp of the current time.
> {code:java}
> ##MultiHfileOutputFormat.getNewWriter 
>               HFileContextBuilder contextBuilder = new HFileContextBuilder()
>                                         .withCompression(compression)
>                                        .withChecksumType(CompatUtil.getChecksumType(conf))                                .withBytesPerCheckSum(CompatUtil.getBytesPerChecksum(conf))
>                                         .withBlockSize(blockSize)
>                                         .withDataBlockEncoding(encoding)                                        .withCellComparator(CellComparatorImpl.COMPARATOR);
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)