[DocDB] Delayed read request execution #11477
Labels
area/docdb
YugabyteDB core features
kind/bug
This issue is a bug
priority/medium
Medium priority issue
Jira Link: DB-716
Description
Observed occasional failures of the TestPgReadTimeout.java test.
The purpose of the test is to make sure that long running aggregate requests do not fail (#4692). The test reduces the session timeout, then enters a loop which inserts bunch of rows into a table and counts them immediately after that. The loop continues until counting takes much longer than the timeout.
Below are the logs from a failed test:
Session timeout is 2s, so read is supposed to respond after 1s (1000ms before timeout is the default).
On the first iteration 10000 rows are inserted, there is a log about that at 01:21:51,001, and SELECT count(*) is issued immediately after that. However execution is started 1.253s later. Deadline is already over at this point, so response is returned after the first row is read. The follow up request starts iterating immediately and completes table scan in 0.63s.
Based on the query timing the test estimates that 25356 more rows are needed to reach desired query time, and those rows loaded on the second iteration by 01:22:04,345. Following read starts 2.014s later, and at that point not only it is over the deadline, but the session is already timed out.
The text was updated successfully, but these errors were encountered: