[SERVER-28396] resmoke.py's logkeeper client should respect size limit for POST requests by splitting them up Created: 20/Mar/17  Updated: 30/Jan/18  Resolved: 09/Jan/18

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.2.19, 3.4.12, 3.6.3, 3.7.1

Type: Improvement Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Yves Duhem
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.6, v3.4, v3.2
Sprint: TIG 2018-1-15, TIG 2018-1-1, TIG 2017-12-18
Participants:
Linked BF Score: 26

 Description   

With the changes from 4f0b759, Logkeeper will reject POST requests larger than 32MB. In order to avoid hardcoding this constant in resmoke.py's logkeeper client (e.g. should the value need to be lowered further on the Logkeeper application), the changes from EVG-1365 made it so that rejected POST requests will return a "Request entity too large" HTTP 413 error status with a "max_size_mb" field containing the size limit for POST requests in the error response.

buildscripts/resmokelib/logging/buildlogger.py should be updated so that upon receiving this HTTP error response, it retries the request with the JSON-encoded content split up into "max_size_mb" chunks.



 Comments   
Comment by Githook User [ 30/Jan/18 ]

Author:

{'email': 'yves.duhem@mongodb.com', 'name': 'Yves Duhem', 'username': 'syev'}

Message: SERVER-28396 Respect logkeeper's POST size limit

(cherry picked from commit 5397d13e51c182e0a8afcd91648453af4d6534f1)
Branch: v3.4
https://github.com/mongodb/mongo/commit/88a77c0585862f8ce40d3bdf5b8870575184044f

Comment by Githook User [ 25/Jan/18 ]

Author:

{'name': 'Yves Duhem', 'email': 'yves.duhem@mongodb.com', 'username': 'syev'}

Message: SERVER-28396 Respect logkeeper's POST size limit

(cherry picked from commit 5397d13e51c182e0a8afcd91648453af4d6534f1)
Branch: v3.6
https://github.com/mongodb/mongo/commit/447db9e2d3c340b58afefadd4acc5e8e96e17d42

Comment by Githook User [ 25/Jan/18 ]

Author:

{'name': 'Yves Duhem', 'email': 'yves.duhem@mongodb.com', 'username': 'syev'}

Message: SERVER-28396 Respect logkeeper's POST size limit

(cherry picked from commit 5397d13e51c182e0a8afcd91648453af4d6534f1)
Branch: v3.2
https://github.com/mongodb/mongo/commit/97af1fa552e61721061fd2e85494aeeb81c16b0a

Comment by Githook User [ 09/Jan/18 ]

Author:

{'name': 'Yves Duhem', 'username': 'syev', 'email': 'yves.duhem@mongodb.com'}

Message: SERVER-28396 Respect logkeeper's POST size limit
Branch: master
https://github.com/mongodb/mongo/commit/5397d13e51c182e0a8afcd91648453af4d6534f1

Generated at Thu Feb 08 04:18:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.