summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib/logging
diff options
context:
space:
mode:
authorRobert Guo <robert.guo@mongodb.com>2020-02-19 11:11:31 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-02-19 17:09:41 +0000
commite609eacb52a443d8d0332b2417184e67499a7da7 (patch)
tree90a21a690594628c3727f015162fa7784b8d2404 /buildscripts/resmokelib/logging
parent0630338fb592b3283240ba72ac4b0c7111f6193c (diff)
downloadmongo-e609eacb52a443d8d0332b2417184e67499a7da7.tar.gz
SERVER-46250 Hardcode buildlogger payload limit in resmoke
Diffstat (limited to 'buildscripts/resmokelib/logging')
-rw-r--r--buildscripts/resmokelib/logging/buildlogger.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/buildscripts/resmokelib/logging/buildlogger.py b/buildscripts/resmokelib/logging/buildlogger.py
index 3c7901dc6fe..d55cbf4e249 100644
--- a/buildscripts/resmokelib/logging/buildlogger.py
+++ b/buildscripts/resmokelib/logging/buildlogger.py
@@ -115,7 +115,11 @@ class _BaseBuildloggerHandler(handlers.BufferedHandler):
self.endpoint = endpoint
self.retry_buffer = []
- self.max_size = None
+ # Set a reasonable max payload size in case we don't get a HTTP 413 from LogKeeper
+ # before timing out. This limit is intentionally slightly larger than LogKeeper's
+ # limit of 32MB so we can still receive a 413 where appropriate but won't cause
+ # side effects.
+ self.max_size = 33 * 1024 * 1024
def process_record(self, record):
"""Return a tuple of the time the log record was created, and the message.