[jira] [Work logged] (BEAM-7750) Pipeline instances are not garbage collected

2019-08-01 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7750?focusedWorklogId=286841=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-286841
 ]

ASF GitHub Bot logged work on BEAM-7750:


Author: ASF GitHub Bot
Created on: 01/Aug/19 16:48
Start Date: 01/Aug/19 16:48
Worklog Time Spent: 10m 
  Work Description: charlesccychen commented on issue #9146: [BEAM-7750] 
Don't map transforms to PubSub subscriptions unless necessary
URL: https://github.com/apache/beam/pull/9146#issuecomment-517368777
 
 
   Thanks! This LGTM.
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 286841)
Time Spent: 2h 20m  (was: 2h 10m)

> Pipeline instances are not garbage collected
> 
>
> Key: BEAM-7750
> URL: https://issues.apache.org/jira/browse/BEAM-7750
> Project: Beam
>  Issue Type: Bug
>  Components: sdk-py-core
>Affects Versions: 2.14.0
> Environment: OS: Debian rodete.
> Tested using: 
> Beam versions: 2.13.0, 2.15.0.dev
> Python versions: Python 2.7, Python 3.7.
> Runners:  DirectRunner, DataflowRunner.
>Reporter: Alexey Strokach
>Priority: Minor
>  Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> It seems that Apache Beam's Pipeline instances are not garbage collected, 
> even if the pipelines are finished or cancelled and there are no references 
> to those pipelines in the Python interpreter.
> For pipelines executed in a script, this is not a problem. However, for 
> interactive pipelines executed inside a Jupyter notebook, this limits how 
> well we can track and remove the dependencies of those pipelines. For 
> example, if a pipeline reads from some cache, it would be nice to be able to 
> delete that cache once there are no references to it from pipelines or the 
> global namespace.
> The issue can be reproduced using the following script: 
> [https://gist.github.com/ostrokach/a16556dc77c96b87fe23c2fbd8fb6346].
> -
> On further examination, turns out that this is due to the 
> [{{_PubSubReadEvaluator._subscription_cache}}|https://github.com/apache/beam/blob/27bb5bc7b244809e7f6022adb2730d10204ce4d3/sdks/python/apache_beam/runners/direct/transform_evaluator.py#L418]
>  class attribute keeping references to all {{ReadFromPubSub}} transforms.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Work logged] (BEAM-7750) Pipeline instances are not garbage collected

2019-08-01 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7750?focusedWorklogId=286842=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-286842
 ]

ASF GitHub Bot logged work on BEAM-7750:


Author: ASF GitHub Bot
Created on: 01/Aug/19 16:48
Start Date: 01/Aug/19 16:48
Worklog Time Spent: 10m 
  Work Description: charlesccychen commented on pull request #9146: 
[BEAM-7750] Don't map transforms to PubSub subscriptions unless necessary
URL: https://github.com/apache/beam/pull/9146
 
 
   
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 286842)
Time Spent: 2.5h  (was: 2h 20m)

> Pipeline instances are not garbage collected
> 
>
> Key: BEAM-7750
> URL: https://issues.apache.org/jira/browse/BEAM-7750
> Project: Beam
>  Issue Type: Bug
>  Components: sdk-py-core
>Affects Versions: 2.14.0
> Environment: OS: Debian rodete.
> Tested using: 
> Beam versions: 2.13.0, 2.15.0.dev
> Python versions: Python 2.7, Python 3.7.
> Runners:  DirectRunner, DataflowRunner.
>Reporter: Alexey Strokach
>Priority: Minor
>  Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> It seems that Apache Beam's Pipeline instances are not garbage collected, 
> even if the pipelines are finished or cancelled and there are no references 
> to those pipelines in the Python interpreter.
> For pipelines executed in a script, this is not a problem. However, for 
> interactive pipelines executed inside a Jupyter notebook, this limits how 
> well we can track and remove the dependencies of those pipelines. For 
> example, if a pipeline reads from some cache, it would be nice to be able to 
> delete that cache once there are no references to it from pipelines or the 
> global namespace.
> The issue can be reproduced using the following script: 
> [https://gist.github.com/ostrokach/a16556dc77c96b87fe23c2fbd8fb6346].
> -
> On further examination, turns out that this is due to the 
> [{{_PubSubReadEvaluator._subscription_cache}}|https://github.com/apache/beam/blob/27bb5bc7b244809e7f6022adb2730d10204ce4d3/sdks/python/apache_beam/runners/direct/transform_evaluator.py#L418]
>  class attribute keeping references to all {{ReadFromPubSub}} transforms.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Work logged] (BEAM-7750) Pipeline instances are not garbage collected

2019-07-26 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7750?focusedWorklogId=283714=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-283714
 ]

