1
0
Fork 0

Merge pull request #1670 from rqlite/remote-query-msg

Improve error when query on remote node fails
master
Philip O'Toole 8 months ago committed by GitHub
commit 6a7ab4df83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,3 +1,7 @@
## 8.19.1 (unreleased)
### Implementation changes and bug fixes
- [PR #1670](https://github.com/rqlite/rqlite/pull/1670): Improve error message when query on remote node fails.
## 8.19.0 (February 3rd 2024)
This release allows you to set a maximum amount of a time a query will run. If the query does not complete within the set time, an error will be returned.
### New features

@ -1241,6 +1241,8 @@ func (s *Service) handleQuery(w http.ResponseWriter, r *http.Request, qp QueryPa
http.Error(w, "remote query not authorized", http.StatusUnauthorized)
return
}
resultsErr = fmt.Errorf("node failed to process Query on remote node at %s: %s",
addr, resultsErr.Error())
}
stats.Add(numRemoteQueries, 1)
}

Loading…
Cancel
Save