Skip to content

Conversation

@labkey-danield
Copy link
Contributor

Rationale

This is no longer needed, and is causing issues with tests (socket timeout failures)

Related Pull Requests

  • None

Changes

  • Remove waitForIndexerBackground from BaseWebDriverTest.waitForPendingRequests

Copy link
Member

@labkey-tchad labkey-tchad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought Josh suggested using the less aggressive waitForIndexer, not to remove it altogether?

@labkey-danield
Copy link
Contributor Author

I thought Josh suggested using the less aggressive waitForIndexer, not to remove it altogether?

This was his message in the Disco chat:
Josh Eckels, Mon 10:29 AM
@dan Duffek I looked at the SMPipelineStatusTest failure. In the run I checked, it took 65 seconds for the search queue to clear. The test is timing out after 60 seconds. Because the test is calling waitForIndexerBackground(), it's going to wait for the indexing to finish based on the current crawling pass, not just the things that the test actively inserted or updated
Now that the indexer tosses out work connected with containers that are being deleted, my recommendation is to simply remove the call to waitForIndexerBackground()in waitForPendingRequests()

@labkey-jeckels
Copy link
Contributor

I thought Josh suggested using the less aggressive waitForIndexer, not to remove it altogether?

This was his message in the Disco chat: Josh Eckels, Mon 10:29 AM @dan Duffek I looked at the SMPipelineStatusTest failure. In the run I checked, it took 65 seconds for the search queue to clear. The test is timing out after 60 seconds. Because the test is calling waitForIndexerBackground(), it's going to wait for the indexing to finish based on the current crawling pass, not just the things that the test actively inserted or updated Now that the indexer tosses out work connected with containers that are being deleted, my recommendation is to simply remove the call to waitForIndexerBackground()in waitForPendingRequests()

I'm not sure we need waitForIndexerBackground() at all. waitForIndexer() is good for situations where the test makes a data change and wants to see if it's indexed correctly. There should be no need for either before deleting a container, which is the only usage I see for waitForPendingRequests()

@labkey-danield labkey-danield merged commit 3562fe6 into develop Sep 17, 2025
9 checks passed
@labkey-danield labkey-danield deleted the fb_removeWaitForIndexerFromBaseWebDriver branch September 17, 2025 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants