Skip to content

Commit e608ff7

Browse files
authored
Merge branch 'main' into main
2 parents 735859f + 21ae561 commit e608ff7

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libsql-server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libsql-server"
3-
version = "0.24.25"
3+
version = "0.24.26"
44
edition = "2021"
55
default-run = "sqld"
66
repository = "https://github.com/tursodatabase/libsql"

libsql-server/src/namespace/configurator/replica.rs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,17 @@ impl ConfigureNamespace for ReplicaConfigurator {
123123
loop {
124124
match replicator.run().await {
125125
err @ Error::Fatal(_) => Err(err)?,
126-
err @ Error::NamespaceDoesntExist => {
127-
tracing::error!("namespace {namespace} doesn't exist, destroying...");
128-
(reset)(ResetOp::Destroy(namespace.clone()));
129-
Err(err)?;
126+
_err @ Error::NamespaceDoesntExist => {
127+
// TODO(lucio): there is a bug where a primary will report that a valid
128+
// namespace doesn't exist when it does and causes the replicate to
129+
// destroy the namespace locally. For now the temp solution is to
130+
// ignore this error (still log it) and don't destroy the local
131+
// namespace data on the replica. This trades off storage space for
132+
// returing 500s.
133+
tracing::error!("namespace {namespace} doesn't exist, trying to replicate again...");
134+
// tracing::error!("namespace {namespace} doesn't exist, destroying...");
135+
// (reset)(ResetOp::Destroy(namespace.clone()));
136+
// Err(err)?;
130137
}
131138
e @ Error::Injector(_) => {
132139
tracing::error!("potential corruption detected while replicating, reseting replica: {e}");

libsql-server/src/rpc/streaming_exec.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ where
148148
}
149149
},
150150
Some(res) = recv.recv() => {
151-
tokio::time::sleep(tokio::time::Duration::from_millis(100)).await;
152151
yield Ok(res);
153152
},
154153
(ret, request_id) = &mut current_request_fut => {

0 commit comments

Comments
 (0)