Bug 1101186

Summary: "hadoop fs -appendToFile" with quota without error message
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Martin Kudlej <mkudlej>
Component: rhs-hadoopAssignee: Bradley Childs <bchilds>
Status: CLOSED WONTFIX QA Contact: BigData QE <bigdata-qe-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: artemb1004, chrisw, eboyd, esammons, matt, nlevinki, rhs-bugs, vbellur
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-05 01:36:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Kudlej 2014-05-26 11:31:11 UTC
Description of problem:
If I tried to append to file which size is equal to quota on parent directory, it hasn't visible failed or it hasn't raised any exception/error message.

Version-Release number of selected component (if applicable):
glusterfs-3.4.0.44rhs-1.el6rhs.x86_64
glusterfs-fuse-3.4.0.44rhs-1.el6rhs.x86_64
glusterfs-geo-replication-3.4.0.44rhs-1.el6rhs.x86_64
glusterfs-libs-3.4.0.44rhs-1.el6rhs.x86_64
glusterfs-server-3.4.0.44rhs-1.el6rhs.x86_64
hadoop-2.2.0.2.0.6.0-101.el6.x86_64
hadoop-client-2.2.0.2.0.6.0-101.el6.x86_64
hadoop-hdfs-2.2.0.2.0.6.0-101.el6.x86_64
hadoop-libhdfs-2.2.0.2.0.6.0-101.el6.x86_64
hadoop-lzo-0.5.0-1.x86_64
hadoop-lzo-native-0.5.0-1.x86_64
hadoop-mapreduce-2.2.0.2.0.6.0-101.el6.x86_64
hadoop-mapreduce-historyserver-2.2.0.2.0.6.0-101.el6.x86_64
hadoop-yarn-2.2.0.2.0.6.0-101.el6.x86_64
hadoop-yarn-nodemanager-2.2.0.2.0.6.0-101.el6.x86_64
hadoop-yarn-resourcemanager-2.2.0.2.0.6.0-101.el6.x86_64
python-rhsm-1.8.17-1.el6_4.x86_64
redhat-storage-logos-60.0.17-1.el6rhs.noarch
rhs-hadoop-2.3.0-6.noarch
rhs-hadoop-install-1_10-1.el6rhs.noarch

How reproducible:
100%

Steps to Reproduce:
0. enable quota on gluster volume
1. set up quota on directory
2. hadoop fs -touchz _file_in_that_directory_
3. create file which has size equal to quota: _local_file_
4. hadoop fs -appendToFile _file_in_that_directory_ _local_file_
5. create file with size == 1B
6. hadoop fs -appendToFile _file_in_that_directory_ _1B_file_
There is not error message about unsuccessful append operation. Return code of this command equals 0.
If I try:
$ cat _1B_file_ >> /mnt/glusterfs/_directory_with_quota_/_file_in_that_directory_
It fails which is correct behavior.


Actual results:
It doesn't return error return code and error message.

Expected results:
It will return error return code + it writes proper error message to stderr.

Comment 2 RHEL Program Management 2015-03-06 11:55:53 UTC
Development Management has reviewed and declined this request.
You may appeal this decision by reopening this request.

Comment 6 Lourdes Yang 2023-10-03 07:58:23 UTC Comment hidden (spam)