ASF GitHub Bot logged work on BEAM-7750:


Author: ASF GitHub Bot
Created on: 27/Jul/19 01:20
Start Date: 27/Jul/19 01:20
Worklog Time Spent: 10m 
  Work Description: aaltay commented on issue #9146: [BEAM-7750] Don't map 
transforms to PubSub subscriptions unless necessary
URL: https://github.com/apache/beam/pull/9146#issuecomment-515640261
 
 
   LGTM.
   
   cc: @charlesccychen in case he has additional comments since he is the 
original author.
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 283714)
Time Spent: 2h 10m  (was: 2h)

> Pipeline instances are not garbage collected
> 
>
> Key: BEAM-7750
> URL: https://issues.apache.org/jira/browse/BEAM-7750
> Project: Beam
>  Issue Type: Bug
>  Components: sdk-py-core
>Affects Versions: 2.14.0
> Environment: OS: Debian rodete.
> Tested using: 
> Beam versions: 2.13.0, 2.15.0.dev
> Python versions: Python 2.7, Python 3.7.
> Runners:  DirectRunner, DataflowRunner.
>Reporter: Alexey Strokach
>Priority: Minor
>  Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> It seems that Apache Beam's Pipeline instances are not garbage collected, 
> even if the pipelines are finished or cancelled and there are no references 
> to those pipelines in the Python interpreter.
> For pipelines executed in a script, this is not a problem. However, for 
> interactive pipelines executed inside a Jupyter notebook, this limits how 
> well we can track and remove the dependencies of those pipelines. For 
> example, if a pipeline reads from some cache, it would be nice to be able to 
> delete that cache once there are no references to it from pipelines or the 
> global namespace.
> The issue can be reproduced using the following script: 
> [https://gist.github.com/ostrokach/a16556dc77c96b87fe23c2fbd8fb6346].
> -
> On further examination, turns out that this is due to the 
> [{{_PubSubReadEvaluator._subscription_cache}}|https://github.com/apache/beam/blob/27bb5bc7b244809e7f6022adb2730d10204ce4d3/sdks/python/apache_beam/runners/direct/transform_evaluator.py#L418]
>  class attribute keeping references to all {{ReadFromPubSub}} transforms.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Work logged] (BEAM-7750) Pipeline instances are not garbage collected

2019-07-24 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7750?focusedWorklogId=282345=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-282345
 ]

ASF GitHub Bot logged work on BEAM-7750:


Author: ASF GitHub Bot
Created on: 24/Jul/19 23:01
Start Date: 24/Jul/19 23:01
Worklog Time Spent: 10m 
  Work Description: ostrokach commented on issue #9146: [BEAM-7750] Don't 
map transforms to PubSub subscriptions unless necessary
URL: https://github.com/apache/beam/pull/9146#issuecomment-514801155
 
 
   retest this please
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 282345)
Time Spent: 1h 50m  (was: 1h 40m)

> Pipeline instances are not garbage collected
> 
>
> Key: BEAM-7750
> URL: https://issues.apache.org/jira/browse/BEAM-7750
> Project: Beam
>  Issue Type: Bug
>  Components: sdk-py-core
>Affects Versions: 2.14.0
> Environment: OS: Debian rodete.
> Tested using: 
> Beam versions: 2.13.0, 2.15.0.dev
> Python versions: Python 2.7, Python 3.7.
> Runners:  DirectRunner, DataflowRunner.
>Reporter: Alexey Strokach
>Priority: Minor
>  Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> It seems that Apache Beam's Pipeline instances are not garbage collected, 
> even if the pipelines are finished or cancelled and there are no references 
> to those pipelines in the Python interpreter.
> For pipelines executed in a script, this is not a problem. However, for 
> interactive pipelines executed inside a Jupyter notebook, this limits how 
> well we can track and remove the dependencies of those pipelines. For 
> example, if a pipeline reads from some cache, it would be nice to be able to 
> delete that cache once there are no references to it from pipelines or the 
> global namespace.
> The issue can be reproduced using the following script: 
> [https://gist.github.com/ostrokach/a16556dc77c96b87fe23c2fbd8fb6346].
> -
> On further examination, turns out that this is due to the 
> [{{_PubSubReadEvaluator._subscription_cache}}|https://github.com/apache/beam/blob/27bb5bc7b244809e7f6022adb2730d10204ce4d3/sdks/python/apache_beam/runners/direct/transform_evaluator.py#L418]
>  class attribute keeping references to all {{ReadFromPubSub}} transforms.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Work logged] (BEAM-7750) Pipeline instances are not garbage collected

2019-07-24 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7750?focusedWorklogId=282346=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-282346
 ]

