[
https://issues.apache.org/jira/browse/IGNITE-11258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16767209#comment-16767209
]
Vladimir Ozerov commented on IGNITE-11258:
------------------------------------------
[~alapin], my recommendations:
# Make {{JdbcThinTcpIo}} - once initialized it never changes (no reconnect).
Once disconnected it is disconnected forever. This way we will avoid a lot of
bugs
# Need to properly handle "sticky" case, when a group of requests must be
routed through the same IO. Examples: "next page" requests, transactions,
streaming, copy. One way to achieve this is to pass desired IO to "send"
method, and return IO on which the request was executed back together with
{{JdbcResult}}.
# I would suggest to keep {{connected}} logic as simple as possible for now -
{{true}} if and only if we successfully established connections to all nodes
# Old logic should work fine with multiple established connections including
proper "stickiness"
> JDBC Thin: update connection setup logic.
> -----------------------------------------
>
> Key: IGNITE-11258
> URL: https://issues.apache.org/jira/browse/IGNITE-11258
> Project: Ignite
> Issue Type: Task
> Components: sql
> Reporter: Alexander Lapin
> Assignee: Alexander Lapin
> Priority: Major
> Labels: iep-23
> Time Spent: 10m
> Remaining Estimate: 0h
>
> # On thin client startup it connects to *all* *nodes* provided by user by
> client configuration.
> # Upon handshake server returns its UUID to client.
> # By the end of the startup procedure, client have open connections to all
> available server nodes and the following mapping (*nodeMap*): [UUID =>
> Connection].
> Connection to all nodes helps to identify available nodes, but can lead to
> significant delay, when thin client is used on a large cluster with a long IP
> list provided by user. To lower this delay, asynchronous establishment of
> connections can be used.
> For more information see [IEP-23: Best Effort
> Affinity|https://cwiki.apache.org/confluence/display/IGNITE/IEP-23%3A+Best+Effort+Affinity+for+thin+clients]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)