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

Prasanth Jayachandran commented on HIVE-19568:
----------------------------------------------

a short comment about the offline discussed point about connection could be 
created before the ha registry is initialized could be useful (hs2 transport 
opens before registry start will allow direct connections). also can you plz 
add test? TestActivePassiveHA has some tests that resolves service discovery 
urls to direct urls which can be extended easily to add some tests. 

looks good otherwise. 

> Active/Passive HS2 HA: Disallow direct connection to passive HS2 instance
> -------------------------------------------------------------------------
>
>                 Key: HIVE-19568
>                 URL: https://issues.apache.org/jira/browse/HIVE-19568
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2
>    Affects Versions: 3.1.0
>            Reporter: Prasanth Jayachandran
>            Assignee: Sergey Shelukhin
>            Priority: Major
>         Attachments: HIVE-19568.patch
>
>
> The recommended usage for clients when connecting to HS2 with Active/Passive 
> HA configuration is via ZK service discovery URL. But some applications do 
> not support ZK service discovery in which case they use direct URL to connect 
> to HS2 instance. If direct connection is to passive HS2 instance, the 
> connection should be dropped with proper error message. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to