NCAS-CMS / NCAS-CMS/PyActiveStorage

ActiveStorage needs to handle reductionist overload - if that is what this is

Open
#190 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
6
Forks
2
PR merge metrics
No merged PRs in 30d

Description

File "/Users/bnl28/Repositories/PyActiveStorage/activestorage/reductionist.py", line 165, in request
    response = session.post(
  File "/Users/bnl28/mambaforge/envs/fesom/lib/python3.10/site-packages/requests/sessions.py", line 637, in post
    return self.request("POST", url, data=data, json=json, **kwargs)
  File "/Users/bnl28/mambaforge/envs/fesom/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/bnl28/mambaforge/envs/fesom/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/Users/bnl28/mambaforge/envs/fesom/lib/python3.10/site-packages/requests/adapters.py", line 507, in send
    raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='192.171.169.248', port=8080): Max retries exceeded with url: /v1/min/ (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x12d076a40>, 'Connection to 192.171.169.248 timed out. (connect timeout=None)'))

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read activestorage/reductionist.py around line 165, where request calls session.post, and inspect the reported requests ConnectTimeout traceback. Reproduce the request if possible and determine whether the timeout reflects Reductionist overload or another connection problem. Done should identify the cause and define the required handling for this failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.