1
0
Fork 0

Merge pull request #1032 from rqlite/more-handle-errors

More fixes for https://github.com/rqlite/rqlite/issues/1029
master
Philip O'Toole 2 years ago committed by GitHub
commit bc24033436
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5,7 +5,7 @@
### Implementation changes and bug fixes ### Implementation changes and bug fixes
- [PR #1027](https://github.com/rqlite/rqlite/pull/1027): go mod (dependencies) updates, including upgrading SQLite to 3.38.5. - [PR #1027](https://github.com/rqlite/rqlite/pull/1027): go mod (dependencies) updates, including upgrading SQLite to 3.38.5.
- [PR #1030](https://github.com/rqlite/rqlite/pull/1030): Handle more connection errors. Fixes [issue #1029](https://github.com/rqlite/rqlite/issues/1029). - [PR #1030](https://github.com/rqlite/rqlite/pull/1030), [PR #1032](https://github.com/rqlite/rqlite/pull/1032): Handle more connection errors. Fixes [issue #1029](https://github.com/rqlite/rqlite/issues/1029).
## 7.4.0 (May 10th 2022) ## 7.4.0 (May 10th 2022)
With this release rqlite supports restoring a node from an actual SQLite file, which is very much faster than restoring using the SQL dump representation of the same SQLite database. With this release rqlite supports restoring a node from an actual SQLite file, which is very much faster than restoring using the SQL dump representation of the same SQLite database.

@ -106,6 +106,7 @@ func (c *Client) GetNodeAPIAddr(nodeAddr string, timeout time.Duration) (string,
} }
_, err = io.ReadFull(conn, b) _, err = io.ReadFull(conn, b)
if err != nil { if err != nil {
handleConnError(conn)
return "", err return "", err
} }
sz := binary.LittleEndian.Uint16(b[0:]) sz := binary.LittleEndian.Uint16(b[0:])
@ -118,6 +119,7 @@ func (c *Client) GetNodeAPIAddr(nodeAddr string, timeout time.Duration) (string,
} }
_, err = io.ReadFull(conn, p) _, err = io.ReadFull(conn, p)
if err != nil { if err != nil {
handleConnError(conn)
return "", err return "", err
} }
@ -260,6 +262,7 @@ func (c *Client) Query(qr *command.QueryRequest, nodeAddr string, timeout time.D
// Read length of response. // Read length of response.
_, err = io.ReadFull(conn, b) _, err = io.ReadFull(conn, b)
if err != nil { if err != nil {
handleConnError(conn)
return nil, err return nil, err
} }
sz := binary.LittleEndian.Uint32(b[0:]) sz := binary.LittleEndian.Uint32(b[0:])
@ -268,6 +271,7 @@ func (c *Client) Query(qr *command.QueryRequest, nodeAddr string, timeout time.D
p = make([]byte, sz) p = make([]byte, sz)
_, err = io.ReadFull(conn, p) _, err = io.ReadFull(conn, p)
if err != nil { if err != nil {
handleConnError(conn)
return nil, err return nil, err
} }

Loading…
Cancel
Save