[jira] [Updated] (HBASE-20704) Sometimes compacted storefiles are not archived on region close

2018-06-07 Thread Francis Liu (JIRA)


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

Francis Liu updated HBASE-20704:

Description: 
During region close compacted files which have not yet been archived by the 
discharger are archived as part of the region closing process. It is important 
that these files are wholly archived to insure data consistency. ie a storefile 
containing delete tombstones can be archived while older storefiles containing 
cells that were supposed to be deleted are left unarchived. 

On region close a compacted storefile is skipped from archiving if it has read 
references (ie open scanners). This behavior is correct for when the discharger 
chore runs but on region close consistency is of course more important so we 
should add a special case to ignore any references on the storefile and go 
ahead and archive it. 

Attached patch contains a unit test that reproduces the problem and the 
proposed fix.

  was:
During region close compacted files which have not yet been archived by the 
discharger are archived as part of the region closing process. It is important 
that these files are wholly archived to insure data consistency. ie a storefile 
containing delete tombstones can be archived while older storefiles containing 
cells that were supposed to be deleted are left unarchived. 

On region close a compacted storefile is skipped from archiving if it has read 
references (ie open scanners). This behavior is correct for when the discharger 
chore runs but on region close consistency is of course more important so we 
should add a special case to ignore any references on the storefile and go 
ahead and archive it. 

Attached patch contains a unit test that reproduces the problem.


> Sometimes compacted storefiles are not archived on region close
> ---
>
> Key: HBASE-20704
> URL: https://issues.apache.org/jira/browse/HBASE-20704
> Project: HBase
>  Issue Type: Bug
>  Components: Compaction
>Affects Versions: 3.0.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0
>Reporter: Francis Liu
>Assignee: Francis Liu
>Priority: Critical
> Attachments: HBASE-20704.001.patch
>
>
> During region close compacted files which have not yet been archived by the 
> discharger are archived as part of the region closing process. It is 
> important that these files are wholly archived to insure data consistency. ie 
> a storefile containing delete tombstones can be archived while older 
> storefiles containing cells that were supposed to be deleted are left 
> unarchived. 
> On region close a compacted storefile is skipped from archiving if it has 
> read references (ie open scanners). This behavior is correct for when the 
> discharger chore runs but on region close consistency is of course more 
> important so we should add a special case to ignore any references on the 
> storefile and go ahead and archive it. 
> Attached patch contains a unit test that reproduces the problem and the 
> proposed fix.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HBASE-20704) Sometimes compacted storefiles are not archived on region close

2018-06-07 Thread Francis Liu (JIRA)


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

Francis Liu updated HBASE-20704:

Attachment: HBASE-20704.001.patch

> Sometimes compacted storefiles are not archived on region close
> ---
>
> Key: HBASE-20704
> URL: https://issues.apache.org/jira/browse/HBASE-20704
> Project: HBase
>  Issue Type: Bug
>  Components: Compaction
>Affects Versions: 3.0.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0
>Reporter: Francis Liu
>Priority: Critical
> Attachments: HBASE-20704.001.patch
>
>
> During region close compacted files which have not yet been archived by the 
> discharger are archived as part of the region closing process. It is 
> important that these files are wholly archived to insure data consistency. ie 
> a storefile containing delete tombstones can be archived while older 
> storefiles containing cells that were supposed to be deleted are left 
> unarchived. 
> On region close a compacted storefile is skipped from archiving if it has 
> read references (ie open scanners). This behavior is correct for when the 
> discharger chore runs but on region close consistency is of course more 
> important so we should add a special case to ignore any references on the 
> storefile and go ahead and archive it. 
> Attached patch contains a unit test that reproduces the problem.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HBASE-20704) Sometimes compacted storefiles are not archived on region close

2018-06-07 Thread Francis Liu (JIRA)


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

Francis Liu updated HBASE-20704:

Summary: Sometimes compacted storefiles are not archived on region close  
(was: Sometimes compacted storefiles are archived on region close)

> Sometimes compacted storefiles are not archived on region close
> ---
>
> Key: HBASE-20704
> URL: https://issues.apache.org/jira/browse/HBASE-20704
> Project: HBase
>  Issue Type: Bug
>  Components: Compaction
>Affects Versions: 3.0.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0
>Reporter: Francis Liu
>Priority: Critical
>
> During region close compacted files which have not yet been archived by the 
> discharger are archived as part of the region closing process. It is 
> important that these files are wholly archived to insure data consistency. ie 
> a storefile containing delete tombstones can be archived while older 
> storefiles containing cells that were supposed to be deleted are left 
> unarchived. 
> On region close a compacted storefile is skipped from archiving if it has 
> read references (ie open scanners). This behavior is correct for when the 
> discharger chore runs but on region close consistency is of course more 
> important so we should add a special case to ignore any references on the 
> storefile and go ahead and archive it. 
> Attached patch contains a unit test that reproduces the problem.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)