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

ASF GitHub Bot logged work on HADOOP-17133:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/Mar/21 05:52
            Start Date: 24/Mar/21 05:52
    Worklog Time Spent: 10m 
      Work Description: aajisaka commented on a change in pull request #2145:
URL: https://github.com/apache/hadoop/pull/2145#discussion_r600192098



##########
File path: 
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java
##########
@@ -669,6 +674,16 @@ private void initializeWebServer(String name, String 
hostName,
     addDefaultApps(contexts, appDir, conf);
     webServer.setHandler(handlers);
 
+    // Jetty StatisticsHandler should be the first handler.
+    // The handler returns 503 if there is no next handler and the response is
+    // not committed. In Apache Hadoop, there are some servlets that do not
+    // commit (i.e. close) the response. Therefore the handler fails.

Review comment:
       - I found why the handler should be inserted and updated the 
explanation: https://www.eclipse.org/lists/jetty-users/msg06273.html
   - Created a test case for the scenario: 
https://github.com/apache/hadoop/pull/2145/commits/34bb0a6855cec3faca4a5b7eec323b5ca273743d
   
   Thank you @Jing9  for your review.




-- 
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: 570951)
    Time Spent: 40m  (was: 0.5h)

> Implement HttpServer2 metrics
> -----------------------------
>
>                 Key: HADOOP-17133
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17133
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: httpfs, kms
>            Reporter: Akira Ajisaka
>            Assignee: Akira Ajisaka
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.4.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> I'd like to collect metrics (number of connections, average response time, 
> etc...) from HttpFS and KMS but there are no metrics for HttpServer2.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to