False positive testsuite failures with grep 2.10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
High
|
Alexey Kopytov | ||
1.6 |
Fix Released
|
High
|
Alexey Kopytov | ||
2.0 |
Fix Released
|
High
|
Alexey Kopytov | ||
2.1 |
Fix Released
|
High
|
Alexey Kopytov |
Bug Description
When grep 2.10 or newer (e.g. Ubuntu 12.04) is used, a part of tests fail with a false positive
+ grep 'xtrabackup: using O_DIRECT' /home/laurynas/
grep: input file `/home/
+ vlog 'xtrabackup was not using O_DIRECT for the input file.'
++ date '+%F %T'
++ basename t/bug606981.sh
+ echo '2012-05-08 13:22:21: bug606981.sh: xtrabackup was not using O_DIRECT for the input file.'
2012-05-08 13:22:21: bug606981.sh: xtrabackup was not using O_DIRECT for the input file.
+ exit -1
The "xtrabackup: using O_DIRECT" is present in the file, however grep refuses to run due to input and output being identical, this change is documented in 2.10 release notes:
grep now rejects a command like "grep -r pattern . > out",
in which the output file is also one of the inputs,
because it can result in an "infinite" disk-filling loop.
[bug present since "the beginning"]
Related branches
- Laurynas Biveinis (community): Approve
-
Diff: 51 lines (+18/-2)3 files modifiedtest/inc/common.sh (+16/-0)
test/t/bug759225.sh (+1/-1)
test/t/xb_stats.sh (+1/-1)
- Laurynas Biveinis (community): Approve
-
Diff: 64 lines (+19/-3)4 files modifiedtest/inc/common.sh (+16/-0)
test/t/bug606981.sh (+1/-1)
test/t/bug759225.sh (+1/-1)
test/t/xb_stats.sh (+1/-1)
- Laurynas Biveinis (community): Approve
-
Diff: 64 lines (+19/-3)4 files modifiedtest/inc/common.sh (+16/-0)
test/t/bug606981.sh (+1/-1)
test/t/bug759225.sh (+1/-1)
test/t/xb_stats.sh (+1/-1)
Changed in percona-xtrabackup: | |
importance: | Undecided → High |
summary: |
- False positive testsuite failures with grep 2.10+ + False positive testsuite failures with grep 2.10 |
We don't see such failures on Precise builds in Jenkins?