You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2020/06/24 17:42:59 UTC

[GitHub] [beam] lukecwik commented on a change in pull request #12040: Revert "Fix state handler for missing service descriptor."

lukecwik commented on a change in pull request #12040:
URL: https://github.com/apache/beam/pull/12040#discussion_r445063845



##########
File path: sdks/python/apache_beam/runners/worker/sdk_worker.py
##########
@@ -688,7 +688,7 @@ def __init__(self, state_cache, credentials=None):
 
   def create_state_handler(self, api_service_descriptor):
     # type: (endpoints_pb2.ApiServiceDescriptor) -> CachingStateHandler
-    if api_service_descriptor == endpoints_pb2.ApiServiceDescriptor():
+    if not api_service_descriptor:

Review comment:
       What about making this (either in this change or a follow-up):
   `if not api_service_descriptor or api_service_descriptor == endpoints_pb2.ApiServiceDescriptor():`




----------------------------------------------------------------
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:
users@infra.apache.org