From 78aa8c436e28e0ac3f197c82483a70e88eb3f07a Mon Sep 17 00:00:00 2001 From: Carlos Salguero Date: Thu, 9 Jun 2016 15:05:26 -0300 Subject: [PATCH] bug-1402776 Added test --- t/lib/samples/tcpdump/tcpdump-1402776.txt | 231 ++++++++++++++++++ t/pt-query-digest/mysql_analyses.t | 10 + .../samples/tcpdump-1402776_report.txt | 125 ++++++++++ 3 files changed, 366 insertions(+) create mode 100644 t/lib/samples/tcpdump/tcpdump-1402776.txt create mode 100644 t/pt-query-digest/samples/tcpdump-1402776_report.txt diff --git a/t/lib/samples/tcpdump/tcpdump-1402776.txt b/t/lib/samples/tcpdump/tcpdump-1402776.txt new file mode 100644 index 00000000..516f2398 --- /dev/null +++ b/t/lib/samples/tcpdump/tcpdump-1402776.txt @@ -0,0 +1,231 @@ +2016-06-08 13:40:54.262700 IP 127.0.0.1.49520 > 127.0.0.1.13000: tcp 0 + 0x0000: 4500 003c 200d 4000 4006 1cad 7f00 0001 E..<..@.@....... + 0x0010: 7f00 0001 c170 32c8 2772 2700 0000 0000 .....p2.'r'..... + 0x0020: a002 aaaa fe30 0000 0204 ffd7 0402 080a .....0.......... + 0x0030: 0191 070d 0000 0000 0103 0307 ............ +2016-06-08 13:40:54.262712 IP 127.0.0.1.13000 > 127.0.0.1.49520: tcp 0 + 0x0000: 4500 003c 0000 4000 4006 3cba 7f00 0001 E..<..@.@.<..... + 0x0010: 7f00 0001 32c8 c170 ddc7 f687 2772 2701 ....2..p....'r'. + 0x0020: a012 aaaa fe30 0000 0204 ffd7 0402 080a .....0.......... + 0x0030: 0191 070d 0191 070d 0103 0307 ............ +2016-06-08 13:40:54.262721 IP 127.0.0.1.49520 > 127.0.0.1.13000: tcp 0 + 0x0000: 4500 0034 200e 4000 4006 1cb4 7f00 0001 E..4..@.@....... + 0x0010: 7f00 0001 c170 32c8 2772 2701 ddc7 f688 .....p2.'r'..... + 0x0020: 8010 0156 fe28 0000 0101 080a 0191 070d ...V.(.......... + 0x0030: 0191 070d .... +2016-06-08 13:40:54.262963 IP 127.0.0.1.13000 > 127.0.0.1.49520: tcp 88 + 0x0000: 4500 008c f185 4000 4006 4ae4 7f00 0001 E.....@.@.J..... + 0x0010: 7f00 0001 32c8 c170 ddc7 f688 2772 2701 ....2..p....'r'. + 0x0020: 8018 0156 fe80 0000 0101 080a 0191 070d ...V............ + 0x0030: 0191 070d 5400 0000 0a35 2e37 2e31 332d ....T....5.7.13- + 0x0040: 6465 6275 672d 6c6f 6700 2100 0000 5541 debug-log.!...UA + 0x0050: 6746 1f70 7a4d 00ff ff08 0200 ffc1 1500 gF.pzM.......... + 0x0060: 0000 0000 0000 0000 0044 1002 6d2d 5502 .........D..m-U. + 0x0070: 797e 753b 7600 6d79 7371 6c5f 6e61 7469 y~u;v.mysql_nati + 0x0080: 7665 5f70 6173 7377 6f72 6400 ve_password. +2016-06-08 13:40:54.262980 IP 127.0.0.1.49520 > 127.0.0.1.13000: tcp 0 + 0x0000: 4508 0034 200f 4000 4006 1cab 7f00 0001 E..4..@.@....... + 0x0010: 7f00 0001 c170 32c8 2772 2701 ddc7 f6e0 .....p2.'r'..... + 0x0020: 8010 0156 fe28 0000 0101 080a 0191 070d ...V.(.......... + 0x0030: 0191 070d .... +2016-06-08 13:40:54.263637 IP 127.0.0.1.49520 > 127.0.0.1.13000: tcp 69 + 0x0000: 4508 0079 2010 4000 4006 1c65 7f00 0001 E..y..@.@..e.... + 0x0010: 7f00 0001 c170 32c8 2772 2701 ddc7 f6e0 .....p2.'r'..... + 0x0020: 8018 0156 fe6d 0000 0101 080a 0191 070d ...V.m.......... + 0x0030: 0191 070d 4100 0001 0da2 0e00 0000 0040 ....A..........@ + 0x0040: 0800 0000 0000 0000 0000 0000 0000 0000 ................ + 0x0050: 0000 0000 0000 0000 726f 6f74 0000 7465 ........root..te + 0x0060: 7374 006d 7973 716c 5f6e 6174 6976 655f st.mysql_native_ + 0x0070: 7061 7373 776f 7264 00 password. +2016-06-08 13:40:54.263640 IP 127.0.0.1.13000 > 127.0.0.1.49520: tcp 0 + 0x0000: 4500 0034 f186 4000 4006 4b3b 7f00 0001 E..4..@.@.K;.... + 0x0010: 7f00 0001 32c8 c170 ddc7 f6e0 2772 2746 ....2..p....'r'F + 0x0020: 8010 0156 fe28 0000 0101 080a 0191 070d ...V.(.......... + 0x0030: 0191 070d .... +2016-06-08 13:40:54.263747 IP 127.0.0.1.13000 > 127.0.0.1.49520: tcp 11 + 0x0000: 4500 003f f187 4000 4006 4b2f 7f00 0001 E..?..@.@.K/.... + 0x0010: 7f00 0001 32c8 c170 ddc7 f6e0 2772 2746 ....2..p....'r'F + 0x0020: 8018 0156 fe33 0000 0101 080a 0191 070d ...V.3.......... + 0x0030: 0191 070d 0700 0002 0000 0002 0000 00 ............... +2016-06-08 13:40:54.263776 IP 127.0.0.1.49520 > 127.0.0.1.13000: tcp 27 + 0x0000: 4508 004f 2011 4000 4006 1c8e 7f00 0001 E..O..@.@....... + 0x0010: 7f00 0001 c170 32c8 2772 2746 ddc7 f6eb .....p2.'r'F.... + 0x0020: 8018 0156 fe43 0000 0101 080a 0191 070d ...V.C.......... + 0x0030: 0191 070d 1700 0000 0355 5345 2069 6e66 .........USE.inf + 0x0040: 6f72 6d61 7469 6f6e 5f73 6368 656d 61 ormation_schema +2016-06-08 13:40:54.263876 IP 127.0.0.1.13000 > 127.0.0.1.49520: tcp 11 + 0x0000: 4500 003f f188 4000 4006 4b2e 7f00 0001 E..?..@.@.K..... + 0x0010: 7f00 0001 32c8 c170 ddc7 f6eb 2772 2761 ....2..p....'r'a + 0x0020: 8018 0156 fe33 0000 0101 080a 0191 070d ...V.3.......... + 0x0030: 0191 070d 0700 0001 0000 0002 0000 00 ............... +2016-06-08 13:40:54.263895 IP 127.0.0.1.49520 > 127.0.0.1.13000: tcp 16 + 0x0000: 4508 0044 2012 4000 4006 1c98 7f00 0001 E..D..@.@....... + 0x0010: 7f00 0001 c170 32c8 2772 2761 ddc7 f6f6 .....p2.'r'a.... + 0x0020: 8018 0156 fe38 0000 0101 080a 0191 070d ...V.8.......... + 0x0030: 0191 070d 0c00 0000 0353 484f 5720 5441 .........SHOW.TA + 0x0040: 424c 4553 BLES +2016-06-08 13:40:54.264360 IP 127.0.0.1.13000 > 127.0.0.1.49520: tcp 1376 + 0x0000: 4500 0594 f189 4000 4006 45d8 7f00 0001 E.....@.@.E..... + 0x0010: 7f00 0001 32c8 c170 ddc7 f6f6 2772 2771 ....2..p....'r'q + 0x0020: 8018 0156 0389 0000 0101 080a 0191 070d ...V............ + 0x0030: 0191 070d 0100 0001 0164 0000 0203 6465 .........d....de + 0x0040: 6612 696e 666f 726d 6174 696f 6e5f 7363 f.information_sc + 0x0050: 6865 6d61 0b54 4142 4c45 5f4e 414d 4553 hema.TABLE_NAMES + 0x0060: 0b54 4142 4c45 5f4e 414d 4553 1c54 6162 .TABLE_NAMES.Tab + 0x0070: 6c65 735f 696e 5f69 6e66 6f72 6d61 7469 les_in_informati + 0x0080: 6f6e 5f73 6368 656d 610a 5441 424c 455f on_schema.TABLE_ + 0x0090: 4e41 4d45 0c08 0040 0000 00fd 0100 0000 NAME...@........ + 0x00a0: 0005 0000 03fe 0000 2200 0f00 0004 0e43 ........"......C + 0x00b0: 4841 5241 4354 4552 5f53 4554 530b 0000 HARACTER_SETS... + 0x00c0: 050a 434f 4c4c 4154 494f 4e53 2600 0006 ..COLLATIONS&... + 0x00d0: 2543 4f4c 4c41 5449 4f4e 5f43 4841 5241 %COLLATION_CHARA + 0x00e0: 4354 4552 5f53 4554 5f41 5050 4c49 4341 CTER_SET_APPLICA + 0x00f0: 4249 4c49 5459 0800 0007 0743 4f4c 554d BILITY.....COLUM + 0x0100: 4e53 1200 0008 1143 4f4c 554d 4e5f 5052 NS.....COLUMN_PR + 0x0110: 4956 494c 4547 4553 0800 0009 0745 4e47 IVILEGES.....ENG + 0x0120: 494e 4553 0700 000a 0645 5645 4e54 5306 INES.....EVENTS. + 0x0130: 0000 0b05 4649 4c45 530e 0000 0c0d 474c ....FILES.....GL + 0x0140: 4f42 414c 5f53 5441 5455 5311 0000 0d10 OBAL_STATUS..... + 0x0150: 474c 4f42 414c 5f56 4152 4941 424c 4553 GLOBAL_VARIABLES + 0x0160: 1100 000e 104b 4559 5f43 4f4c 554d 4e5f .....KEY_COLUMN_ + 0x0170: 5553 4147 4510 0000 0f0f 4f50 5449 4d49 USAGE.....OPTIMI + 0x0180: 5a45 525f 5452 4143 450b 0000 100a 5041 ZER_TRACE.....PA + 0x0190: 5241 4d45 5445 5253 0b00 0011 0a50 4152 RAMETERS.....PAR + 0x01a0: 5449 5449 4f4e 5308 0000 1207 504c 5547 TITIONS.....PLUG + 0x01b0: 494e 530c 0000 130b 5052 4f43 4553 534c INS.....PROCESSL + 0x01c0: 4953 540a 0000 1409 5052 4f46 494c 494e IST.....PROFILIN + 0x01d0: 4718 0000 1517 5245 4645 5245 4e54 4941 G.....REFERENTIA + 0x01e0: 4c5f 434f 4e53 5452 4149 4e54 5309 0000 L_CONSTRAINTS... + 0x01f0: 1608 524f 5554 494e 4553 0900 0017 0853 ..ROUTINES.....S + 0x0200: 4348 454d 4154 4112 0000 1811 5343 4845 CHEMATA.....SCHE + 0x0210: 4d41 5f50 5249 5649 4c45 4745 530f 0000 MA_PRIVILEGES... + 0x0220: 190e 5345 5353 494f 4e5f 5354 4154 5553 ..SESSION_STATUS + 0x0230: 1200 001a 1153 4553 5349 4f4e 5f56 4152 .....SESSION_VAR + 0x0240: 4941 424c 4553 0b00 001b 0a53 5441 5449 IABLES.....STATI + 0x0250: 5354 4943 5307 0000 1c06 5441 424c 4553 STICS.....TABLES + 0x0260: 0c00 001d 0b54 4142 4c45 5350 4143 4553 .....TABLESPACES + 0x0270: 1200 001e 1154 4142 4c45 5f43 4f4e 5354 .....TABLE_CONST + 0x0280: 5241 494e 5453 1100 001f 1054 4142 4c45 RAINTS.....TABLE + 0x0290: 5f50 5249 5649 4c45 4745 5309 0000 2008 _PRIVILEGES..... + 0x02a0: 5452 4947 4745 5253 1000 0021 0f55 5345 TRIGGERS...!.USE + 0x02b0: 525f 5052 4956 494c 4547 4553 0600 0022 R_PRIVILEGES..." + 0x02c0: 0556 4945 5753 0d00 0023 0c49 4e4e 4f44 .VIEWS...#.INNOD + 0x02d0: 425f 4c4f 434b 530b 0000 240a 494e 4e4f B_LOCKS...$.INNO + 0x02e0: 4442 5f54 5258 1500 0025 1449 4e4e 4f44 DB_TRX...%.INNOD + 0x02f0: 425f 5359 535f 4441 5441 4649 4c45 5311 B_SYS_DATAFILES. + 0x0300: 0000 2610 494e 4e4f 4442 5f46 545f 434f ..&.INNODB_FT_CO + 0x0310: 4e46 4947 1300 0027 1249 4e4e 4f44 425f NFIG...'.INNODB_ + 0x0320: 5359 535f 5649 5254 5541 4c0b 0000 280a SYS_VIRTUAL...(. + 0x0330: 494e 4e4f 4442 5f43 4d50 1800 0029 1749 INNODB_CMP...).I + 0x0340: 4e4e 4f44 425f 4654 5f42 4549 4e47 5f44 NNODB_FT_BEING_D + 0x0350: 454c 4554 4544 1100 002a 1049 4e4e 4f44 ELETED...*.INNOD + 0x0360: 425f 434d 505f 5245 5345 5415 0000 2b14 B_CMP_RESET...+. + 0x0370: 494e 4e4f 4442 5f43 4d50 5f50 4552 5f49 INNODB_CMP_PER_I + 0x0380: 4e44 4558 1400 002c 1349 4e4e 4f44 425f NDEX...,.INNODB_ + 0x0390: 434d 504d 454d 5f52 4553 4554 1200 002d CMPMEM_RESET...- + 0x03a0: 1149 4e4e 4f44 425f 4654 5f44 454c 4554 .INNODB_FT_DELET + 0x03b0: 4544 1700 002e 1649 4e4e 4f44 425f 4255 ED.....INNODB_BU + 0x03c0: 4646 4552 5f50 4147 455f 4c52 5512 0000 FFER_PAGE_LRU... + 0x03d0: 2f11 494e 4e4f 4442 5f4c 4f43 4b5f 5741 /.INNODB_LOCK_WA + 0x03e0: 4954 5317 0000 3016 494e 4e4f 4442 5f54 ITS...0.INNODB_T + 0x03f0: 454d 505f 5441 424c 455f 494e 464f 1300 EMP_TABLE_INFO.. + 0x0400: 0031 1249 4e4e 4f44 425f 5359 535f 494e .1.INNODB_SYS_IN + 0x0410: 4445 5845 5312 0000 3211 494e 4e4f 4442 DEXES...2.INNODB + 0x0420: 5f53 5953 5f54 4142 4c45 5312 0000 3311 _SYS_TABLES...3. + 0x0430: 494e 4e4f 4442 5f53 5953 5f46 4945 4c44 INNODB_SYS_FIELD + 0x0440: 531b 0000 341a 494e 4e4f 4442 5f43 4d50 S...4.INNODB_CMP + 0x0450: 5f50 4552 5f49 4e44 4558 5f52 4553 4554 _PER_INDEX_RESET + 0x0460: 1300 0035 1249 4e4e 4f44 425f 4255 4646 ...5.INNODB_BUFF + 0x0470: 4552 5f50 4147 451b 0000 361a 494e 4e4f ER_PAGE...6.INNO + 0x0480: 4442 5f46 545f 4445 4641 554c 545f 5354 DB_FT_DEFAULT_ST + 0x0490: 4f50 574f 5244 1600 0037 1549 4e4e 4f44 OPWORD...7.INNOD + 0x04a0: 425f 4654 5f49 4e44 4558 5f54 4142 4c45 B_FT_INDEX_TABLE + 0x04b0: 1600 0038 1549 4e4e 4f44 425f 4654 5f49 ...8.INNODB_FT_I + 0x04c0: 4e44 4558 5f43 4143 4845 1700 0039 1649 NDEX_CACHE...9.I + 0x04d0: 4e4e 4f44 425f 5359 535f 5441 424c 4553 NNODB_SYS_TABLES + 0x04e0: 5041 4345 530f 0000 3a0e 494e 4e4f 4442 PACES...:.INNODB + 0x04f0: 5f4d 4554 5249 4353 1800 003b 1749 4e4e _METRICS...;.INN + 0x0500: 4f44 425f 5359 535f 464f 5245 4947 4e5f ODB_SYS_FOREIGN_ + 0x0510: 434f 4c53 0e00 003c 0d49 4e4e 4f44 425f COLS...<.INNODB_ + 0x0520: 434d 504d 454d 1900 003d 1849 4e4e 4f44 CMPMEM...=.INNOD + 0x0530: 425f 4255 4646 4552 5f50 4f4f 4c5f 5354 B_BUFFER_POOL_ST + 0x0540: 4154 5313 0000 3e12 494e 4e4f 4442 5f53 ATS...>.INNODB_S + 0x0550: 5953 5f43 4f4c 554d 4e53 1300 003f 1249 YS_COLUMNS...?.I + 0x0560: 4e4e 4f44 425f 5359 535f 464f 5245 4947 NNODB_SYS_FOREIG + 0x0570: 4e16 0000 4015 494e 4e4f 4442 5f53 5953 N...@.INNODB_SYS + 0x0580: 5f54 4142 4c45 5354 4154 5305 0000 41fe _TABLESTATS...A. + 0x0590: 0000 2200 ..". +2016-06-08 13:40:54.264377 IP 127.0.0.1.49520 > 127.0.0.1.13000: tcp 0 + 0x0000: 4508 0034 2013 4000 4006 1ca7 7f00 0001 E..4..@.@....... + 0x0010: 7f00 0001 c170 32c8 2772 2771 ddc7 fc56 .....p2.'r'q...V + 0x0020: 8010 0555 fe28 0000 0101 080a 0191 070d ...U.(.......... + 0x0030: 0191 070d .... +2016-06-08 13:40:54.264406 IP 127.0.0.1.49520 > 127.0.0.1.13000: tcp 5 + 0x0000: 4508 0039 2014 4000 4006 1ca1 7f00 0001 E..9..@.@....... + 0x0010: 7f00 0001 c170 32c8 2772 2771 ddc7 fc56 .....p2.'r'q...V + 0x0020: 8018 0555 fe2d 0000 0101 080a 0191 070d ...U.-.......... + 0x0030: 0191 070d 0100 0000 01 ......... +2016-06-08 13:40:54.264414 IP 127.0.0.1.49520 > 127.0.0.1.13000: tcp 0 + 0x0000: 4508 0034 2015 4000 4006 1ca5 7f00 0001 E..4..@.@....... + 0x0010: 7f00 0001 c170 32c8 2772 2776 ddc7 fc56 .....p2.'r'v...V + 0x0020: 8011 0555 fe28 0000 0101 080a 0191 070d ...U.(.......... + 0x0030: 0191 070d .... +2016-06-08 13:40:54.264496 IP 127.0.0.1.13000 > 127.0.0.1.49520: tcp 0 + 0x0000: 4500 0034 f18a 4000 4006 4b37 7f00 0001 E..4..@.@.K7.... + 0x0010: 7f00 0001 32c8 c170 ddc7 fc56 2772 2777 ....2..p...V'r'w + 0x0020: 8011 0156 fe28 0000 0101 080a 0191 070d ...V.(.......... + 0x0030: 0191 070d .... +2016-06-08 13:40:54.264503 IP 127.0.0.1.49520 > 127.0.0.1.13000: tcp 0 + 0x0000: 4508 0034 2016 4000 4006 1ca4 7f00 0001 E..4..@.@....... + 0x0010: 7f00 0001 c170 32c8 2772 2777 ddc7 fc57 .....p2.'r'w...W + 0x0020: 8010 0555 fe28 0000 0101 080a 0191 070d ...U.(.......... + 0x0030: 0191 070d .... +2016-06-08 13:40:54.706822 IP 127.0.0.1.49522 > 127.0.0.1.13000: tcp 0 + 0x0000: 4500 003c 940d 4000 4006 a8ac 7f00 0001 E..<..@.@....... + 0x0010: 7f00 0001 c172 32c8 7dd6 9371 0000 0000 .....r2.}..q.... + 0x0020: a002 aaaa fe30 0000 0204 ffd7 0402 080a .....0.......... + 0x0030: 0191 077c 0000 0000 0103 0307 ...|........ +2016-06-08 13:40:54.706834 IP 127.0.0.1.13000 > 127.0.0.1.49522: tcp 0 + 0x0000: 4500 003c 0000 4000 4006 3cba 7f00 0001 E..<..@.@.<..... + 0x0010: 7f00 0001 32c8 c172 43ef 4c37 7dd6 9372 ....2..rC.L7}..r + 0x0020: a012 aaaa fe30 0000 0204 ffd7 0402 080a .....0.......... + 0x0030: 0191 077c 0191 077c 0103 0307 ...|...|.... +2016-06-08 13:40:54.706842 IP 127.0.0.1.49522 > 127.0.0.1.13000: tcp 0 + 0x0000: 4500 0034 940e 4000 4006 a8b3 7f00 0001 E..4..@.@....... + 0x0010: 7f00 0001 c172 32c8 7dd6 9372 43ef 4c38 .....r2.}..rC.L8 + 0x0020: 8010 0156 fe28 0000 0101 080a 0191 077c ...V.(.........| + 0x0030: 0191 077c ...| +2016-06-08 13:40:54.707097 IP 127.0.0.1.13000 > 127.0.0.1.49522: tcp 88 + 0x0000: 4500 008c 4b44 4000 4006 f125 7f00 0001 E...KD@.@..%.... + 0x0010: 7f00 0001 32c8 c172 43ef 4c38 7dd6 9372 ....2..rC.L8}..r + 0x0020: 8018 0156 fe80 0000 0101 080a 0191 077c ...V...........| + 0x0030: 0191 077c 5400 0000 0a35 2e37 2e31 332d ...|T....5.7.13- + 0x0040: 6465 6275 672d 6c6f 6700 2200 0000 7e74 debug-log."...~t + 0x0050: 2840 7057 0301 00ff ff08 0200 ffc1 1500 (@pW............ + 0x0060: 0000 0000 0000 0000 002f 032b 1e37 2525 ........./.+.7%% + 0x0070: 3525 0e13 3a00 6d79 7371 6c5f 6e61 7469 5%..:.mysql_nati + 0x0080: 7665 5f70 6173 7377 6f72 6400 ve_password. +2016-06-08 13:40:54.707130 IP 127.0.0.1.49522 > 127.0.0.1.13000: tcp 0 + 0x0000: 4508 0034 940f 4000 4006 a8aa 7f00 0001 E..4..@.@....... + 0x0010: 7f00 0001 c172 32c8 7dd6 9372 43ef 4c90 .....r2.}..rC.L. + 0x0020: 8010 0156 fe28 0000 0101 080a 0191 077c ...V.(.........| + 0x0030: 0191 077c ...| +2016-06-08 13:40:54.707858 IP 127.0.0.1.49522 > 127.0.0.1.13000: tcp 69 + 0x0000: 4508 0079 9410 4000 4006 a864 7f00 0001 E..y..@.@..d.... + 0x0010: 7f00 0001 c172 32c8 7dd6 9372 43ef 4c90 .....r2.}..rC.L. + 0x0020: 8018 0156 fe6d 0000 0101 080a 0191 077c ...V.m.........| + 0x0030: 0191 077c 4100 0001 0da2 0e00 0000 0040 ...|A..........@ + 0x0040: 0800 0000 0000 0000 0000 0000 0000 0000 ................ + 0x0050: 0000 0000 0000 0000 726f 6f74 0000 7465 ........root..te + 0x0060: 7374 006d 7973 716c 5f6e 6174 6976 655f st.mysql_native_ + 0x0070: 7061 7373 776f 7264 00 password. +2016-06-08 13:40:54.707861 IP 127.0.0.1.13000 > 127.0.0.1.49522: tcp 0 + 0x0000: 4500 0034 4b45 4000 4006 f17c 7f00 0001 E..4KE@.@..|.... + 0x0010: 7f00 0001 32c8 c172 43ef 4c90 7dd6 93b7 ....2..rC.L.}... + 0x0020: 8010 0156 fe28 0000 0101 080a 0191 077c ...V.(.........| + 0x0030: 0191 077c ...| +2016-06-08 13:40:54.708017 IP 127.0.0.1.13000 > 127.0.0.1.49522: tcp 11 + 0x0000: 4500 003f 4b46 4000 4006 f170 7f00 0001 E..?KF@.@..p.... + 0x0010: 7f00 0001 32c8 c172 43ef 4c90 7dd6 93b7 ....2..rC.L.}... + 0x0020: 8018 0156 fe33 0000 0101 080a 0191 077c ...V.3.........| + 0x0030: 0191 077c 0700 0002 0000 0002 0000 00 ...|........... diff --git a/t/pt-query-digest/mysql_analyses.t b/t/pt-query-digest/mysql_analyses.t index e8bdd82d..13439fd6 100644 --- a/t/pt-query-digest/mysql_analyses.t +++ b/t/pt-query-digest/mysql_analyses.t @@ -100,6 +100,16 @@ ok( 'Analysis for tcpdump044 with connection error (bug 1103045)' ); +ok( + no_diff( + sub { pt_query_digest::main(@args, $sample.'tcpdump-1402776.txt', + '--report-format', 'header,query_report,profile', + qw(--watch-server 127.0.0.1:13000)) }, + "t/pt-query-digest/samples/tcpdump-1402776_report.txt" + ), + 'Analysis for tcpdump-1402776 with connection error (bug 1402776)' +); + # ############################################################################# # Done. # ############################################################################# diff --git a/t/pt-query-digest/samples/tcpdump-1402776_report.txt b/t/pt-query-digest/samples/tcpdump-1402776_report.txt new file mode 100644 index 00000000..e186e604 --- /dev/null +++ b/t/pt-query-digest/samples/tcpdump-1402776_report.txt @@ -0,0 +1,125 @@ + +# Overall: 5 total, 4 unique, 11.25 QPS, 0.01x concurrency _______________ +# Time range: 2016-06-08 13:40:54.263747 to 13:40:54.708017 +# Attribute total min max avg 95% stddev median +# ============ ======= ======= ======= ======= ======= ======= ======= +# Exec time 3ms 0 1ms 561us 1ms 477us 445us +# Rows affecte 0 0 0 0 0 0 0 +# Query size 120 11 30 24 28.75 6.72 26.08 +# Warning coun 0 0 0 0 0 0 0 +# Boolean: +# No index use 20% yes, 80% no + +# Query 1: 4.50 QPS, 0.01x concurrency, ID 0x5D51E5F01B88B79E at byte 14320 +# This item is included in the report because it matches --limit. +# Scores: V/M = 0.00 +# Time range: 2016-06-08 13:40:54.263747 to 13:40:54.708017 +# Attribute pct total min max avg 95% stddev median +# ============ === ======= ======= ======= ======= ======= ======= ======= +# Count 40 2 +# Exec time 79 2ms 1ms 1ms 1ms 1ms 104us 1ms +# Rows affecte 0 0 0 0 0 0 0 0 +# Query size 50 60 30 30 30 30 0 30 +# Warning coun 0 0 0 0 0 0 0 0 +# String: +# Databases test +# Hosts 127.0.0.1 +# Users root +# Query_time distribution +# 1us +# 10us +# 100us +# 1ms ################################################################ +# 10ms +# 100ms +# 1s +# 10s+ +administrator command: Connect\G + +# Query 2: 0 QPS, 0x concurrency, ID 0x132628303F99240D at byte 4058 _____ +# This item is included in the report because it matches --limit. +# Scores: V/M = 0.00 +# Time range: all events occurred at 2016-06-08 13:40:54.264360 +# Attribute pct total min max avg 95% stddev median +# ============ === ======= ======= ======= ======= ======= ======= ======= +# Count 20 1 +# Exec time 16 465us 465us 465us 465us 465us 0 465us +# Rows affecte 0 0 0 0 0 0 0 0 +# Query size 9 11 11 11 11 11 0 11 +# Warning coun 0 0 0 0 0 0 0 0 +# Boolean: +# No index use 100% yes, 0% no +# String: +# Databases test +# Hosts 127.0.0.1 +# Users root +# Query_time distribution +# 1us +# 10us +# 100us ################################################################ +# 1ms +# 10ms +# 100ms +# 1s +# 10s+ +SHOW TABLES\G + +# Query 3: 0 QPS, 0x concurrency, ID 0x6C099B0B73EA7633 at byte 3304 _____ +# This item is included in the report because it matches --limit. +# Scores: V/M = 0.00 +# Time range: all events occurred at 2016-06-08 13:40:54.263876 +# Attribute pct total min max avg 95% stddev median +# ============ === ======= ======= ======= ======= ======= ======= ======= +# Count 20 1 +# Exec time 3 100us 100us 100us 100us 100us 0 100us +# Rows affecte 0 0 0 0 0 0 0 0 +# Query size 18 22 22 22 22 22 0 22 +# Warning coun 0 0 0 0 0 0 0 0 +# String: +# Databases test +# Hosts 127.0.0.1 +# Users root +# Query_time distribution +# 1us +# 10us +# 100us ################################################################ +# 1ms +# 10ms +# 100ms +# 1s +# 10s+ +USE information_schema\G + +# Query 4: 0 QPS, 0x concurrency, ID 0xAA353644DE4C4CB4 at byte 10971 ____ +# This item is included in the report because it matches --limit. +# Scores: V/M = 0.00 +# Time range: all events occurred at 2016-06-08 13:40:54.264406 +# Attribute pct total min max avg 95% stddev median +# ============ === ======= ======= ======= ======= ======= ======= ======= +# Count 20 1 +# Exec time 0 0 0 0 0 0 0 0 +# Rows affecte 0 0 0 0 0 0 0 0 +# Query size 22 27 27 27 27 27 0 27 +# Warning coun 0 0 0 0 0 0 0 0 +# String: +# Databases test +# Hosts 127.0.0.1 +# Users root +# Query_time distribution +# 1us +# 10us +# 100us +# 1ms +# 10ms +# 100ms +# 1s +# 10s+ +administrator command: Quit\G + +# Profile +# Rank Query ID Response time Calls R/Call V/M Item +# ==== ================== ============= ===== ====== ===== ============= +# 1 0x5D51E5F01B88B79E 0.0022 79.9% 2 0.0011 0.00 ADMIN CONNECT +# 2 0x132628303F99240D 0.0005 16.6% 1 0.0005 0.00 SHOW TABLES +# 3 0x6C099B0B73EA7633 0.0001 3.6% 1 0.0001 0.00 +# 4 0xAA353644DE4C4CB4 0.0000 0.0% 1 0.0000 0.00 ADMIN QUIT