Bug 1133266
| Summary: | remove unused parameter and correctly handle mem alloc failure | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Harshavardhana <fharshav> |
| Component: | stripe | Assignee: | Harshavardhana <fharshav> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | mainline | CC: | bugs, cww, gluster-bugs, kkeithle |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1002207 | Environment: | |
| Last Closed: | 2015-02-12 20:15:07 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: | |||
| Bug Depends On: | 1002207 | ||
| Bug Blocks: | |||
|
Description
Harshavardhana
2014-08-24 06:44:00 UTC
This bug cloned since test case was improper
$ git diff
diff --git a/tests/bugs/bug-1002207.t b/tests/bugs/bug-1002207.t
index 50b8c7d..4fad2ff 100644
--- a/tests/bugs/bug-1002207.t
+++ b/tests/bugs/bug-1002207.t
@@ -18,7 +18,8 @@ EXPECT 'Created' volinfo_field $V0 'Status';
TEST $CLI volume start $V0;
EXPECT 'Started' volinfo_field $V0 'Status';
-dd if=/dev/zero of=$M0/file$i.data bs=1024 count=1024 1>/dev/null 2>&1
+TEST glusterfs --attribute-timeout=0 --entry-timeout=0 -s $H0 --volfile-id=$V0 $M0;
+TEST dd if=/dev/zero of=$M0/file$i.data bs=1024 count=1024;
function xattr_query_check()
{
@@ -40,7 +41,6 @@ function set_xattr()
}
EXPECT 0 set_xattr $M0/file$i.data "trusted.name" "testofafairlylongxattrstringthatbutnotlongenoughtofailmemoryallocation"
-
EXPECT 0 xattr_query_check $M0/file$i.data "trusted.name"
## Finish up
@@ -51,4 +51,3 @@ TEST $CLI volume delete $V0;
TEST ! $CLI volume info $V0;
cleanup;
-
REVIEW: http://review.gluster.org/8519 (tests: bug-1002207.t - should mount glusterfs before tests) posted (#1) for review on master by Harshavardhana (harsha) COMMIT: http://review.gluster.org/8519 committed in master by Harshavardhana (harsha) ------ commit b6b279107c70044ea97949c573442340f31d0220 Author: Harshavardhana <harsha> Date: Sat Aug 23 23:46:51 2014 -0700 tests: bug-1002207.t - should mount glusterfs before tests Change-Id: I9238ea8cf4e5ad9bab384ef08d873a5b0e578a33 BUG: 1133266 Signed-off-by: Harshavardhana <harsha> Reviewed-on: http://review.gluster.org/8519 Tested-by: Gluster Build System <jenkins.com> Reviewed-by: Niels de Vos <ndevos> fix is in 3.6 branch by now |