ASF GitHub Bot logged work on BEAM-7750:


Author: ASF GitHub Bot
Created on: 24/Jul/19 23:01
Start Date: 24/Jul/19 23:01
Worklog Time Spent: 10m 
  Work Description: ostrokach commented on issue #9146: [BEAM-7750] Don't 
map transforms to PubSub subscriptions unless necessary
URL: https://github.com/apache/beam/pull/9146#issuecomment-514818679
 
 
   Run Python PreCommit
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 282346)
Time Spent: 2h  (was: 1h 50m)

> Pipeline instances are not garbage collected
> 
>
> Key: BEAM-7750
> URL: https://issues.apache.org/jira/browse/BEAM-7750
> Project: Beam
>  Issue Type: Bug
>  Components: sdk-py-core
>Affects Versions: 2.14.0
> Environment: OS: Debian rodete.
> Tested using: 
> Beam versions: 2.13.0, 2.15.0.dev
> Python versions: Python 2.7, Python 3.7.
> Runners:  DirectRunner, DataflowRunner.
>Reporter: Alexey Strokach
>Priority: Minor
>  Time Spent: 2h
>  Remaining Estimate: 0h
>
> It seems that Apache Beam's Pipeline instances are not garbage collected, 
> even if the pipelines are finished or cancelled and there are no references 
> to those pipelines in the Python interpreter.
> For pipelines executed in a script, this is not a problem. However, for 
> interactive pipelines executed inside a Jupyter notebook, this limits how 
> well we can track and remove the dependencies of those pipelines. For 
> example, if a pipeline reads from some cache, it would be nice to be able to 
> delete that cache once there are no references to it from pipelines or the 
> global namespace.
> The issue can be reproduced using the following script: 
> [https://gist.github.com/ostrokach/a16556dc77c96b87fe23c2fbd8fb6346].
> -
> On further examination, turns out that this is due to the 
> [{{_PubSubReadEvaluator._subscription_cache}}|https://github.com/apache/beam/blob/27bb5bc7b244809e7f6022adb2730d10204ce4d3/sdks/python/apache_beam/runners/direct/transform_evaluator.py#L418]
>  class attribute keeping references to all {{ReadFromPubSub}} transforms.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Work logged] (BEAM-7750) Pipeline instances are not garbage collected

2019-07-24 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7750?focusedWorklogId=282320=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-282320
 ]

ASF GitHub Bot logged work on BEAM-7750:


Author: ASF GitHub Bot
Created on: 24/Jul/19 22:11
Start Date: 24/Jul/19 22:11
Worklog Time Spent: 10m 
  Work Description: ostrokach commented on issue #9146: [BEAM-7750] Don't 
map transforms to PubSub subscriptions unless necessary
URL: https://github.com/apache/beam/pull/9146#issuecomment-514818679
 
 
   Run Python PreCommit
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 282320)
Time Spent: 1h 40m  (was: 1.5h)

> Pipeline instances are not garbage collected
> 
>
> Key: BEAM-7750
> URL: https://issues.apache.org/jira/browse/BEAM-7750
> Project: Beam
>  Issue Type: Bug
>  Components: sdk-py-core
>Affects Versions: 2.14.0
> Environment: OS: Debian rodete.
> Tested using: 
> Beam versions: 2.13.0, 2.15.0.dev
> Python versions: Python 2.7, Python 3.7.
> Runners:  DirectRunner, DataflowRunner.
>Reporter: Alexey Strokach
>Priority: Minor
>  Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> It seems that Apache Beam's Pipeline instances are not garbage collected, 
> even if the pipelines are finished or cancelled and there are no references 
> to those pipelines in the Python interpreter.
> For pipelines executed in a script, this is not a problem. However, for 
> interactive pipelines executed inside a Jupyter notebook, this limits how 
> well we can track and remove the dependencies of those pipelines. For 
> example, if a pipeline reads from some cache, it would be nice to be able to 
> delete that cache once there are no references to it from pipelines or the 
> global namespace.
> The issue can be reproduced using the following script: 
> [https://gist.github.com/ostrokach/a16556dc77c96b87fe23c2fbd8fb6346].
> -
> On further examination, turns out that this is due to the 
> [{{_PubSubReadEvaluator._subscription_cache}}|https://github.com/apache/beam/blob/27bb5bc7b244809e7f6022adb2730d10204ce4d3/sdks/python/apache_beam/runners/direct/transform_evaluator.py#L418]
>  class attribute keeping references to all {{ReadFromPubSub}} transforms.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Work logged] (BEAM-7750) Pipeline instances are not garbage collected

2019-07-24 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7750?focusedWorklogId=282283=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-282283
 ]

ASF GitHub Bot logged work on BEAM-7750:


Author: ASF GitHub Bot
Created on: 24/Jul/19 21:09
Start Date: 24/Jul/19 21:09
Worklog Time Spent: 10m 
  Work Description: ostrokach commented on issue #9146: [BEAM-7750] Don't 
map transforms to PubSub subscriptions unless necessary
URL: https://github.com/apache/beam/pull/9146#issuecomment-514791504
 
 
   Run Portable PreCommit
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 282283)
Time Spent: 1h  (was: 50m)

> Pipeline instances are not garbage collected
> 
>
> Key: BEAM-7750
> URL: https://issues.apache.org/jira/browse/BEAM-7750
> Project: Beam
>  Issue Type: Bug
>  Components: sdk-py-core
>Affects Versions: 2.14.0
> Environment: OS: Debian rodete.
> Tested using: 
> Beam versions: 2.13.0, 2.15.0.dev
> Python versions: Python 2.7, Python 3.7.
> Runners:  DirectRunner, DataflowRunner.
>Reporter: Alexey Strokach
>Priority: Minor
>  Time Spent: 1h
>  Remaining Estimate: 0h
>
> It seems that Apache Beam's Pipeline instances are not garbage collected, 
> even if the pipelines are finished or cancelled and there are no references 
> to those pipelines in the Python interpreter.
> For pipelines executed in a script, this is not a problem. However, for 
> interactive pipelines executed inside a Jupyter notebook, this limits how 
> well we can track and remove the dependencies of those pipelines. For 
> example, if a pipeline reads from some cache, it would be nice to be able to 
> delete that cache once there are no references to it from pipelines or the 
> global namespace.
> The issue can be reproduced using the following script: 
> [https://gist.github.com/ostrokach/a16556dc77c96b87fe23c2fbd8fb6346].
> -
> On further examination, turns out that this is due to the 
> [{{_PubSubReadEvaluator._subscription_cache}}|https://github.com/apache/beam/blob/27bb5bc7b244809e7f6022adb2730d10204ce4d3/sdks/python/apache_beam/runners/direct/transform_evaluator.py#L418]
>  class attribute keeping references to all {{ReadFromPubSub}} transforms.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Work logged] (BEAM-7750) Pipeline instances are not garbage collected

2019-07-24 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7750?focusedWorklogId=282285=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-282285
 ]

ASF GitHub Bot logged work on BEAM-7750:


Author: ASF GitHub Bot
Created on: 24/Jul/19 21:09
Start Date: 24/Jul/19 21:09
Worklog Time Spent: 10m 
  Work Description: ostrokach commented on issue #9146: [BEAM-7750] Don't 
map transforms to PubSub subscriptions unless necessary
URL: https://github.com/apache/beam/pull/9146#issuecomment-514790850
 
 
   Run Portable_Python PreCommit
   
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 282285)
Time Spent: 1h 20m  (was: 1h 10m)

> Pipeline instances are not garbage collected
> 
>
> Key: BEAM-7750
> URL: https://issues.apache.org/jira/browse/BEAM-7750
> Project: Beam
>  Issue Type: Bug
>  Components: sdk-py-core
>Affects Versions: 2.14.0
> Environment: OS: Debian rodete.
> Tested using: 
> Beam versions: 2.13.0, 2.15.0.dev
> Python versions: Python 2.7, Python 3.7.
> Runners:  DirectRunner, DataflowRunner.
>Reporter: Alexey Strokach
>Priority: Minor
>  Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> It seems that Apache Beam's Pipeline instances are not garbage collected, 
> even if the pipelines are finished or cancelled and there are no references 
> to those pipelines in the Python interpreter.
> For pipelines executed in a script, this is not a problem. However, for 
> interactive pipelines executed inside a Jupyter notebook, this limits how 
> well we can track and remove the dependencies of those pipelines. For 
> example, if a pipeline reads from some cache, it would be nice to be able to 
> delete that cache once there are no references to it from pipelines or the 
> global namespace.
> The issue can be reproduced using the following script: 
> [https://gist.github.com/ostrokach/a16556dc77c96b87fe23c2fbd8fb6346].
> -
> On further examination, turns out that this is due to the 
> [{{_PubSubReadEvaluator._subscription_cache}}|https://github.com/apache/beam/blob/27bb5bc7b244809e7f6022adb2730d10204ce4d3/sdks/python/apache_beam/runners/direct/transform_evaluator.py#L418]
>  class attribute keeping references to all {{ReadFromPubSub}} transforms.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Work logged] (BEAM-7750) Pipeline instances are not garbage collected

2019-07-24 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7750?focusedWorklogId=282284=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-282284
 ]

ASF GitHub Bot logged work on BEAM-7750:


Author: ASF GitHub Bot
Created on: 24/Jul/19 21:09
Start Date: 24/Jul/19 21:09
Worklog Time Spent: 10m 
  Work Description: ostrokach commented on issue #9146: [BEAM-7750] Don't 
map transforms to PubSub subscriptions unless necessary
URL: https://github.com/apache/beam/pull/9146#issuecomment-514791040
 
 
   Run Portable_Python
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 282284)
Time Spent: 1h 10m  (was: 1h)

> Pipeline instances are not garbage collected
> 
>
> Key: BEAM-7750
> URL: https://issues.apache.org/jira/browse/BEAM-7750
> Project: Beam
>  Issue Type: Bug
>  Components: sdk-py-core
>Affects Versions: 2.14.0
> Environment: OS: Debian rodete.
> Tested using: 
> Beam versions: 2.13.0, 2.15.0.dev
> Python versions: Python 2.7, Python 3.7.
> Runners:  DirectRunner, DataflowRunner.
>Reporter: Alexey Strokach
>Priority: Minor
>  Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> It seems that Apache Beam's Pipeline instances are not garbage collected, 
> even if the pipelines are finished or cancelled and there are no references 
> to those pipelines in the Python interpreter.
> For pipelines executed in a script, this is not a problem. However, for 
> interactive pipelines executed inside a Jupyter notebook, this limits how 
> well we can track and remove the dependencies of those pipelines. For 
> example, if a pipeline reads from some cache, it would be nice to be able to 
> delete that cache once there are no references to it from pipelines or the 
> global namespace.
> The issue can be reproduced using the following script: 
> [https://gist.github.com/ostrokach/a16556dc77c96b87fe23c2fbd8fb6346].
> -
> On further examination, turns out that this is due to the 
> [{{_PubSubReadEvaluator._subscription_cache}}|https://github.com/apache/beam/blob/27bb5bc7b244809e7f6022adb2730d10204ce4d3/sdks/python/apache_beam/runners/direct/transform_evaluator.py#L418]
>  class attribute keeping references to all {{ReadFromPubSub}} transforms.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Work logged] (BEAM-7750) Pipeline instances are not garbage collected

2019-07-24 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7750?focusedWorklogId=282282=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-282282
 ]

ASF GitHub Bot logged work on BEAM-7750:


Author: ASF GitHub Bot
Created on: 24/Jul/19 21:09
Start Date: 24/Jul/19 21:09
Worklog Time Spent: 10m 
  Work Description: ostrokach commented on issue #9146: [BEAM-7750] Don't 
map transforms to PubSub subscriptions unless necessary
URL: https://github.com/apache/beam/pull/9146#issuecomment-514801155
 
 
   retest this please
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 282282)
Time Spent: 50m  (was: 40m)

> Pipeline instances are not garbage collected
> 
>
> Key: BEAM-7750
> URL: https://issues.apache.org/jira/browse/BEAM-7750
> Project: Beam
>  Issue Type: Bug
>  Components: sdk-py-core
>Affects Versions: 2.14.0
> Environment: OS: Debian rodete.
> Tested using: 
> Beam versions: 2.13.0, 2.15.0.dev
> Python versions: Python 2.7, Python 3.7.
> Runners:  DirectRunner, DataflowRunner.
>Reporter: Alexey Strokach
>Priority: Minor
>  Time Spent: 50m
>  Remaining Estimate: 0h
>
> It seems that Apache Beam's Pipeline instances are not garbage collected, 
> even if the pipelines are finished or cancelled and there are no references 
> to those pipelines in the Python interpreter.
> For pipelines executed in a script, this is not a problem. However, for 
> interactive pipelines executed inside a Jupyter notebook, this limits how 
> well we can track and remove the dependencies of those pipelines. For 
> example, if a pipeline reads from some cache, it would be nice to be able to 
> delete that cache once there are no references to it from pipelines or the 
> global namespace.
> The issue can be reproduced using the following script: 
> [https://gist.github.com/ostrokach/a16556dc77c96b87fe23c2fbd8fb6346].
> -
> On further examination, turns out that this is due to the 
> [{{_PubSubReadEvaluator._subscription_cache}}|https://github.com/apache/beam/blob/27bb5bc7b244809e7f6022adb2730d10204ce4d3/sdks/python/apache_beam/runners/direct/transform_evaluator.py#L418]
>  class attribute keeping references to all {{ReadFromPubSub}} transforms.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Work logged] (BEAM-7750) Pipeline instances are not garbage collected

2019-07-24 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7750?focusedWorklogId=282286=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-282286
 ]

ASF GitHub Bot logged work on BEAM-7750:


Author: ASF GitHub Bot
Created on: 24/Jul/19 21:09
Start Date: 24/Jul/19 21:09
Worklog Time Spent: 10m 
  Work Description: ostrokach commented on issue #9146: [BEAM-7750] Don't 
map transforms to PubSub subscriptions unless necessary
URL: https://github.com/apache/beam/pull/9146#issuecomment-514790796
 
 
   Run Portable_Python PreCommit
   Run Python_PVR_Flink PreCommit
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 282286)
Time Spent: 1.5h  (was: 1h 20m)

> Pipeline instances are not garbage collected
> 
>
> Key: BEAM-7750
> URL: https://issues.apache.org/jira/browse/BEAM-7750
> Project: Beam
>  Issue Type: Bug
>  Components: sdk-py-core
>Affects Versions: 2.14.0
> Environment: OS: Debian rodete.
> Tested using: 
> Beam versions: 2.13.0, 2.15.0.dev
> Python versions: Python 2.7, Python 3.7.
> Runners:  DirectRunner, DataflowRunner.
>Reporter: Alexey Strokach
>Priority: Minor
>  Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> It seems that Apache Beam's Pipeline instances are not garbage collected, 
> even if the pipelines are finished or cancelled and there are no references 
> to those pipelines in the Python interpreter.
> For pipelines executed in a script, this is not a problem. However, for 
> interactive pipelines executed inside a Jupyter notebook, this limits how 
> well we can track and remove the dependencies of those pipelines. For 
> example, if a pipeline reads from some cache, it would be nice to be able to 
> delete that cache once there are no references to it from pipelines or the 
> global namespace.
> The issue can be reproduced using the following script: 
> [https://gist.github.com/ostrokach/a16556dc77c96b87fe23c2fbd8fb6346].
> -
> On further examination, turns out that this is due to the 
> [{{_PubSubReadEvaluator._subscription_cache}}|https://github.com/apache/beam/blob/27bb5bc7b244809e7f6022adb2730d10204ce4d3/sdks/python/apache_beam/runners/direct/transform_evaluator.py#L418]
>  class attribute keeping references to all {{ReadFromPubSub}} transforms.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Work logged] (BEAM-7750) Pipeline instances are not garbage collected

2019-07-24 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7750?focusedWorklogId=282270=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-282270
 ]

ASF GitHub Bot logged work on BEAM-7750:


Author: ASF GitHub Bot
Created on: 24/Jul/19 20:40
Start Date: 24/Jul/19 20:40
Worklog Time Spent: 10m 
  Work Description: ostrokach commented on issue #9146: [BEAM-7750] Don't 
