Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DocDB] QLTabletTest.GCLogWithoutWrites is flaky in fast debug builds #16525

Open
1 task done
rthallamko3 opened this issue Mar 22, 2023 · 0 comments
Open
1 task done
Assignees
Labels
area/docdb YugabyteDB core features good first issue This is a good issue to start contributing! kind/bug This issue is a bug priority/medium Medium priority issue

Comments

@rthallamko3
Copy link
Contributor

rthallamko3 commented Mar 22, 2023

Jira Link: DB-5921

Description

Detective report

Failure trends

It seems like the validation of log operations after leader step down needs to be adjusted for fastdebug builds at least.

TEST_F(QLTabletTest, GCLogWithoutWrites) {
  SetAtomicFlag(kRetryableRequestTimeoutSecs, &FLAGS_retryable_request_timeout_secs);

  TableHandle table;
  CreateTable(kTable1Name, &table);

  FillTable(0, kTotalKeys, table);

  std::this_thread::sleep_for(1s * (kRetryableRequestTimeoutSecs + 1));
  ASSERT_OK(cluster_->FlushTablets());
  DoStepDowns(cluster_.get());
  VerifyLogIndicies(cluster_.get());
}
void VerifyLogIndicies(MiniCluster* cluster) {
  for (size_t i = 0; i != cluster->num_tablet_servers(); ++i) {
    auto peers = cluster->mini_tablet_server(i)->server()->tablet_manager()->GetTabletPeers();

    for (const auto& peer : peers) {
      int64_t index = ASSERT_RESULT(peer->GetEarliestNeededLogIndex());
      ASSERT_EQ(peer->consensus()->GetLastCommittedOpId().index, index);
    }
  }
}

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.
@rthallamko3 rthallamko3 added area/docdb YugabyteDB core features status/awaiting-triage Issue awaiting triage labels Mar 22, 2023
@yugabyte-ci yugabyte-ci added kind/bug This issue is a bug priority/medium Medium priority issue and removed status/awaiting-triage Issue awaiting triage labels Mar 22, 2023
@rthallamko3 rthallamko3 changed the title [DocDB] QLTabletTest.GCLogWithoutWrites is flaky in alma debug [DocDB] QLTabletTest.GCLogWithoutWrites is flaky in fast debug builds Mar 22, 2023
@yugabyte-ci yugabyte-ci added the good first issue This is a good issue to start contributing! label Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docdb YugabyteDB core features good first issue This is a good issue to start contributing! kind/bug This issue is a bug priority/medium Medium priority issue
Projects
None yet
Development

No branches or pull requests

3 participants