drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sohami <...@git.apache.org>
Subject [GitHub] drill pull request #829: DRILL-5485: Remove WebServer dependency on DrillCli...
Date Wed, 24 May 2017 07:29:59 GMT
Github user sohami commented on a diff in the pull request:

    --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/WebServer.java
    @@ -219,12 +232,43 @@ public void sessionDestroyed(HttpSessionEvent se) {
    +        // Clear all the custom attributes set as part of session
    +        clearSessionCustomAttributes(session);
         return new SessionHandler(sessionManager);
    +  private void clearSessionCustomAttributes(HttpSession session) {
    --- End diff --
    WebUserConnection is a class which is encapsulating all the resources. I had the logic
of close and cleanup in it earlier. But I Didn't set that as attribute of Http session object
since in that case it will be reset for each request. Since there are not many resources which
we are setting inside HttpSession and each of them are really a separate property for the
session in itself, I guess keeping them separated should be fine. 

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message