The retracers won't be able to handle core files greater than some size (due to disk or memory limitations), so we should not accept core files that are larger than that size.
This came about because we had retracers repeatedly failing to retrace a core file. From the logs we can see:
2016-04-15 12:22:31,732:8055:140170219415296:INFO:root:0518d850-0252-11e6-9725-fa163ed44aae:swift:Processing.
2016-04-15 12:22:32,653:8055:140170219415296:INFO:root:0518d850-0252-11e6-9725-fa163ed44aae:swift:Decompressing to /tmp/tmpbKYmwx-swift.0518d850-0252-11e6-9725-fa163ed44aae.oopsid.core
2016-04-15 12:26:32,690:24400:140395459364608:INFO:root:Running revision number: 697 with sandbox_dir /srv/daisy.ubuntu.com/production/cache, gdb 7.10.90.20160215-0ubuntu3~~0.IS.12.04.0.
2016-04-15 12:26:33,924:24400:140395459364608:INFO:root:Waiting for messages. ^C to exit.
2016-04-15 12:30:31,640:24400:140395459364608:INFO:root:0518d850-0252-11e6-9725-fa163ed44aae:swift:Processing.
2016-04-15 12:30:31,765:24400:140395459364608:INFO:urllib3.connectionpool:0518d850-0252-11e6-9725-fa163ed44aae:swift:Starting new HTTP connection (1): 10.34.0.136
2016-04-15 12:30:32,966:24400:140395459364608:INFO:root:0518d850-0252-11e6-9725-fa163ed44aae:swift:Decompressing to /tmp/tmp3OaOTw-swift.0518d850-0252-11e6-9725-fa163ed44aae.oopsid.core
2016-04-15 12:34:32,163:25279:140510235412224:INFO:root:Running revision number: 697 with sandbox_dir /srv/daisy.ubuntu.com/production/cache, gdb 7.10.90.20160215-0ubuntu3~~0.IS.12.04.0.
2016-04-15 12:34:33,440:25279:140510235412224:INFO:root:Waiting for messages. ^C to exit.
I don't believe we know the size of the core file when it is sent or being received, but the retracing process might be able to figure it out before it gets the core file from swift and it could just mark it as failed and delete the core file from swift then.