Bug #73917 i_main.invalid_packet fails on PB2, on platforms where nc/netcat is not present
Submitted: 15 Sep 2014 8:37 Modified: 17 Oct 2014 11:46
Reporter: Sujatha Sivakumar Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Replication Severity:S3 (Non-critical)
Version:5.6.22 OS:Any
Assigned to: CPU Architecture:Any

[15 Sep 2014 8:37] Sujatha Sivakumar
Description:
i_main.invalid_packet                    w2 [ fail ]
        Test ended at 2014-09-13 10:36:37

CURRENT_TEST: i_main.invalid_packet
sh: nc: command not found
cat: write error: Broken pipe
mysqltest: At line 33: command "cat ../internal/mysql-test/std_data/invalid_packet/client_auth_packet ../internal/mysql-test/std_data/invalid_packet/invalid_com_binlog_dump_gtid_packet | nc 127.0.0.1 $MASTER_MYPORT > /dev/null" failed

Output from before failure:
exec of 'cat ../internal/mysql-test/std_data/invalid_packet/client_auth_packet ../internal/mysql-test/std_data/invalid_packet/invalid_com_binlog_dump_gtid_packet | nc 127.0.0.1 22010 > /dev/null' failed, error: 32512, status: 127, errno: 0

http://pb2.no.oracle.com/?action=archive_download&archive_id=13206815&pretty=please

How to repeat:
Command from PB2:
 mysql-test-run.pl  --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=normal-debug --vardir=/dev/shm/mtr-19097/var-normal-debug --report-features --skip-test-list=collections/disabled-daily.list --mysqld=--innodb_autoextend_increment=64 --unit-tests --parallel=4

Suggested fix:
nc does not exist in OEL 7, F20 etc.Test must be rewritten to skip the test if nc/netcat is not available.
[17 Oct 2014 11:46] David Moss
From the description this does not have any impact on the documentation, therefore closing it.
[10 Dec 2014 13:13] Laurynas Biveinis
That's a good example of a bug that should have gone to the internal bug tracker, but here you go:

$ bzr log -r 6176
------------------------------------------------------------
revno: 6176
committer: Sujatha Sivakumar <sujatha.sivakumar@oracle.com>
branch nick: Bug19619476_mysql-5.6
timestamp: Thu 2014-09-25 15:09:37 +0530
message:
  Bug#19619476: INVALID_PACKET FAILS ON PB2, ON
  PLATFORMS WHERE NC/NETCAT IS NOT PRESENT.
  
  Fix:
  ====
  "netcat" utility is not available on few PB2 platforms.
  Hence the test script needs to be skipped on those
  platforms. BUG#14705941 has implemented these changes
  in mysql-5.7 hence backporting the changes to mysql-5.6 to
  fix the issue.