Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-37467

Have collect_resource_info.py recover from transient errors.

    XMLWordPrintable

Details

    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • STM 2018-10-22, STM 2018-11-05
    • 8
    • 1

    Description

      Its output is useful! It's a missed opportunity when the output file doesn't contain all the data it could.

      [2018/09/18 17:31:29.082] Traceback (most recent call last):
      [2018/09/18 17:31:29.082]   File "buildscripts/collect_resource_info.py", line 90, in <module>
      [2018/09/18 17:31:29.082]     main()
      [2018/09/18 17:31:29.082]   File "buildscripts/collect_resource_info.py", line 40, in main
      [2018/09/18 17:31:29.082]     response = requests.get("http://localhost:2285/status")
      [2018/09/18 17:31:29.082]   File "/opt/mongodbtoolchain/v2/lib/python2.7/site-packages/requests/api.py", line 72, in get
      [2018/09/18 17:31:29.082]     return request('get', url, params=params, **kwargs)
      [2018/09/18 17:31:29.082]   File "/opt/mongodbtoolchain/v2/lib/python2.7/site-packages/requests/api.py", line 58, in request
      [2018/09/18 17:31:29.083]     return session.request(method=method, url=url, **kwargs)
      [2018/09/18 17:31:29.083]   File "/opt/mongodbtoolchain/v2/lib/python2.7/site-packages/requests/sessions.py", line 508, in request
      [2018/09/18 17:31:29.083]     resp = self.send(prep, **send_kwargs)
      [2018/09/18 17:31:29.083]   File "/opt/mongodbtoolchain/v2/lib/python2.7/site-packages/requests/sessions.py", line 618, in send
      [2018/09/18 17:31:29.083]     r = adapter.send(request, **kwargs)
      [2018/09/18 17:31:29.083]   File "/opt/mongodbtoolchain/v2/lib/python2.7/site-packages/requests/adapters.py", line 490, in send
      [2018/09/18 17:31:29.083]     raise ConnectionError(err, request=request)
      [2018/09/18 17:31:29.083] requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine("''",))
      

      Attachments

        Activity

          People

            shreyas.kalyan@mongodb.com Shreyas Kalyan
            daniel.gottlieb@mongodb.com Daniel Gottlieb
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: