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

deletefile_test intermittently failing on main #217

Closed
isaac-io opened this issue Nov 7, 2022 · 0 comments · Fixed by #218
Closed

deletefile_test intermittently failing on main #217

isaac-io opened this issue Nov 7, 2022 · 0 comments · Fixed by #218
Assignees
Labels
bug Something isn't working tests
Milestone

Comments

@isaac-io
Copy link
Contributor

isaac-io commented Nov 7, 2022

The following test in deletefile_test sometimes fail on main (reported on Slack by @udi-speedb):

[ RUN      ] DeleteFileTest.BackgroundPurgeCFDropTest
db/deletefile_test.cc:124: Failure
Expected equality of these values:
  required_sst
    Which is: 0
  sst_cnt
    Which is: 1
Google Test trace:
db/deletefile_test.cc:380: avoid_unnecessary_blocking_io = true
terminate called after throwing an instance of 'testing::internal::GoogleTestFailureException'
  what():  db/deletefile_test.cc:124: Failure
Expected equality of these values:
  required_sst
    Which is: 0
  sst_cnt
    Which is: 1

This is a continuation of the issue raised in #197, and is caused by the changes introduced in #194. My fix in #197 didn't fully fix the issue for all of the affected tests, apparently.

To Reproduce

Run the test in a loop until it fails. Overloading the machine with activity seems to help the failure manifest quicker:

$ while ./deletefile_test --gtest_filter=DeleteFileTest.BackgroundPurgeCFDropTest; do sleep 1; done

Expected behavior

The tests pass successfully.

Additional context

N/A

@isaac-io isaac-io added bug Something isn't working tests labels Nov 7, 2022
@isaac-io isaac-io added this to the v2.2.0 milestone Nov 7, 2022
@isaac-io isaac-io self-assigned this Nov 7, 2022
isaac-io added a commit that referenced this issue Nov 7, 2022
…#217)

In #194 the default value for background compaction threads was changed
to 8 (from 1). This caused some tests to fail and fixes were implemented
as part of #197. Alas, it seems that the fixes weren't complete, as under
stress a test still fail.

Make it so the test is truly fixed now. This can be verified by running
them in a loop with the machine overloaded:

```
$ while ./deletefile_test --gtest_filter=DeleteFileTest.BackgroundPurgeCFDropTest; do sleep 1; done
```
isaac-io added a commit that referenced this issue Nov 8, 2022
…#217)

In #194 the default value for background compaction threads was changed
to 8 (from 1). This caused some tests to fail and fixes were implemented
as part of #197. Alas, it seems that the fixes weren't complete, as under
stress a test still fail.

Make it so the test is truly fixed now. This can be verified by running
them in a loop with the machine overloaded:

```
$ while ./deletefile_test --gtest_filter=DeleteFileTest.BackgroundPurgeCFDropTest; do sleep 1; done
```
Yuval-Ariel pushed a commit that referenced this issue Nov 15, 2022
…#217)

In #194 the default value for background compaction threads was changed
to 8 (from 1). This caused some tests to fail and fixes were implemented
as part of #197. Alas, it seems that the fixes weren't complete, as under
stress a test still fail.

Make it so the test is truly fixed now. This can be verified by running
them in a loop with the machine overloaded:

```
$ while ./deletefile_test --gtest_filter=DeleteFileTest.BackgroundPurgeCFDropTest; do sleep 1; done
```
Yuval-Ariel pushed a commit that referenced this issue Nov 25, 2022
…#217)

In #194 the default value for background compaction threads was changed
to 8 (from 1). This caused some tests to fail and fixes were implemented
as part of #197. Alas, it seems that the fixes weren't complete, as under
stress a test still fail.

Make it so the test is truly fixed now. This can be verified by running
them in a loop with the machine overloaded:

```
$ while ./deletefile_test --gtest_filter=DeleteFileTest.BackgroundPurgeCFDropTest; do sleep 1; done
```
Yuval-Ariel pushed a commit that referenced this issue Nov 25, 2022
…#217)

In #194 the default value for background compaction threads was changed
to 8 (from 1). This caused some tests to fail and fixes were implemented
as part of #197. Alas, it seems that the fixes weren't complete, as under
stress a test still fail.

Make it so the test is truly fixed now. This can be verified by running
them in a loop with the machine overloaded:

```
$ while ./deletefile_test --gtest_filter=DeleteFileTest.BackgroundPurgeCFDropTest; do sleep 1; done
```
Yuval-Ariel pushed a commit that referenced this issue Apr 30, 2023
…#217)

In #194 the default value for background compaction threads was changed
to 8 (from 1). This caused some tests to fail and fixes were implemented
as part of #197. Alas, it seems that the fixes weren't complete, as under
stress a test still fail.

Make it so the test is truly fixed now. This can be verified by running
them in a loop with the machine overloaded:

```
$ while ./deletefile_test --gtest_filter=DeleteFileTest.BackgroundPurgeCFDropTest; do sleep 1; done
```
Yuval-Ariel pushed a commit that referenced this issue May 4, 2023
…#217)

In #194 the default value for background compaction threads was changed
to 8 (from 1). This caused some tests to fail and fixes were implemented
as part of #197. Alas, it seems that the fixes weren't complete, as under
stress a test still fail.

Make it so the test is truly fixed now. This can be verified by running
them in a loop with the machine overloaded:

```
$ while ./deletefile_test --gtest_filter=DeleteFileTest.BackgroundPurgeCFDropTest; do sleep 1; done
```
udi-speedb pushed a commit that referenced this issue Nov 13, 2023
…#217)

In #194 the default value for background compaction threads was changed
to 8 (from 1). This caused some tests to fail and fixes were implemented
as part of #197. Alas, it seems that the fixes weren't complete, as under
stress a test still fail.

Make it so the test is truly fixed now. This can be verified by running
them in a loop with the machine overloaded:

```
$ while ./deletefile_test --gtest_filter=DeleteFileTest.BackgroundPurgeCFDropTest; do sleep 1; done
```
udi-speedb pushed a commit that referenced this issue Nov 15, 2023
…#217)

In #194 the default value for background compaction threads was changed
to 8 (from 1). This caused some tests to fail and fixes were implemented
as part of #197. Alas, it seems that the fixes weren't complete, as under
stress a test still fail.

Make it so the test is truly fixed now. This can be verified by running
them in a loop with the machine overloaded:

```
$ while ./deletefile_test --gtest_filter=DeleteFileTest.BackgroundPurgeCFDropTest; do sleep 1; done
```
udi-speedb pushed a commit that referenced this issue Dec 3, 2023
…#217)

In #194 the default value for background compaction threads was changed
to 8 (from 1). This caused some tests to fail and fixes were implemented
as part of #197. Alas, it seems that the fixes weren't complete, as under
stress a test still fail.

Make it so the test is truly fixed now. This can be verified by running
them in a loop with the machine overloaded:

```
$ while ./deletefile_test --gtest_filter=DeleteFileTest.BackgroundPurgeCFDropTest; do sleep 1; done
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant