[jira] [Updated] (HBASE-2231) Compaction events should be written to HLog

2013-05-23 Thread Enis Soztutar (JIRA)

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

Enis Soztutar updated HBASE-2231:
-

Attachment: hbase-2231_v7-addendum.patch

 Compaction events should be written to HLog
 ---

 Key: HBASE-2231
 URL: https://issues.apache.org/jira/browse/HBASE-2231
 Project: HBase
  Issue Type: Improvement
  Components: regionserver
Reporter: Todd Lipcon
Assignee: stack
Priority: Blocker
  Labels: moved_from_0_20_5
 Fix For: 0.98.0, 0.95.1

 Attachments: 2231-testcase-0.94.txt, 2231-testcase_v2.txt, 
 2231-testcase_v3.txt, 2231v2.txt, 2231v3.txt, 2231v4.txt, 
 hbase-2231-testcase.txt, hbase-2231.txt, hbase-2231_v5.patch, 
 hbase-2231_v6.patch, hbase-2231_v7-0.95.patch, hbase-2231_v7-addendum.patch, 
 hbase-2231_v7.patch, hbase-2231_v7.patch


 The sequence for a compaction should look like this:
 # Compact region to new files
 # Write a Compacted Region entry to the HLog
 # Delete old files
 This deals with a case where the RS has paused between step 1 and 2 and the 
 regions have since been reassigned.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-2231) Compaction events should be written to HLog

2013-05-23 Thread stack (JIRA)

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

stack updated HBASE-2231:
-

Attachment: hbase-2231_v8-addendum.patch

Here is what I applied (hope you don't mind Enis).  It makes the logging of 
compaction append trace level.

 Compaction events should be written to HLog
 ---

 Key: HBASE-2231
 URL: https://issues.apache.org/jira/browse/HBASE-2231
 Project: HBase
  Issue Type: Improvement
  Components: regionserver
Reporter: Todd Lipcon
Assignee: stack
Priority: Blocker
  Labels: moved_from_0_20_5
 Fix For: 0.98.0, 0.95.1

 Attachments: 2231-testcase-0.94.txt, 2231-testcase_v2.txt, 
 2231-testcase_v3.txt, 2231v2.txt, 2231v3.txt, 2231v4.txt, 
 hbase-2231-testcase.txt, hbase-2231.txt, hbase-2231_v5.patch, 
 hbase-2231_v6.patch, hbase-2231_v7-0.95.patch, hbase-2231_v7-addendum.patch, 
 hbase-2231_v7.patch, hbase-2231_v7.patch, hbase-2231_v8-addendum.patch


 The sequence for a compaction should look like this:
 # Compact region to new files
 # Write a Compacted Region entry to the HLog
 # Delete old files
 This deals with a case where the RS has paused between step 1 and 2 and the 
 regions have since been reassigned.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-2231) Compaction events should be written to HLog

2013-04-26 Thread Enis Soztutar (JIRA)

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

Enis Soztutar updated HBASE-2231:
-

   Resolution: Fixed
Fix Version/s: 0.98.0
 Hadoop Flags: Reviewed
   Status: Resolved  (was: Patch Available)

I've committed this to trunk and 0.95. Thanks Stack.

 Compaction events should be written to HLog
 ---

 Key: HBASE-2231
 URL: https://issues.apache.org/jira/browse/HBASE-2231
 Project: HBase
  Issue Type: Improvement
  Components: regionserver
Reporter: Todd Lipcon
Assignee: stack
Priority: Blocker
  Labels: moved_from_0_20_5
 Fix For: 0.98.0, 0.95.1

 Attachments: 2231-testcase-0.94.txt, 2231-testcase_v2.txt, 
 2231-testcase_v3.txt, 2231v2.txt, 2231v3.txt, 2231v4.txt, 
 hbase-2231-testcase.txt, hbase-2231.txt, hbase-2231_v5.patch, 
 hbase-2231_v6.patch, hbase-2231_v7.patch, hbase-2231_v7.patch


 The sequence for a compaction should look like this:
 # Compact region to new files
 # Write a Compacted Region entry to the HLog
 # Delete old files
 This deals with a case where the RS has paused between step 1 and 2 and the 
 regions have since been reassigned.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-2231) Compaction events should be written to HLog

