beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BEAM-3239) Enable debug server for python sdk workers
Date Thu, 30 Nov 2017 19:29:00 GMT

    [ https://issues.apache.org/jira/browse/BEAM-3239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16273235#comment-16273235
] 

ASF GitHub Bot commented on BEAM-3239:
--------------------------------------

aaltay commented on a change in pull request #4178: [BEAM-3239] Adding debug server to sdk
worker to get threaddumps
URL: https://github.com/apache/beam/pull/4178#discussion_r154174484
 
 

 ##########
 File path: sdks/python/apache_beam/runners/worker/sdk_worker_main.py
 ##########
 @@ -30,6 +31,39 @@
 # This module is experimental. No backwards-compatibility guarantees.
 
 
+class StatusServer(object):
+
+  def start(self, STATUS_HTTP_PORT=0, started_callback=None):
+    """Executes the serving loop for the status server."""
+
+    class StatusHttpHandler(BaseHTTPServer.BaseHTTPRequestHandler):
+      """HTTP handler for serving stacktraces of all worker threads."""
+
+      def do_GET(self):  # pylint: disable=invalid-name
+        """Return /threadz information for any GET request."""
 
 Review comment:
   How about we use `stacktraces` instead of `/threadz`?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


> Enable debug server for python sdk workers
> ------------------------------------------
>
>                 Key: BEAM-3239
>                 URL: https://issues.apache.org/jira/browse/BEAM-3239
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-py-core
>            Reporter: Ankur Goenka
>            Assignee: Ankur Goenka
>            Priority: Minor
>
> Enable status server to dump threads when http get call is made to the server.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message