You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/03/06 00:06:00 UTC
[jira] [Commented] (NIFI-9766) Intermittent failure of SearchElasticsearchTest in GitHub Actions
[ https://issues.apache.org/jira/browse/NIFI-9766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17501850#comment-17501850 ]
ASF subversion and git services commented on NIFI-9766:
-------------------------------------------------------
Commit 12685a4af442eb343808d9017f29b5087520a146 in nifi's branch refs/heads/main from Chris Sampson
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=12685a4 ]
NIFI-9766 avoid intermittent SearchElasticsearchTest failures in CI pipeline
This closes #5842
Signed-off-by: Mike Thomsen <mt...@apache.org>
> 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
> Assignee: Chris Sampson
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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)