2013-04-26 Thread Enis Soztutar (JIRA)

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

Enis Soztutar updated HBASE-2231:
-

Attachment: hbase-2231_v7-0.95.patch

Attaching 0.95 version of the patch, had to resolve some minor conflicts. 

 Compaction events should be written to HLog
 ---

 Key: HBASE-2231
 URL: https://issues.apache.org/jira/browse/HBASE-2231
 Project: HBase
  Issue Type: Improvement
  Components: regionserver
Reporter: Todd Lipcon
Assignee: stack
Priority: Blocker
  Labels: moved_from_0_20_5
 Fix For: 0.98.0, 0.95.1

 Attachments: 2231-testcase-0.94.txt, 2231-testcase_v2.txt, 
 2231-testcase_v3.txt, 2231v2.txt, 2231v3.txt, 2231v4.txt, 
 hbase-2231-testcase.txt, hbase-2231.txt, hbase-2231_v5.patch, 
 hbase-2231_v6.patch, hbase-2231_v7-0.95.patch, hbase-2231_v7.patch, 
 hbase-2231_v7.patch


 The sequence for a compaction should look like this:
 # Compact region to new files
 # Write a Compacted Region entry to the HLog
 # Delete old files
 This deals with a case where the RS has paused between step 1 and 2 and the 
 regions have since been reassigned.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-2231) Compaction events should be written to HLog

2013-04-25 Thread Enis Soztutar (JIRA)

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

Enis Soztutar updated HBASE-2231:
-

Attachment: hbase-2231_v6.patch

Updated patch. Let's see what hadoopqa thinks. 

 Compaction events should be written to HLog
 ---

 Key: HBASE-2231
 URL: https://issues.apache.org/jira/browse/HBASE-2231
 Project: HBase
  Issue Type: Improvement
  Components: regionserver
Reporter: Todd Lipcon
Assignee: stack
Priority: Blocker
  Labels: moved_from_0_20_5
 Fix For: 0.95.1

 Attachments: 2231-testcase-0.94.txt, 2231-testcase_v2.txt, 
 2231-testcase_v3.txt, 2231v2.txt, 2231v3.txt, 2231v4.txt, 
 hbase-2231-testcase.txt, hbase-2231.txt, hbase-2231_v5.patch, 
 hbase-2231_v6.patch


 The sequence for a compaction should look like this:
 # Compact region to new files
 # Write a Compacted Region entry to the HLog
 # Delete old files
 This deals with a case where the RS has paused between step 1 and 2 and the 
 regions have since been reassigned.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-2231) Compaction events should be written to HLog

2013-04-25 Thread Enis Soztutar (JIRA)

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

Enis Soztutar updated HBASE-2231:
-

Status: Open  (was: Patch Available)

 Compaction events should be written to HLog
 ---

 Key: HBASE-2231
 URL: https://issues.apache.org/jira/browse/HBASE-2231
 Project: HBase
  Issue Type: Improvement
  Components: regionserver
Reporter: Todd Lipcon
Assignee: stack
Priority: Blocker
  Labels: moved_from_0_20_5
 Fix For: 0.95.1

 Attachments: 2231-testcase-0.94.txt, 2231-testcase_v2.txt, 
 2231-testcase_v3.txt, 2231v2.txt, 2231v3.txt, 2231v4.txt, 
 hbase-2231-testcase.txt, hbase-2231.txt, hbase-2231_v5.patch, 
 hbase-2231_v6.patch


 The sequence for a compaction should look like this:
 # Compact region to new files
 # Write a Compacted Region entry to the HLog
 # Delete old files
 This deals with a case where the RS has paused between step 1 and 2 and the 
 regions have since been reassigned.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-2231) Compaction events should be written to HLog

2013-04-25 Thread Enis Soztutar (JIRA)

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

Enis Soztutar updated HBASE-2231:
-

Status: Patch Available  (was: Open)

 Compaction events should be written to HLog
 ---

 Key: HBASE-2231
 URL: https://issues.apache.org/jira/browse/HBASE-2231
 Project: HBase
  Issue Type: Improvement
  Components: regionserver