map transforms to PubSub subscriptions unless necessary
URL: https://github.com/apache/beam/pull/9146#issuecomment-514791504
 
 
   Run Portable PreCommit
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 282270)
Time Spent: 40m  (was: 0.5h)

> Pipeline instances are not garbage collected
> 
>
> Key: BEAM-7750
> URL: https://issues.apache.org/jira/browse/BEAM-7750
> Project: Beam
>  Issue Type: Bug
>  Components: sdk-py-core
>Affects Versions: 2.14.0
> Environment: OS: Debian rodete.
> Tested using: 
> Beam versions: 2.13.0, 2.15.0.dev
> Python versions: Python 2.7, Python 3.7.
> Runners:  DirectRunner, DataflowRunner.
>Reporter: Alexey Strokach
>Priority: Minor
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> It seems that Apache Beam's Pipeline instances are not garbage collected, 
> even if the pipelines are finished or cancelled and there are no references 
> to those pipelines in the Python interpreter.
> For pipelines executed in a script, this is not a problem. However, for 
> interactive pipelines executed inside a Jupyter notebook, this limits how 
> well we can track and remove the dependencies of those pipelines. For 
> example, if a pipeline reads from some cache, it would be nice to be able to 
> delete that cache once there are no references to it from pipelines or the 
> global namespace.
> The issue can be reproduced using the following script: 
> [https://gist.github.com/ostrokach/a16556dc77c96b87fe23c2fbd8fb6346].
> -
> On further examination, turns out that this is due to the 
> [{{_PubSubReadEvaluator._subscription_cache}}|https://github.com/apache/beam/blob/27bb5bc7b244809e7f6022adb2730d10204ce4d3/sdks/python/apache_beam/runners/direct/transform_evaluator.py#L418]
>  class attribute keeping references to all {{ReadFromPubSub}} transforms.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Work logged] (BEAM-7750) Pipeline instances are not garbage collected

2019-07-24 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7750?focusedWorklogId=282269=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-282269
 ]

ASF GitHub Bot logged work on BEAM-7750:


Author: ASF GitHub Bot
Created on: 24/Jul/19 20:39
Start Date: 24/Jul/19 20:39
Worklog Time Spent: 10m 
  Work Description: ostrokach commented on issue #9146: [BEAM-7750] Don't 
map transforms to PubSub subscriptions unless necessary
URL: https://github.com/apache/beam/pull/9146#issuecomment-514791040
 
 
   Run Portable_Python
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 282269)
Time Spent: 0.5h  (was: 20m)

> Pipeline instances are not garbage collected
> 
>
> Key: BEAM-7750
> URL: https://issues.apache.org/jira/browse/BEAM-7750
> Project: Beam
>  Issue Type: Bug
>  Components: sdk-py-core
>Affects Versions: 2.14.0
> Environment: OS: Debian rodete.
> Tested using: 
> Beam versions: 2.13.0, 2.15.0.dev
> Python versions: Python 2.7, Python 3.7.
> Runners:  DirectRunner, DataflowRunner.
>Reporter: Alexey Strokach
>Priority: Minor
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> It seems that Apache Beam's Pipeline instances are not garbage collected, 
> even if the pipelines are finished or cancelled and there are no references 
> to those pipelines in the Python interpreter.
> For pipelines executed in a script, this is not a problem. However, for 
> interactive pipelines executed inside a Jupyter notebook, this limits how 
> well we can track and remove the dependencies of those pipelines. For 
> example, if a pipeline reads from some cache, it would be nice to be able to 
> delete that cache once there are no references to it from pipelines or the 
> global namespace.
> The issue can be reproduced using the following script: 
> [https://gist.github.com/ostrokach/a16556dc77c96b87fe23c2fbd8fb6346].
> -
> On further examination, turns out that this is due to the 
> [{{_PubSubReadEvaluator._subscription_cache}}|https://github.com/apache/beam/blob/27bb5bc7b244809e7f6022adb2730d10204ce4d3/sdks/python/apache_beam/runners/direct/transform_evaluator.py#L418]
>  class attribute keeping references to all {{ReadFromPubSub}} transforms.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Work logged] (BEAM-7750) Pipeline instances are not garbage collected

2019-07-24 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7750?focusedWorklogId=282267=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-282267
 ]

ASF GitHub Bot logged work on BEAM-7750:


