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

ASF GitHub Bot logged work on BEAM-9548:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 23/Mar/20 23:07
            Start Date: 23/Mar/20 23:07
    Worklog Time Spent: 10m 
      Work Description: pabloem commented on pull request #11163: [BEAM-9548] 
Add better error handling to the TestStreamServiceController
URL: https://github.com/apache/beam/pull/11163#discussion_r396766986
 
 

 ##########
 File path: 
sdks/python/apache_beam/runners/interactive/caching/streaming_cache.py
 ##########
 @@ -166,13 +169,15 @@ def _wait_until_file_exists(self, timeout_secs=30):
 
     # Wait for up to `timeout_secs` for the file to be available.
     start = time.time()
-    path = os.path.join(self._cache_dir, *self._labels)
-    while not os.path.exists(path):
+    while not os.path.exists(self._path):
       time.sleep(1)
       if time.time() - start > timeout_timestamp_secs:
+        from apache_beam.runners.interactive.pipeline_instrument import 
CacheKey
+        pcollection_var = CacheKey.from_str(self._labels[-1]).var
 
 Review comment:
   I hadn't stopeed to think that labels are a file name too, huh? I guess the 
final file name is the PCollection variable name? If so, users may name their 
PCollections something that is not supported by the OS? (or maybe not since 
they have to be Python variable names?)
   Anyway this is not for this PR. But just to think about.
 
----------------------------------------------------------------
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:
[email protected]


Issue Time Tracking
-------------------

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

> Bad error handling with errors from TestStreamService when using Interactive 
> Beam
> ---------------------------------------------------------------------------------
>
>                 Key: BEAM-9548
>                 URL: https://issues.apache.org/jira/browse/BEAM-9548
>             Project: Beam
>          Issue Type: Bug
>          Components: runner-py-interactive
>            Reporter: Sam Rohde
>            Assignee: Sam Rohde
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The error handling when an error is generated on the GRPC server side is very 
> verbose and hides the problem.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to