Open shishir2001-yb opened 1 year ago
the below is no longer relevant
I think this corresponds to FOR KEY SHARE
alone. I recently brought this up and we were discussing it.
here's a simple repro.
TEST_F(PgTabletSplitTest, TestForKeyShare) {
auto conn = ASSERT_RESULT(Connect());
ASSERT_OK(conn.Execute("CREATE TABLE t(k INT, v INT) SPLIT INTO 1 TABLETS;"));
ASSERT_OK(conn.Execute(
"INSERT INTO t SELECT i, 1 FROM (SELECT generate_series(1, 10000) i) t2;"));
ASSERT_OK(cluster_->FlushTablets());
ASSERT_OK(conn.StartTransaction(IsolationLevel::SNAPSHOT_ISOLATION));
for (int i = 0; i < 10; ++i) {
ASSERT_OK(conn.FetchFormat("SELECT * FROM t WHERE k=1 FOR KEY SHARE;", i));
}
auto table_id = ASSERT_RESULT(GetTableIDFromTableName("t"));
ASSERT_OK(SplitSingleTablet(table_id));
ASSERT_OK(WaitForSplitCompletion(table_id));
SleepFor(FLAGS_cleanup_split_tablets_interval_sec * 5s * kTimeMultiplier);
ASSERT_OK(conn.CommitTransaction());
}
should be okay once https://github.com/yugabyte/yugabyte-db/issues/18615 is resolved.
upon looking at this again, it has nothing to do with the below error. this can be safely ignored, as the error will be fixed in https://github.com/yugabyte/yugabyte-db/issues/18615
E0808 11:30:54.185434 77266 transaction_loader.cc:284] T 71b8240f6ff841e89ca8d91431d855dd P 6e605af616214b8d87ad97936a29e754: Failed to decode intent while loading transaction 7deb5b63-8746-464e-94e2-914521da6dd2, 787DEB5B638746464E94E2914521DA6DD2 => 0A107DEB5B638746464E94E2914521DA6DD210031A20396237306361336438666563343163326131653365646662353939653866326421FFFFFFFFFFFFFFFF290040DAF4207B266031AC8122B2670206003801:
Corruption (yb/dockv/intent.cc:123): Expecting hybrid time with ValueType kHybridTime, found <unknown KeyEntryType : 56>
would need to debug why the commit errors with message Commit of transaction with running requests
I see this might be relevant - https://github.com/yugabyte/yugabyte-db/issues/7984
From the surface, it looks like the issue happens only if split occurs in the middle of the transaction.
update from Shishir - commit statements don't error with message Commit of transaction with running requests
when tablet split is disabled. seems like https://github.com/yugabyte/yugabyte-db/issues/7984 isn't specific to transaction sealing context and could be a broader issue.
Jira Link: DB-7537
Description
Tried on version: 2.19.1.0-b397 Some of the transaction(Read Committed Isolation level) got aborted with the below error.
2023-08-08 11:31:19,04: Commit of transaction with running requests
Universe Logs
G-flags used:
Previously reported error logs, which aren't relevant and shouldn't have anything to do with the failure. ignore.
Just 30 seconds before this error the following was logged in Tserver error fileWarning: Please confirm that this issue does not contain any sensitive information