You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Chris Sampson (Jira)" <ji...@apache.org> on 2022/03/05 18:30:00 UTC
[jira] [Created] (NIFI-9766) Intermittent failure of SearchElasticsearchTest in GitHub Actions
Chris Sampson created NIFI-9766:
-----------------------------------
Summary: Intermittent failure of SearchElasticsearchTest in GitHub Actions
Key: NIFI-9766
URL: https://issues.apache.org/jira/browse/NIFI-9766
Project: Apache NiFi
Issue Type: Bug
Affects Versions: 1.16.0
Reporter: Chris Sampson
The {{SearchElasticsearchTest}} has been seen to occasionally fail when running in GitHub Actions against unrelated PRs.
On investigation, this appears likely to be an issue with timing between waiting for processor runs to complete, reaching the configured expiration of a paged query that is stored in processor {{LOCAL}} state and the subsequent further execution of the same processor.
See https://github.com/apache/nifi/runs/5382550163?check_suite_focus=true as an example.
{code:java}
Error: Tests run: 21, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 3.256 s <<< FAILURE! - in org.apache.nifi.processors.elasticsearch.SearchElasticsearchTest
Error: org.apache.nifi.processors.elasticsearch.SearchElasticsearchTest.testSearchAfterExpiration Time elapsed: 1 s <<< FAILURE!
org.opentest4j.AssertionFailedError: Expected attribute page.number to be 1 but instead it was 2 ==> expected: <1> but was: <2>
at org.apache.nifi.processors.elasticsearch.SearchElasticsearchTest.testPaginationExpiration(SearchElasticsearchTest.groovy:117)
at org.apache.nifi.processors.elasticsearch.SearchElasticsearchTest.testSearchAfterExpiration(SearchElasticsearchTest.groovy:86)
Error: org.apache.nifi.processors.elasticsearch.SearchElasticsearchTest.testScrollExpiration Time elapsed: 1.016 s <<< FAILURE!
org.opentest4j.AssertionFailedError: Expected attribute page.number to be 1 but instead it was 2 ==> expected: <1> but was: <2>
at org.apache.nifi.processors.elasticsearch.SearchElasticsearchTest.testPaginationExpiration(SearchElasticsearchTest.groovy:117)
at org.apache.nifi.processors.elasticsearch.SearchElasticsearchTest.testScrollExpiration(SearchElasticsearchTest.groovy:76)
{code}
Notably, this tests works most of the time and even in the linked run above the, one of the three tests that use the same code worked without issue.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)