[jira] [Updated] (HDFS-7957) Truncate should verify quota before making changes

2016-07-05 Thread Shen Yinjie (JIRA)

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

Shen Yinjie updated HDFS-7957:
--
Assignee: Jing Zhao  (was: Shen Yinjie)

> Truncate should verify quota before making changes
> --
>
> Key: HDFS-7957
> URL: https://issues.apache.org/jira/browse/HDFS-7957
> Project: Hadoop HDFS
>  Issue Type: Bug
>  Components: namenode
>Affects Versions: 2.7.0
>Reporter: Jing Zhao
>Assignee: Jing Zhao
>Priority: Critical
> Fix For: 2.7.0
>
> Attachments: HDFS-7957.000.patch, HDFS-7957.001.patch, 
> HDFS-7957.002.patch
>
>
> This is a similar issue with HDFS-7587: for truncate we should also verify 
> quota in the beginning and update quota in the end.



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

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Updated] (HDFS-7957) Truncate should verify quota before making changes

2015-03-20 Thread Jing Zhao (JIRA)

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

Jing Zhao updated HDFS-7957:

   Resolution: Fixed
Fix Version/s: 2.7.0
   Status: Resolved  (was: Patch Available)

Thanks again for the review, Nicholas! I've committed this to trunk, branch-2 
and branch-2.7.

 Truncate should verify quota before making changes
 --

 Key: HDFS-7957
 URL: https://issues.apache.org/jira/browse/HDFS-7957
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: namenode
Affects Versions: 2.7.0
Reporter: Jing Zhao
Assignee: Jing Zhao
Priority: Critical
 Fix For: 2.7.0

 Attachments: HDFS-7957.000.patch, HDFS-7957.001.patch, 
 HDFS-7957.002.patch


 This is a similar issue with HDFS-7587: for truncate we should also verify 
 quota in the beginning and update quota in the end.



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


[jira] [Updated] (HDFS-7957) Truncate should verify quota before making changes

2015-03-20 Thread Jing Zhao (JIRA)

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

Jing Zhao updated HDFS-7957:

Attachment: HDFS-7957.002.patch

Thanks for the review, Nicholas! Yes, you're right. Update the patch to address 
your comments.

 Truncate should verify quota before making changes
 --

 Key: HDFS-7957
 URL: https://issues.apache.org/jira/browse/HDFS-7957
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: namenode
Affects Versions: 2.7.0
Reporter: Jing Zhao
Assignee: Jing Zhao
Priority: Critical
 Attachments: HDFS-7957.000.patch, HDFS-7957.001.patch, 
 HDFS-7957.002.patch


 This is a similar issue with HDFS-7587: for truncate we should also verify 
 quota in the beginning and update quota in the end.



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


[jira] [Updated] (HDFS-7957) Truncate should verify quota before making changes

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

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

Tsz Wo Nicholas Sze updated HDFS-7957:
--
Hadoop Flags: Reviewed

+1 the new patch looks good.  Thanks a lot!

 Truncate should verify quota before making changes
 --

 Key: HDFS-7957
 URL: https://issues.apache.org/jira/browse/HDFS-7957
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: namenode
Affects Versions: 2.7.0
Reporter: Jing Zhao
Assignee: Jing Zhao
Priority: Critical
 Attachments: HDFS-7957.000.patch, HDFS-7957.001.patch, 
 HDFS-7957.002.patch


 This is a similar issue with HDFS-7587: for truncate we should also verify 
 quota in the beginning and update quota in the end.



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


[jira] [Updated] (HDFS-7957) Truncate should verify quota before making changes

2015-03-19 Thread Jing Zhao (JIRA)

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

Jing Zhao updated HDFS-7957:

Attachment: HDFS-7957.001.patch

Update the calculation to fix the failed test. Also add new tests.

 Truncate should verify quota before making changes
 --

 Key: HDFS-7957
 URL: https://issues.apache.org/jira/browse/HDFS-7957
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: namenode
Affects Versions: 2.7.0
Reporter: Jing Zhao
Assignee: Jing Zhao
Priority: Critical
 Attachments: HDFS-7957.000.patch, HDFS-7957.001.patch


 This is a similar issue with HDFS-7587: for truncate we should also verify 
 quota in the beginning and update quota in the end.



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


[jira] [Updated] (HDFS-7957) Truncate should verify quota before making changes

2015-03-18 Thread Jing Zhao (JIRA)

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

Jing Zhao updated HDFS-7957:

Attachment: HDFS-7957.000.patch

Initial patch. The quota change computation is a little bit complicated, still 
need to add more tests to verify the quota change computation.

 Truncate should verify quota before making changes
 --

 Key: HDFS-7957
 URL: https://issues.apache.org/jira/browse/HDFS-7957
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: namenode
Affects Versions: 2.7.0
Reporter: Jing Zhao
Assignee: Jing Zhao
Priority: Critical
 Attachments: HDFS-7957.000.patch


 This is a similar issue with HDFS-7587: for truncate we should also verify 
 quota in the beginning and update quota in the end.



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


[jira] [Updated] (HDFS-7957) Truncate should verify quota before making changes

2015-03-18 Thread Jing Zhao (JIRA)

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

Jing Zhao updated HDFS-7957:

Status: Patch Available  (was: Open)

 Truncate should verify quota before making changes
 --

 Key: HDFS-7957
 URL: https://issues.apache.org/jira/browse/HDFS-7957
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: namenode
Affects Versions: 2.7.0
Reporter: Jing Zhao
Assignee: Jing Zhao
Priority: Critical
 Attachments: HDFS-7957.000.patch


 This is a similar issue with HDFS-7587: for truncate we should also verify 
 quota in the beginning and update quota in the end.



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