Bug #42753 ndb_error_reporter creates only empty tarballs if not using gnu-tar
Submitted: 11 Feb 2009 8:49 Modified: 15 Feb 2009 20:05
Reporter: Guido Ostkamp Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S2 (Serious)
Version:* OS:Solaris
Assigned to: Jonas Oreland CPU Architecture:Any

[11 Feb 2009 8:49] Guido Ostkamp
Description:
We are using MySQL 6.4 version jonas@mysql.com-20090204124234-btvep0nz9e2vk030 dated Wed 2009-02-04 13:42:34 +0100, on Solaris 10 Sparc.

The NDB error reporter always creates empty tarballs after collecting the data.

How to repeat:
Use ndb_error_reporter on Solaris 10 Sparc cluster.

Suggested fix:
The file storage/ndb/tools/ndb_error_reporter contains calls like this:
  system "tar c $reportdir|bzip2 > $outfile";
or 
  system "tar c $reportdir|gzip > $outfile";

That syntax doesn't work under Solaris, it must be changed to

  system "tar cf - $reportdir|bzip2 > $outfile";
or 
  system "tar cf - $reportdir|gzip > $outfile";
[12 Feb 2009 8:22] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/65991

2816 Jonas Oreland	2009-02-12
      ndb - bug#42753 - ndb_error_reporter produces empty reports if not using gnu-tar
[12 Feb 2009 8:28] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/65994

2815 Jonas Oreland	2009-02-12
      ndb - bug#42753 - ndb_error_reporter produces empty reports if not using gnu-tar
[12 Feb 2009 8:32] Bugs System
Pushed into 5.1.31-ndb-6.2.17 (revid:jonas@mysql.com-20090212082900-dx2r04bh8f7ya7fk) (version source revid:jonas@mysql.com-20090212082900-dx2r04bh8f7ya7fk) (merge vers: 5.1.31-ndb-6.2.17) (pib:6)
[12 Feb 2009 8:33] Bugs System
Pushed into 5.1.31-ndb-6.3.23 (revid:jonas@mysql.com-20090212083026-oi41lqp2x1r9hjcv) (version source revid:jonas@mysql.com-20090212083026-oi41lqp2x1r9hjcv) (merge vers: 5.1.31-ndb-6.3.23) (pib:6)
[12 Feb 2009 8:33] Bugs System
Pushed into 5.1.31-ndb-6.4.3 (revid:jonas@mysql.com-20090212083219-qlxgvuuao2q3pyxw) (version source revid:jonas@mysql.com-20090212083219-qlxgvuuao2q3pyxw) (merge vers: 5.1.31-ndb-6.4.3) (pib:6)
[12 Feb 2009 14:09] Stewart Smith
patch is perfect... not sure where else this might be a problem.... likely candidates are HPUX and AIX.

Of course, this script doesn't work on Win32, so that'll have to be tackled at some point in teh Win32 port dev.
[15 Feb 2009 20:05] Jon Stephens
Documented in the NDB-6.2.17, 6.3.23, and 6.4.3 changelogs as follows:

        ndb_error_reporter worked correctly only with GNU tar. (With
        other versions of tar, it produced empty archives.)