Reporter: Todd Lipcon
Assignee: stack
Priority: Blocker
  Labels: moved_from_0_20_5
 Fix For: 0.95.1

 Attachments: 2231-testcase-0.94.txt, 2231-testcase_v2.txt, 
 2231-testcase_v3.txt, 2231v2.txt, 2231v3.txt, 2231v4.txt, 
 hbase-2231-testcase.txt, hbase-2231.txt, hbase-2231_v5.patch, 
 hbase-2231_v6.patch


 The sequence for a compaction should look like this:
 # Compact region to new files
 # Write a Compacted Region entry to the HLog
 # Delete old files
 This deals with a case where the RS has paused between step 1 and 2 and the 
 regions have since been reassigned.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-2231) Compaction events should be written to HLog

2013-04-25 Thread Enis Soztutar (JIRA)

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

Enis Soztutar updated HBASE-2231:
-

Attachment: hbase-2231_v7.patch

Rebased patch, and fixed javadoc warnings. Test and release audit warnings seem 
unrelated. 

 Compaction events should be written to HLog
 ---

 Key: HBASE-2231
 URL: https://issues.apache.org/jira/browse/HBASE-2231
 Project: HBase
  Issue Type: Improvement
  Components: regionserver
Reporter: Todd Lipcon
Assignee: stack
Priority: Blocker
  Labels: moved_from_0_20_5
 Fix For: 0.95.1

 Attachments: 2231-testcase-0.94.txt, 2231-testcase_v2.txt, 
 2231-testcase_v3.txt, 2231v2.txt, 2231v3.txt, 2231v4.txt, 
 hbase-2231-testcase.txt, hbase-2231.txt, hbase-2231_v5.patch, 
 hbase-2231_v6.patch, hbase-2231_v7.patch


 The sequence for a compaction should look like this:
 # Compact region to new files
 # Write a Compacted Region entry to the HLog
 # Delete old files
 This deals with a case where the RS has paused between step 1 and 2 and the 
 regions have since been reassigned.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-2231) Compaction events should be written to HLog

2013-04-25 Thread Enis Soztutar (JIRA)

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

Enis Soztutar updated HBASE-2231:
-

Attachment: hbase-2231_v7.patch

Reattach for qa. 

 Compaction events should be written to HLog
 ---

 Key: HBASE-2231
 URL: https://issues.apache.org/jira/browse/HBASE-2231
 Project: HBase
  Issue Type: Improvement
  Components: regionserver
Reporter: Todd Lipcon
Assignee: stack
Priority: Blocker
  Labels: moved_from_0_20_5
 Fix For: 0.95.1

 Attachments: 2231-testcase-0.94.txt, 2231-testcase_v2.txt, 
 2231-testcase_v3.txt, 2231v2.txt, 2231v3.txt, 2231v4.txt, 
 hbase-2231-testcase.txt, hbase-2231.txt, hbase-2231_v5.patch, 
 hbase-2231_v6.patch, hbase-2231_v7.patch, hbase-2231_v7.patch


 The sequence for a compaction should look like this:
 # Compact region to new files
 # Write a Compacted Region entry to the HLog
 # Delete old files
 This deals with a case where the RS has paused between step 1 and 2 and the 
 regions have since been reassigned.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-2231) Compaction events should be written to HLog

2013-04-23 Thread Enis Soztutar (JIRA)

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

Enis Soztutar updated HBASE-2231:
-

Attachment: hbase-2231_v5.patch

I have rebased Stack's v4 patch, and made some changes. 

From my testing, it seems that IO Fencing for the WAL works (tested with 
HBASE-7878, not HBASE-8389). [~stack] do you remember how did you test and 
conclude that it does not work? This is pretty important, so I can dedicate 
some more time on testing it. 

Some of the changes from patch v4 to v5 are: 
 - Renamed Compaction - CompactionDescriptor
 - Compaction output can be a list of files, not a single file. 
 - Added compaction WAL edit replay. Now we recognize and replay the compaction 
