[jira] [Updated] (HDFS-7903) Cannot recover block after truncate and delete snapshot

2015-03-13 Thread Konstantin Shvachko (JIRA)

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

Konstantin Shvachko updated HDFS-7903:
--
   Resolution: Fixed
Fix Version/s: 2.7.0
 Hadoop Flags: Reviewed
   Status: Resolved  (was: Patch Available)

I just committed this. Thank you Plamen.

> Cannot recover block after truncate and delete snapshot
> ---
>
> Key: HDFS-7903
> URL: https://issues.apache.org/jira/browse/HDFS-7903
> Project: Hadoop HDFS
>  Issue Type: Sub-task
>  Components: datanode, namenode
>Reporter: Tsz Wo Nicholas Sze
>Assignee: Plamen Jeliazkov
>Priority: Blocker
> Fix For: 2.7.0
>
> Attachments: HDFS-7903.1.patch, HDFS-7903.2.patch, HDFS-7903.patch, 
> testMultipleTruncate.patch
>
>
> # Create a file.
> # Create a snapshot.
> # Truncate the file in the middle of a block.
> # Delete the snapshot.
> The block cannot be recovered.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HDFS-7903) Cannot recover block after truncate and delete snapshot

2015-03-12 Thread Plamen Jeliazkov (JIRA)

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

Plamen Jeliazkov updated HDFS-7903:
---
Status: Patch Available  (was: Open)

> Cannot recover block after truncate and delete snapshot
> ---
>
> Key: HDFS-7903
> URL: https://issues.apache.org/jira/browse/HDFS-7903
> Project: Hadoop HDFS
>  Issue Type: Sub-task
>  Components: datanode, namenode
>Reporter: Tsz Wo Nicholas Sze
>Assignee: Plamen Jeliazkov
>Priority: Blocker
> Attachments: HDFS-7903.1.patch, HDFS-7903.2.patch, HDFS-7903.patch, 
> testMultipleTruncate.patch
>
>
> # Create a file.
> # Create a snapshot.
> # Truncate the file in the middle of a block.
> # Delete the snapshot.
> The block cannot be recovered.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HDFS-7903) Cannot recover block after truncate and delete snapshot

2015-03-12 Thread Plamen Jeliazkov (JIRA)

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

Plamen Jeliazkov updated HDFS-7903:
---
Attachment: HDFS-7903.2.patch

Attaching new patch with Konstantin's suggestions addressed.

> Cannot recover block after truncate and delete snapshot
> ---
>
> Key: HDFS-7903
> URL: https://issues.apache.org/jira/browse/HDFS-7903
> Project: Hadoop HDFS
>  Issue Type: Sub-task
>  Components: datanode, namenode
>Reporter: Tsz Wo Nicholas Sze
>Assignee: Plamen Jeliazkov
>Priority: Blocker
> Attachments: HDFS-7903.1.patch, HDFS-7903.2.patch, HDFS-7903.patch, 
> testMultipleTruncate.patch
>
>
> # Create a file.
> # Create a snapshot.
> # Truncate the file in the middle of a block.
> # Delete the snapshot.
> The block cannot be recovered.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HDFS-7903) Cannot recover block after truncate and delete snapshot

2015-03-12 Thread Vinod Kumar Vavilapalli (JIRA)

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

Vinod Kumar Vavilapalli updated HDFS-7903:
--
Status: Open  (was: Patch Available)

Canceling patch for [~zero45] to address [~shv]'s feedback.

> Cannot recover block after truncate and delete snapshot
> ---
>
> Key: HDFS-7903
> URL: https://issues.apache.org/jira/browse/HDFS-7903
> Project: Hadoop HDFS
>  Issue Type: Sub-task
>  Components: datanode, namenode
>Reporter: Tsz Wo Nicholas Sze
>Assignee: Plamen Jeliazkov
>Priority: Blocker
> Attachments: HDFS-7903.1.patch, HDFS-7903.patch, 
> testMultipleTruncate.patch
>
>
> # Create a file.
> # Create a snapshot.
> # Truncate the file in the middle of a block.
> # Delete the snapshot.
> The block cannot be recovered.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HDFS-7903) Cannot recover block after truncate and delete snapshot

2015-03-12 Thread Tsz Wo Nicholas Sze (JIRA)

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

Tsz Wo Nicholas Sze updated HDFS-7903:
--
Priority: Blocker  (was: Major)
Target Version/s: 2.7.0

> Cannot recover block after truncate and delete snapshot
> ---
>
> Key: HDFS-7903
> URL: https://issues.apache.org/jira/browse/HDFS-7903
> Project: Hadoop HDFS
>  Issue Type: Sub-task
>  Components: datanode, namenode
>Reporter: Tsz Wo Nicholas Sze
>Assignee: Plamen Jeliazkov
>Priority: Blocker
> Attachments: HDFS-7903.1.patch, HDFS-7903.patch, 
> testMultipleTruncate.patch
>
>
> # Create a file.
> # Create a snapshot.
> # Truncate the file in the middle of a block.
> # Delete the snapshot.
> The block cannot be recovered.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HDFS-7903) Cannot recover block after truncate and delete snapshot

2015-03-10 Thread Plamen Jeliazkov (JIRA)

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

Plamen Jeliazkov updated HDFS-7903:
---
Attachment: HDFS-7903.1.patch

Regenerated patch.

