Details
-
Task
-
Status: Stalled (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
-
None
-
10.2.0-10, 10.2.0-11, 10.2.1-1, 10.2.1-3, 10.2.1-4, 10.2.1-5, 10.2.3-2
Description
Optimistically assuming that the authentication was successful, the client doesn't need to wait for the ok packet from the server, but can send the first command right away, including it in the authentication packet.
The idea is to store the command in separate buffer (or just make new network buffer) before authentication, then in case of success of the authentication execute it (auth itself can cause exchange of the packet that is why storing is requited).
Attachments
Issue Links
Activity
Field | Original Value | New Value |
---|---|---|
Fix Version/s | 10.2 [ 14601 ] |
Sprint | 10.2.0-10 [ 46 ] |
Assignee | Oleksandr Byelkin [ sanja ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Description | Optimistically assuming that the authentication was successful, the client doesn't need to wait for the ok packet from the server, but can send the first command right away, including it in the authentication packet. |
Optimistically assuming that the authentication was successful, the client doesn't need to wait for the ok packet from the server, but can send the first command right away, including it in the authentication packet.
The idea is to store the command in separate buffer (or just make new network buffer) before authentication, then in case of success of the authentication execute it (auth itself can cause exchange of the packet that is why storing is requited). |
Sprint | 10.2.0-10 [ 46 ] | 10.2.0-10, 10.2.0-11 [ 46, 47 ] |
Sprint | 10.2.0-10, 10.2.0-11 [ 46, 47 ] | 10.2.0-10, 10.2.0-11, 10.2.1-1 [ 46, 47, 56 ] |
Rank | Ranked higher |
Sprint | 10.2.0-10, 10.2.0-11, 10.2.1-1 [ 46, 47, 56 ] | 10.2.0-10, 10.2.0-11, 10.2.1-1, 10.2.1-2 [ 46, 47, 56, 63 ] |
Sprint | 10.2.0-10, 10.2.0-11, 10.2.1-1, 10.2.1-2 [ 46, 47, 56, 63 ] | 10.2.0-10, 10.2.0-11, 10.2.1-1, 10.2.1-3 [ 46, 47, 56, 65 ] |
Rank | Ranked lower |
Sprint | 10.2.0-10, 10.2.0-11, 10.2.1-1, 10.2.1-3 [ 46, 47, 56, 65 ] | 10.2.0-10, 10.2.0-11, 10.2.1-1, 10.2.1-3, 10.2.1-4 [ 46, 47, 56, 65, 66 ] |
Sprint | 10.2.0-10, 10.2.0-11, 10.2.1-1, 10.2.1-3, 10.2.1-4 [ 46, 47, 56, 65, 66 ] | 10.2.0-10, 10.2.0-11, 10.2.1-1, 10.2.1-3, 10.2.1-4, 10.2.1-5 [ 46, 47, 56, 65, 66, 68 ] |
Assignee | Oleksandr Byelkin [ sanja ] | Sergei Golubchik [ serg ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Sprint | 10.2.0-10, 10.2.0-11, 10.2.1-1, 10.2.1-3, 10.2.1-4, 10.2.1-5 [ 46, 47, 56, 65, 66, 68 ] | 10.2.0-10, 10.2.0-11, 10.2.1-1, 10.2.1-3, 10.2.1-4, 10.2.1-5, 10.2.3-2 [ 46, 47, 56, 65, 66, 68, 105 ] |
Rank | Ranked lower |
Sprint | 10.2.0-10, 10.2.0-11, 10.2.1-1, 10.2.1-3, 10.2.1-4, 10.2.1-5, 10.2.3-2 [ 46, 47, 56, 65, 66, 68, 105 ] | 10.2.0-10, 10.2.0-11, 10.2.1-1, 10.2.1-3, 10.2.1-4, 10.2.1-5, 10.2.3-2, 10.2.4-5 [ 46, 47, 56, 65, 66, 68, 105, 125 ] |
Rank | Ranked lower |
Sprint | 10.2.0-10, 10.2.0-11, 10.2.1-1, 10.2.1-3, 10.2.1-4, 10.2.1-5, 10.2.3-2, 10.2.4-5 [ 46, 47, 56, 65, 66, 68, 105, 125 ] | 10.2.0-10, 10.2.0-11, 10.2.1-1, 10.2.1-3, 10.2.1-4, 10.2.1-5, 10.2.3-2 [ 46, 47, 56, 65, 66, 68, 105 ] |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.2 [ 14601 ] |
Comment |
[ not relevant anymore.
This was develop mainly for java connector. After different discussion, comparaison was asked versus pipelining (send-send-send, and then read results one after the other). based on the assumption that authentication plugins are not often used. So, implementation with pipeline ask for all results, asuming authentication plugin is not used. If used, server close the connection immediatly and client recreate socket without using pipelining. Results are on this take 354ms (± 4ms). Since this is slower and doesn't work on previous mariadb server / mysql servers. better to cancel this task. (for information, mysql java driver take 1183ms !) ] |
Comment |
[
After different of tests, pipelining with assumption is not a viable solution. - pipelining break with maxscale - pipelining make socket close strange issue when using SSL. - if CONNECT_WITH_DB flag is not set (no db in url), then authentication plugin is asked, so authentication may have more used than imagined. Cancel previous comment. this task is still relevant. ] |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.3 [ 22126 ] |
Epic Link | PT-79 [ 68560 ] |
Assignee | Sergei Golubchik [ serg ] | Vladislav Vaintroub [ wlad ] |
Rank | Ranked higher |
Rank | Ranked higher |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Assignee | Vladislav Vaintroub [ wlad ] | Oleksandr Byelkin [ sanja ] |
Epic Link | PT-79 [ 68560 ] |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.4 [ 22408 ] |
Labels | Connectors |
Fix Version/s | 10.5 [ 23123 ] |
Workflow | MariaDB v3 [ 72409 ] | MariaDB v4 [ 131653 ] |
revision-id: e52317b01a50ee51d703913fb046f5419432dc2f (mariadb-10.2.2-35-ge52317b)
parent(s): 553ca406cd44946d454d84c08a7247ef595378f5
committer: Oleksandr Byelkin
timestamp: 2016-10-11 15:56:54 +0200
message:
MDEV-9059: protocol: bundle first command with the authentication packet
—