edit on region open. This is needed because if we fail after we snyc() the wal, 
we might still try to delete the files. 
 - Added 2 more tests for above condition. 
 - HLog does not know about compaction wal edit. 
 - Compaction wal edit log goes through the normal append code path. 

I've tried to capture the Fencing / Idempotency semantics in the following 
javadoc excerpt: 
Compaction event should be idempotent, since there is no IO Fencing for
the region directory in hdfs. A region server might still try to complete 
the
compaction after it lost the region. That is why the following events are 
carefully
ordered for a compaction:
 1. Compaction writes new files under region/.tmp directory (compaction 
output)
 2. Compaction atomically moves the temporary file under region directory
 3. Compaction appends a WAL edit containing the compaction input and 
output files.
 Forces sync on WAL.
 4. Compaction deletes the input files from the region directory.
   
Failure conditions are handled like this:
 - If RS fails before 2, compaction wont complete. Even if RS lives on and 
finishes
 the compaction later, it will only write the new data file to the region 
directory.
 Since we already have this data, this will be idempotent but we will have 
a redundant
 copy of the data.
 - If RS fails between 2 and 3, the region will have a redundant copy of 
the data. The
 RS that failed won't be able to finish snyc() for WAL because of lease 
recovery in WAL.
 - If RS fails after 3, the region region server who opens the region will 
pick up the
 the compaction marker from the WAL and replay it by removing the 
compaction input files.
 Failed RS can also attempt to delete those files, but the operation will 
be idempotent
   






 Compaction events should be written to HLog
 ---

 Key: HBASE-2231
 URL: https://issues.apache.org/jira/browse/HBASE-2231
 Project: HBase
  Issue Type: Improvement
  Components: regionserver
Reporter: Todd Lipcon
Assignee: stack
Priority: Blocker
  Labels: moved_from_0_20_5
 Fix For: 0.95.1

 Attachments: 2231-testcase-0.94.txt, 2231-testcase_v2.txt, 
 2231-testcase_v3.txt, 2231v2.txt, 2231v3.txt, 2231v4.txt, 
 hbase-2231-testcase.txt, hbase-2231.txt, hbase-2231_v5.patch


 The sequence for a compaction should look like this:
 # Compact region to new files
 # Write a Compacted Region entry to the HLog
 # Delete old files
 This deals with a case where the RS has paused between step 1 and 2 and the 
 regions have since been reassigned.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-2231) Compaction events should be written to HLog

2013-04-23 Thread Enis Soztutar (JIRA)

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

Enis Soztutar updated HBASE-2231:
-

Status: Patch Available  (was: Open)

 Compaction events should be written to HLog
 ---

 Key: HBASE-2231
 URL: https://issues.apache.org/jira/browse/HBASE-2231
 Project: HBase
  Issue Type: Improvement
  Components: regionserver
Reporter: Todd Lipcon
Assignee: stack
Priority: Blocker
  Labels: moved_from_0_20_5
 Fix For: 0.95.1

 Attachments: 2231-testcase-0.94.txt, 2231-testcase_v2.txt, 
 2231-testcase_v3.txt, 2231v2.txt, 2231v3.txt, 2231v4.txt, 
 hbase-2231-testcase.txt, hbase-2231.txt, hbase-2231_v5.patch


 The sequence for a compaction should look like this:
 # Compact region to new files
 # Write a Compacted Region entry to the HLog
 # Delete old files
 This deals with a case where the RS has paused between step 1 and 2 and the 
 regions have since been reassigned.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-2231) Compaction events should be written to HLog

2013-04-02 Thread stack (JIRA)

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

stack updated HBASE-2231:
-

Fix Version/s: (was: 0.95.0)
   0.95.1

 Compaction events should be written to HLog
 ---

 Key: HBASE-2231
 URL: https://issues.apache.org/jira/browse/HBASE-2231
 Project: HBase
  Issue Type: Improvement
  Components: regionserver