Author: ASF GitHub Bot
Created on: 24/Jul/19 20:38
Start Date: 24/Jul/19 20:38
Worklog Time Spent: 10m 
  Work Description: ostrokach commented on issue #9146: [BEAM-7750] Don't 
map transforms to PubSub subscriptions unless necessary
URL: https://github.com/apache/beam/pull/9146#issuecomment-514790796
 
 
   Run Portable_Python PreCommit
   Run Python_PVR_Flink PreCommit
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 282267)
Time Spent: 10m
Remaining Estimate: 0h

> Pipeline instances are not garbage collected
> 
>
> Key: BEAM-7750
> URL: https://issues.apache.org/jira/browse/BEAM-7750
> Project: Beam
>  Issue Type: Bug
>  Components: sdk-py-core
>Affects Versions: 2.14.0
> Environment: OS: Debian rodete.
> Tested using: 
> Beam versions: 2.13.0, 2.15.0.dev
> Python versions: Python 2.7, Python 3.7.
> Runners:  DirectRunner, DataflowRunner.
>Reporter: Alexey Strokach
>Priority: Minor
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> It seems that Apache Beam's Pipeline instances are not garbage collected, 
> even if the pipelines are finished or cancelled and there are no references 
> to those pipelines in the Python interpreter.
> For pipelines executed in a script, this is not a problem. However, for 
> interactive pipelines executed inside a Jupyter notebook, this limits how 
> well we can track and remove the dependencies of those pipelines. For 
> example, if a pipeline reads from some cache, it would be nice to be able to 
> delete that cache once there are no references to it from pipelines or the 
> global namespace.
> The issue can be reproduced using the following script: 
> [https://gist.github.com/ostrokach/a16556dc77c96b87fe23c2fbd8fb6346].
> -
> On further examination, turns out that this is due to the 
> [{{_PubSubReadEvaluator._subscription_cache}}|https://github.com/apache/beam/blob/27bb5bc7b244809e7f6022adb2730d10204ce4d3/sdks/python/apache_beam/runners/direct/transform_evaluator.py#L418]
>  class attribute keeping references to all {{ReadFromPubSub}} transforms.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Work logged] (BEAM-7750) Pipeline instances are not garbage collected

2019-07-24 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7750?focusedWorklogId=282268=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-282268
 ]

ASF GitHub Bot logged work on BEAM-7750:


Author: ASF GitHub Bot
Created on: 24/Jul/19 20:38
Start Date: 24/Jul/19 20:38
Worklog Time Spent: 10m 
  Work Description: ostrokach commented on issue #9146: [BEAM-7750] Don't 
map transforms to PubSub subscriptions unless necessary
URL: https://github.com/apache/beam/pull/9146#issuecomment-514790850
 
 
   Run Portable_Python PreCommit
   
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 282268)
Time Spent: 20m  (was: 10m)

> Pipeline instances are not garbage collected
> 
>
> Key: BEAM-7750
> URL: https://issues.apache.org/jira/browse/BEAM-7750
> Project: Beam
>  Issue Type: Bug
>  Components: sdk-py-core
>Affects Versions: 2.14.0
> Environment: OS: Debian rodete.
> Tested using: 
> Beam versions: 2.13.0, 2.15.0.dev
> Python versions: Python 2.7, Python 3.7.
> Runners:  DirectRunner, DataflowRunner.
>Reporter: Alexey Strokach
>Priority: Minor
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> It seems that Apache Beam's Pipeline instances are not garbage collected, 
> even if the pipelines are finished or cancelled and there are no references 
> to those pipelines in the Python interpreter.
> For pipelines executed in a script, this is not a problem. However, for 
> interactive pipelines executed inside a Jupyter notebook, this limits how 
> well we can track and remove the dependencies of those pipelines. For 
> example, if a pipeline reads from some cache, it would be nice to be able to 
> delete that cache once there are no references to it from pipelines or the 
> global namespace.
> The issue can be reproduced using the following script: 
> [https://gist.github.com/ostrokach/a16556dc77c96b87fe23c2fbd8fb6346].
> -
> On further examination, turns out that this is due to the 
> [{{_PubSubReadEvaluator._subscription_cache}}|https://github.com/apache/beam/blob/27bb5bc7b244809e7f6022adb2730d10204ce4d3/sdks/python/apache_beam/runners/direct/transform_evaluator.py#L418]
>  class attribute keeping references to all {{ReadFromPubSub}} transforms.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)