[SERVER-20397] Metric data field is not zlib compressed Created: 14/Sep/15  Updated: 07/Oct/15  Resolved: 16/Sep/15

Status: Closed
Project: Core Server
Component/s: Diagnostics
Affects Version/s: None
Fix Version/s: 3.1.9

Type: Task Priority: Major - P3
Reporter: Bruce Lucas (Inactive) Assignee: Mark Benvenuto
Resolution: Done Votes: 0
Labels: FTDC
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-19007 Built-in facility for full-time diagn... Closed
Backwards Compatibility: Fully Compatible
Sprint: Platform 9 (09/18/15)
Participants:

 Description   

00000ad0  42 00 00 09 5f 69 64 00  19 e5 49 cc 4f 01 00 00  |B..._id...I.O...|
00000ae0  10 74 79 70 65 00 01 00  00 00 05 64 61 74 61 00  |.type......data.|
00000af0  eb 41 00 00 00 e3 41 00  00 03 73 65 72 76 65 72  |.A....A...server|
          11111111111 22 333333333333
 
00000b00  53 74 61 74 75 73 00 d0  41 00 00 09 73 74 61 72  |Status..A...star|
00000b10  74 00 30 e1 49 cc 4f 01  00 00 02 68 6f 73 74 00  |t.0.I.O....host.|
00000b20  08 00 00 00 79 6f 73 68  69 6e 6f 00 02 76 65 72  |....yoshino..ver|
00000b30  73 69 6f 6e 00 0b 00 00  00 33 2e 31 2e 38 2d 70  |sion.....3.1.8-p|
00000b40  72 65 2d 00 02 70 72 6f  63 65 73 73 00 07 00 00  |re-..process....|
00000b50  00 6d 6f 6e 67 6f 64 00  12 70 69 64 00 3c 5d 00  |.mongod..pid.<].|
00000b60  00 00 00 00 00 01 75 70  74 69 6d 65 00 00 00 00  |......uptime....|
00000b70  00 00 00 00 00 12 75 70  74 69 6d 65 4d 69 6c 6c  |......uptimeMill|
00000b80  69 73 00 b9 01 00 00 00  00 00 00 01 75 70 74 69  |is..........upti|

  • 11111111111 - bindata object length
  • 22 - bindata object subtype
  • 333333333333 - start of bindata data - appears to be bson object length followed by uncompressed bson object; expect zlib header x8 xx, typically 78 9c.


 Comments   
Comment by Githook User [ 16/Sep/15 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-20397: Compress reference document
Branch: master
https://github.com/mongodb/mongo/commit/04e1d5bf5998998f4d4f4f5a2fb2dd509f2c8110

Comment by Mark Benvenuto [ 14/Sep/15 ]

Metric Chunk format is as follows:

  • Uncompressed Reference BSON document
  • int32 metrics
  • int32 samples
  • ZLIB Compressed delta array.

The metrics and sample counts are used to compute the size of the uncompressed delta array.

Generated at Thu Feb 08 03:54:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.