mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-24 08:50:40 +00:00
feat: bring back sqlness and integration tests (#2448)
* enable integration test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
* update sqlness result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
* disable sqlness region failover
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
* enable sqlness in CI
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
* sort unstable result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
* set require_lease_before_startup to true
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
* fix: fix inconsistent cache
* replace windows path chars
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
* ignore some integration cases in windows
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
* Revert "ignore some integration cases in windows"
This reverts commit 122478b7c1.
* disable windows for now
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
* fix: fix close region bug in RegionHeartbeatResponseHandler
* disable failover tests
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Co-authored-by: WenyXu <wenymedia@gmail.com>
This commit is contained in:
@@ -123,12 +123,6 @@ impl StatementExecutor {
|
||||
|
||||
let table = DistTable::table(table_info);
|
||||
|
||||
// Invalidates local cache ASAP.
|
||||
self.cache_invalidator
|
||||
.invalidate_table_id(&Context::default(), table_id)
|
||||
.await
|
||||
.context(error::InvalidateTableCacheSnafu)?;
|
||||
|
||||
Ok(table)
|
||||
}
|
||||
|
||||
@@ -154,6 +148,11 @@ impl StatementExecutor {
|
||||
.await
|
||||
.context(error::InvalidateTableCacheSnafu)?;
|
||||
|
||||
self.cache_invalidator
|
||||
.invalidate_table_name(&Context::default(), table_name.clone())
|
||||
.await
|
||||
.context(error::InvalidateTableCacheSnafu)?;
|
||||
|
||||
Ok(Output::AffectedRows(1))
|
||||
}
|
||||
|
||||
@@ -262,6 +261,14 @@ impl StatementExecutor {
|
||||
.await
|
||||
.context(error::InvalidateTableCacheSnafu)?;
|
||||
|
||||
self.cache_invalidator
|
||||
.invalidate_table_name(
|
||||
&Context::default(),
|
||||
TableName::new(catalog_name, schema_name, table_name),
|
||||
)
|
||||
.await
|
||||
.context(error::InvalidateTableCacheSnafu)?;
|
||||
|
||||
Ok(Output::AffectedRows(0))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user