Reporter: Todd Lipcon
Assignee: stack
Priority: Blocker
  Labels: moved_from_0_20_5
 Fix For: 0.95.1

 Attachments: 2231-testcase-0.94.txt, 2231-testcase_v2.txt, 
 2231-testcase_v3.txt, 2231v2.txt, 2231v3.txt, 2231v4.txt, 
 hbase-2231-testcase.txt, hbase-2231.txt


 The sequence for a compaction should look like this:
 # Compact region to new files
 # Write a Compacted Region entry to the HLog
 # Delete old files
 This deals with a case where the RS has paused between step 1 and 2 and the 
 regions have since been reassigned.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-2231) Compaction events should be written to HLog

2013-01-08 Thread stack (JIRA)

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

stack updated HBASE-2231:
-

Assignee: stack  (was: Todd Lipcon)

 Compaction events should be written to HLog
 ---

 Key: HBASE-2231
 URL: https://issues.apache.org/jira/browse/HBASE-2231
 Project: HBase
  Issue Type: Improvement
  Components: regionserver
Reporter: Todd Lipcon
Assignee: stack
Priority: Blocker
  Labels: moved_from_0_20_5
 Fix For: 0.96.0

 Attachments: 2231-testcase-0.94.txt, 2231-testcase_v2.txt, 
 2231-testcase_v3.txt, 2231v2.txt, 2231v3.txt, 2231v4.txt, 
 hbase-2231-testcase.txt, hbase-2231.txt


 The sequence for a compaction should look like this:
 # Compact region to new files
 # Write a Compacted Region entry to the HLog
 # Delete old files
 This deals with a case where the RS has paused between step 1 and 2 and the 
 regions have since been reassigned.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-2231) Compaction events should be written to HLog

2012-11-27 Thread stack (JIRA)

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

stack updated HBASE-2231:
-

Attachment: 2231v4.txt

Here is finished patch but it seems that IOFencing does not work.  After 
recovering lease and assigning new regions, the dying server can still append 
the WAL 'successfully'.

 Compaction events should be written to HLog
 ---

 Key: HBASE-2231
 URL: https://issues.apache.org/jira/browse/HBASE-2231
 Project: HBase
  Issue Type: Improvement
  Components: regionserver
Reporter: Todd Lipcon
Assignee: Todd Lipcon
Priority: Blocker
  Labels: moved_from_0_20_5
 Fix For: 0.96.0

 Attachments: 2231-testcase-0.94.txt, 2231-testcase_v2.txt, 
 2231-testcase_v3.txt, 2231v2.txt, 2231v3.txt, 2231v4.txt, 
 hbase-2231-testcase.txt, hbase-2231.txt


 The sequence for a compaction should look like this:
 # Compact region to new files
 # Write a Compacted Region entry to the HLog
 # Delete old files
 This deals with a case where the RS has paused between step 1 and 2 and the 
 regions have since been reassigned.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-2231) Compaction events should be written to HLog

2012-11-26 Thread stack (JIRA)

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

stack updated HBASE-2231:
-

Attachment: 2231v3.txt

Not done yet. pb'd the compaction description added to the WAL.

 Compaction events should be written to HLog
 ---

 Key: HBASE-2231
 URL: https://issues.apache.org/jira/browse/HBASE-2231
 Project: HBase
  Issue Type: Improvement
  Components: regionserver
Reporter: Todd Lipcon
Assignee: Todd Lipcon
Priority: Blocker
  Labels: moved_from_0_20_5
 Fix For: 0.96.0

 Attachments: 2231-testcase-0.94.txt, 2231-testcase_v2.txt, 
 2231-testcase_v3.txt, 2231v2.txt, 2231v3.txt, hbase-2231-testcase.txt, 
 hbase-2231.txt


 The sequence for a compaction should look like this:
 # Compact region to new files
 # Write a Compacted Region entry to the HLog
 # Delete old files
 This deals with a case where the RS has paused between step 1 and 2 and the 
 regions have since been reassigned.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-2231) Compaction events should be written to HLog

2012-11-20 Thread stack (JIRA)

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

stack updated HBASE-2231:
-

Attachment: 2231-testcase_v3.txt

This test case fails when files have been removed by a compaction.

Not to forward port Todd's fancy WAL writing.

 Compaction events should be written to HLog
 ---

 Key: HBASE-2231
 URL: https://issues.apache.org/jira/browse/HBASE-2231
 Project: HBase
  Issue Type: Improvement
  Components: regionserver
