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

ASF GitHub Bot logged work on KNOX-2634:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 15/Jul/21 15:51
            Start Date: 15/Jul/21 15:51
    Worklog Time Spent: 10m 
      Work Description: moresandeep commented on a change in pull request #469:
URL: https://github.com/apache/knox/pull/469#discussion_r670590337



##########
File path: 
gateway-provider-ha/src/main/java/org/apache/knox/gateway/ha/dispatch/ConfigurableHADispatch.java
##########
@@ -89,6 +91,13 @@ public void init() {
       if(stickySessionsEnabled) {
         stickySessionCookieName = serviceConfig.getStickySessionCookieName();
       }
+      /* if a configurable user agent list is defined to turn off Knox LB used 
it */
+      
if(!StringUtils.isBlank(serviceConfig.getDisableStickySessionForUserAgents())) {
+        /* configured user agents are comma separate list which *can* contain 
whitespaces */
+        disableLoadBalancingForUserAgents = 
Arrays.asList(serviceConfig.getDisableStickySessionForUserAgents()

Review comment:
       Right, Phil mentioned the same, I'll change it.

##########
File path: 
gateway-provider-ha/src/main/java/org/apache/knox/gateway/ha/provider/HaServiceConfig.java
##########
@@ -57,4 +57,8 @@
   boolean isNoFallbackEnabled();
 
   void setNoFallbackEnabled(boolean noFallbackEnabled);
+
+  void setDisableStickySessionForUserAgents(String 
disableStickySessionForUserAgents);
+
+  String getDisableStickySessionForUserAgents();

Review comment:
       true, will change it.




-- 
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.

To unsubscribe, e-mail: dev-unsubscr...@knox.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

    Worklog Id:     (was: 623131)
    Time Spent: 50m  (was: 40m)

> ODBC connection broken when HA Loadbalancing config is enabled
> --------------------------------------------------------------
>
>                 Key: KNOX-2634
>                 URL: https://issues.apache.org/jira/browse/KNOX-2634
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>            Reporter: Sandeep More
>            Assignee: Sandeep More
>            Priority: Major
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> When connecting using ODBC Connection against Knox with HA Loadbalancing 
> template get the error described below:
>  
> ERROR [HY000] [Cloudera][Hardy] (35) Error from server: error code: '0' error 
> message: 'Invalid OperationHandle: OperationHandle [opType=GET_TABLES, 
> getHandleIdentifier()=1097ca76-1815-4f0c-9c09-67fa84d22e43]'.
> Details:
> DataSourceKind=Odbc
> DataSourcePath=dsn=HIVE



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

Reply via email to