> Cannot recover block after truncate and delete snapshot
> ---
>
> Key: HDFS-7903
> URL: https://issues.apache.org/jira/browse/HDFS-7903
> Project: Hadoop HDFS
>  Issue Type: Sub-task
>  Components: datanode, namenode
>Reporter: Tsz Wo Nicholas Sze
>Assignee: Plamen Jeliazkov
> Attachments: HDFS-7903.1.patch, HDFS-7903.patch, 
> testMultipleTruncate.patch
>
>
> # Create a file.
> # Create a snapshot.
> # Truncate the file in the middle of a block.
> # Delete the snapshot.
> The block cannot be recovered.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HDFS-7903) Cannot recover block after truncate and delete snapshot

2015-03-09 Thread Allen Wittenauer (JIRA)

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

Allen Wittenauer updated HDFS-7903:
---
Fix Version/s: (was: 2.7.0)

> Cannot recover block after truncate and delete snapshot
> ---
>
> Key: HDFS-7903
> URL: https://issues.apache.org/jira/browse/HDFS-7903
> Project: Hadoop HDFS
>  Issue Type: Sub-task
>  Components: datanode, namenode
>Reporter: Tsz Wo Nicholas Sze
>Assignee: Plamen Jeliazkov
> Attachments: HDFS-7903.patch, testMultipleTruncate.patch
>
>
> # Create a file.
> # Create a snapshot.
> # Truncate the file in the middle of a block.
> # Delete the snapshot.
> The block cannot be recovered.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HDFS-7903) Cannot recover block after truncate and delete snapshot

2015-03-09 Thread Plamen Jeliazkov (JIRA)

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

Plamen Jeliazkov updated HDFS-7903:
---
Status: Patch Available  (was: In Progress)

> Cannot recover block after truncate and delete snapshot
> ---
>
> Key: HDFS-7903
> URL: https://issues.apache.org/jira/browse/HDFS-7903
> Project: Hadoop HDFS
>  Issue Type: Sub-task
>  Components: datanode, namenode
>Reporter: Tsz Wo Nicholas Sze
>Assignee: Plamen Jeliazkov
> Fix For: 2.7.0
>
> Attachments: HDFS-7903.patch, testMultipleTruncate.patch
>
>
> # Create a file.
> # Create a snapshot.
> # Truncate the file in the middle of a block.
> # Delete the snapshot.
> The block cannot be recovered.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HDFS-7903) Cannot recover block after truncate and delete snapshot

2015-03-09 Thread Plamen Jeliazkov (JIRA)

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

Plamen Jeliazkov updated HDFS-7903:
---
Attachment: HDFS-7903.patch

Attaching a patch to address the problem.

I moved the test into a separate test. I ran the fix again your patch though, 
[~szetszwo], before separating it into a smaller test.

> Cannot recover block after truncate and delete snapshot
> ---
>
> Key: HDFS-7903
> URL: https://issues.apache.org/jira/browse/HDFS-7903
> Project: Hadoop HDFS
>  Issue Type: Sub-task
>  Components: datanode, namenode
>Reporter: Tsz Wo Nicholas Sze
>Assignee: Plamen Jeliazkov
> Fix For: 2.7.0
>
> Attachments: HDFS-7903.patch, testMultipleTruncate.patch
>
>
> # Create a file.
> # Create a snapshot.
> # Truncate the file in the middle of a block.
> # Delete the snapshot.
> The block cannot be recovered.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HDFS-7903) Cannot recover block after truncate and delete snapshot

2015-03-08 Thread Tsz Wo Nicholas Sze (JIRA)

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

Tsz Wo Nicholas Sze updated HDFS-7903:
--
Attachment: (was: testMultipleTruncate.patch)

> Cannot recover block after truncate and delete snapshot
> ---
>
> Key: HDFS-7903
> URL: https://issues.apache.org/jira/browse/HDFS-7903
> Project: Hadoop HDFS
>  Issue Type: Sub-task
>  Components: datanode, namenode
>Reporter: Tsz Wo Nicholas Sze
> Fix For: 2.7.0
>
> Attachments: testMultipleTruncate.patch
>
>
> # Create a file.
> # Create a snapshot.
> # Truncate the file in the middle of a block.
> # Delete the snapshot.
> The block cannot be recovered.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HDFS-7903) Cannot recover block after truncate and delete snapshot

2015-03-08 Thread Tsz Wo Nicholas Sze (JIRA)

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

Tsz Wo Nicholas Sze updated HDFS-7903:
--
Attachment: testMultipleTruncate.patch

> Cannot recover block after truncate and delete snapshot
> ---
>
> Key: HDFS-7903
> URL: https://issues.apache.org/jira/browse/HDFS-7903
> Project: Hadoop HDFS
>  Issue Type: Sub-task
>  Components: datanode, namenode
>Reporter: Tsz Wo Nicholas Sze
> Fix For: 2.7.0
>
> Attachments: testMultipleTruncate.patch
>
>
> # Create a file.
> # Create a snapshot.
> # Truncate the file in the middle of a block.
> # Delete the snapshot.
> The block cannot be recovered.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HDFS-7903) Cannot recover block after truncate and delete snapshot

2015-03-08 Thread Tsz Wo Nicholas Sze (JIRA)

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

Tsz Wo Nicholas Sze updated HDFS-7903:
--
Attachment: testMultipleTruncate.patch

testMultipleTruncate.patch: after this patch, the test fails.

> Cannot recover block after truncate and delete snapshot
> ---
>
> Key: HDFS-7903
> URL: https://issues.apache.org/jira/browse/HDFS-7903
> Project: Hadoop HDFS
>  Issue Type: Sub-task
>  Components: datanode, namenode
>Reporter: Tsz Wo Nicholas Sze
> Fix For: 2.7.0
>
> Attachments: testMultipleTruncate.patch
>
>
> # Create a file.
> # Create a snapshot.
> # Truncate the file in the middle of a block.
> # Delete the snapshot.
> The block cannot be recovered.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)