Reporter: Todd Lipcon
Assignee: Todd Lipcon
Priority: Blocker
  Labels: moved_from_0_20_5
 Fix For: 0.96.0

 Attachments: 2231-testcase-0.94.txt, 2231-testcase_v2.txt, 
 2231-testcase_v3.txt, 2231v2.txt, hbase-2231-testcase.txt, hbase-2231.txt


 The sequence for a compaction should look like this:
 # Compact region to new files
 # Write a Compacted Region entry to the HLog
 # Delete old files
 This deals with a case where the RS has paused between step 1 and 2 and the 
 regions have since been reassigned.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-2231) Compaction events should be written to HLog

2012-11-17 Thread stack (JIRA)

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

stack updated HBASE-2231:
-

Attachment: 2231-testcase_v2.txt

Fixed hang.  Test passes now but it should not.  We have become lax if a file 
is missing when we go to compact -- perhaps because region double-assigned -- 
since we made the CompactionRequest object changes.  I think the reasoning is 
that by the time our compaction runs, another may have run before us so it is 
ok if the geography is different.

Need to fix this first.  Let me dig more.

 Compaction events should be written to HLog
 ---

 Key: HBASE-2231
 URL: https://issues.apache.org/jira/browse/HBASE-2231
 Project: HBase
  Issue Type: Improvement
  Components: regionserver
Reporter: Todd Lipcon
Assignee: Todd Lipcon
Priority: Blocker
  Labels: moved_from_0_20_5
 Fix For: 0.96.0

 Attachments: 2231-testcase-0.94.txt, 2231-testcase_v2.txt, 
 2231v2.txt, hbase-2231-testcase.txt, hbase-2231.txt


 The sequence for a compaction should look like this:
 # Compact region to new files
 # Write a Compacted Region entry to the HLog
 # Delete old files
 This deals with a case where the RS has paused between step 1 and 2 and the 
 regions have since been reassigned.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-2231) Compaction events should be written to HLog

2012-11-16 Thread stack (JIRA)

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

stack updated HBASE-2231:
-

Attachment: 2231v2.txt

Here is the test for trunk.  Hanging at mo.  Let me see why.

 Compaction events should be written to HLog
 ---

 Key: HBASE-2231
 URL: https://issues.apache.org/jira/browse/HBASE-2231
 Project: HBase
  Issue Type: Improvement
  Components: regionserver
Reporter: Todd Lipcon
Assignee: Todd Lipcon
Priority: Blocker
  Labels: moved_from_0_20_5
 Fix For: 0.96.0

 Attachments: 2231-testcase-0.94.txt, 2231v2.txt, 
 hbase-2231-testcase.txt, hbase-2231.txt


 The sequence for a compaction should look like this:
 # Compact region to new files
 # Write a Compacted Region entry to the HLog
 # Delete old files
 This deals with a case where the RS has paused between step 1 and 2 and the 
 regions have since been reassigned.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-2231) Compaction events should be written to HLog

2012-10-08 Thread Ted Yu (JIRA)

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

Ted Yu updated HBASE-2231:
--

Attachment: 2231-testcase-0.94.txt

Testcase tailored to 0.94 branch.
I found that TestIOFencing hung:
{code}
main prio=5 tid=7fdd52801800 nid=0x10b415000 waiting on condition [10b413000]
   java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at 
org.apache.hadoop.hbase.TestIOFencing.testFencingAroundCompaction(TestIOFencing.java:208)
{code}
at the sleep() call below:
{code}
  compactingRegion.allowCompactions();
  
  while (compactingRegion.compactCount == 0) {
Thread.sleep(1000);
{code}

 Compaction events should be written to HLog
 ---

 Key: HBASE-2231
 URL: https://issues.apache.org/jira/browse/HBASE-2231
 Project: HBase
  Issue Type: Improvement
  Components: regionserver
Reporter: Todd Lipcon
Assignee: Todd Lipcon
Priority: Blocker
  Labels: moved_from_0_20_5
 Fix For: 0.96.0

 Attachments: 2231-testcase-0.94.txt, hbase-2231-testcase.txt, 
 hbase-2231.txt


 The sequence for a compaction should look like this:
 # Compact region to new files
 # Write a Compacted Region entry to the HLog
 # Delete old files
 This deals with a case where the RS has paused between step 1 and 2 and the 
 regions have since been reassigned.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-2231) Compaction events should be written to HLog

