[ 
https://issues.apache.org/jira/browse/BEAM-7616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ahmet Altay reopened BEAM-7616:
-------------------------------
      Assignee: Udi Meiri  (was: Ahmet Altay)

This issue was is fixed for 2.14.0 with 
https://github.com/apache/beam/pull/8925. However a refactoring of the auth.py 
(https://github.com/apache/beam/pull/9060) might re-cause this issue starting 
from version 2.15.0.

The reason is:
- auth.py now delegates to apitools for refreshing credentials 
(https://github.com/apache/beam/blob/d6c87aa88e2fbf6ceb0f809a4c7176444bde48ac/sdks/python/apache_beam/internal/gcp/auth.py#L52)
- apitools has the same issue (of not setting the timeout) for the url open 
(https://github.com/google/apitools/blob/0645e5aee5614a92578d4be03f971656e0c118af/apitools/base/py/credentials_lib.py#L226)

We can solve this with:
- Setting the default timeout once and for all for all objects. 
(https://docs.python.org/3/library/socket.html?highlight=socket#socket.setdefaulttimeout)
 -- Where do we do this would be a bit of an open problem. We need some entry 
point to the start of all types of workers.
- We can fix apitools or monkey patch some of its libraries.

> urlopen calls could get stuck without a timeout
> -----------------------------------------------
>
>                 Key: BEAM-7616
>                 URL: https://issues.apache.org/jira/browse/BEAM-7616
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core
>            Reporter: Ahmet Altay
>            Assignee: Udi Meiri
>            Priority: Blocker
>             Fix For: 2.14.0
>
>          Time Spent: 2h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to