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

Chandra Sekhar K updated HBASE-29194:
-------------------------------------
    Description: 
After the compaction complets, in replaceStoreFiles we add the compactedFiles 
to the store engine, which will be picked up by the CompactedHFilesDischarger 
and it will close and move those files to archieve path.

we are updating the  SpaceQuota after the File Replacement by reading the size 
of the compacted files. there is a low chance that CompactedHFilesDischarger 
closes and archieve the file before the file size is read causing a 
NullPointerException.

 

we can avoid this by doing the SpaceQuota updation before invoking 
replaceStoreFiles on store engine.

  was:
After the compaction complets, in replaceStoreFiles we add the compactedFiles 
to the store engine, which will be picked up by the CompactedHFilesDischarger 
and it will close and move those files to archieve path.

we are updating the  SpaceQuota after the File Replacement by reading the size 
of the compacted files. there is a low chance that CompactedHFilesDischarger 
closes and archieve the file before the file size is read causing a 
NullPointerException.


> StoreFileReader can be null when updating Space Quota after compaction file 
> replacement
> ---------------------------------------------------------------------------------------
>
>                 Key: HBASE-29194
>                 URL: https://issues.apache.org/jira/browse/HBASE-29194
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Chandra Sekhar K
>            Assignee: Chandra Sekhar K
>            Priority: Minor
>
> After the compaction complets, in replaceStoreFiles we add the compactedFiles 
> to the store engine, which will be picked up by the CompactedHFilesDischarger 
> and it will close and move those files to archieve path.
> we are updating the  SpaceQuota after the File Replacement by reading the 
> size of the compacted files. there is a low chance that 
> CompactedHFilesDischarger closes and archieve the file before the file size 
> is read causing a NullPointerException.
>  
> we can avoid this by doing the SpaceQuota updation before invoking 
> replaceStoreFiles on store engine.



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

Reply via email to