2012-10-08 Thread Ted Yu (JIRA)

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

Ted Yu updated HBASE-2231:
--

Status: Open  (was: Patch Available)

 Compaction events should be written to HLog
 ---

 Key: HBASE-2231
 URL: https://issues.apache.org/jira/browse/HBASE-2231
 Project: HBase
  Issue Type: Improvement
  Components: regionserver
Reporter: Todd Lipcon
Assignee: Todd Lipcon
Priority: Blocker
  Labels: moved_from_0_20_5
 Fix For: 0.96.0

 Attachments: 2231-testcase-0.94.txt, hbase-2231-testcase.txt, 
 hbase-2231.txt


 The sequence for a compaction should look like this:
 # Compact region to new files
 # Write a Compacted Region entry to the HLog
 # Delete old files
 This deals with a case where the RS has paused between step 1 and 2 and the 
 regions have since been reassigned.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-2231) Compaction events should be written to HLog

2012-02-27 Thread Lars Hofhansl (Updated) (JIRA)

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

Lars Hofhansl updated HBASE-2231:
-

Fix Version/s: (was: 0.94.0)
   0.96.0

Moving out of 0.96. Probably not a blocker if it can go unfixed for a long time.

 Compaction events should be written to HLog
 ---

 Key: HBASE-2231
 URL: https://issues.apache.org/jira/browse/HBASE-2231
 Project: HBase
  Issue Type: Improvement
  Components: regionserver
Reporter: Todd Lipcon
Assignee: Todd Lipcon
Priority: Blocker
  Labels: moved_from_0_20_5
 Fix For: 0.96.0

 Attachments: hbase-2231-testcase.txt, hbase-2231.txt


 The sequence for a compaction should look like this:
 # Compact region to new files
 # Write a Compacted Region entry to the HLog
 # Delete old files
 This deals with a case where the RS has paused between step 1 and 2 and the 
 regions have since been reassigned.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-2231) Compaction events should be written to HLog

2011-06-21 Thread stack (JIRA)

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

stack updated HBASE-2231:
-

Fix Version/s: (was: 0.92.0)
   0.94.0

Moving out of 0.92.0.  Pull back in if someone wants to work on it.

 Compaction events should be written to HLog
 ---

 Key: HBASE-2231
 URL: https://issues.apache.org/jira/browse/HBASE-2231
 Project: HBase
  Issue Type: Improvement
  Components: regionserver
Reporter: Todd Lipcon
Assignee: Todd Lipcon
Priority: Blocker
  Labels: moved_from_0_20_5
 Fix For: 0.94.0

 Attachments: hbase-2231-testcase.txt, hbase-2231.txt


 The sequence for a compaction should look like this:
 # Compact region to new files
 # Write a Compacted Region entry to the HLog
 # Delete old files
 This deals with a case where the RS has paused between step 1 and 2 and the 
 regions have since been reassigned.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-2231) Compaction events should be written to HLog

2011-06-10 Thread stack (JIRA)

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

stack updated HBASE-2231:
-

Status: Patch Available  (was: Open)

Marking patch available

 Compaction events should be written to HLog
 ---

 Key: HBASE-2231
 URL: https://issues.apache.org/jira/browse/HBASE-2231
 Project: HBase
  Issue Type: Improvement
  Components: regionserver
Reporter: Todd Lipcon
Assignee: Todd Lipcon
Priority: Blocker
  Labels: moved_from_0_20_5
 Fix For: 0.92.0

 Attachments: hbase-2231-testcase.txt, hbase-2231.txt


 The sequence for a compaction should look like this:
 # Compact region to new files
 # Write a Compacted Region entry to the HLog
 # Delete old files
 This deals with a case where the RS has paused between step 1 and 2 and the 
 regions have since been reassigned.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira