You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,11 +16,13 @@ All notable changes to this project will be documented in this file.
16
16
17
17
- Improve tracing for running queries on Trino, adding spans for the request to Trino and parsing ([#71]).
18
18
- Improve performance by using [`serde_json::value::RawValue`](https://docs.rs/serde_json/latest/serde_json/value/struct.RawValue.html) for the `data` and `columns` attributes to avoid unneeded deserialization and serialization of them ([#73]).
#[snafu(display("Failed to parse nextUri Trino send us"))]
24
24
ParseNextUriFromTrino{source: url::ParseError},
25
25
26
-
#[snafu(display("Failed to determine the elapsed time of a queued query. Are all system clocks of trino-lb instances in sync?"))]
26
+
#[snafu(display(
27
+
"Failed to determine the elapsed time of a queued query. Are all system clocks of trino-lb instances in sync?"
28
+
))]
27
29
DetermineElapsedTime{source:SystemTimeError},
28
30
29
-
#[snafu(display("The queued time {queued_time:?} is too big to be send to trino, as the trino API only accepts an 64bit number for queued_time_millis"))]
31
+
#[snafu(display(
32
+
"The queued time {queued_time:?} is too big to be send to trino, as the trino API only accepts an 64bit number for queued_time_millis"
"Persistence was asked to decrement the number of queries for the given cluster, but it would result in a negative amount of queries. Setting it to 0 instead."
168
+
);
169
+
count.store(0,Ordering::SeqCst);
170
+
}
171
+
}
172
+
_ => {
159
173
error!(
160
-
cluster_name,
161
-
"Persistence was asked to decrement the number of queries for the given cluster, but it would result in a negative amount of queries. Setting it to 0 instead."
162
-
);
163
-
count.store(0,Ordering::SeqCst);
174
+
"Persistence was asked to decrement the number of queries, but no query count for this cluster was not known. This should not happen."
175
+
)
164
176
}
165
-
}else{
166
-
error!("Persistence was asked to decrement the number of queries, but no query count for this cluster was not known. This should not happen.")
167
177
}
168
178
169
179
Ok(())
@@ -176,15 +186,18 @@ impl Persistence for InMemoryPersistence {
176
186
count:u64,
177
187
) -> Result<(),super::Error>{
178
188
let current_counts = self.cluster_query_counts.read().await;
0 commit comments