You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Gábor Gyimesi (Jira)" <ji...@apache.org> on 2022/08/29 15:43:00 UTC
[jira] [Assigned] (MINIFICPP-1931) ResourceQueueTests fails occasionally
[ https://issues.apache.org/jira/browse/MINIFICPP-1931?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gábor Gyimesi reassigned MINIFICPP-1931:
----------------------------------------
Assignee: Gábor Gyimesi
> ResourceQueueTests fails occasionally
> -------------------------------------
>
> Key: MINIFICPP-1931
> URL: https://issues.apache.org/jira/browse/MINIFICPP-1931
> Project: Apache NiFi MiNiFi C++
> Issue Type: Bug
> Reporter: Ferenc Gerlits
> Assignee: Gábor Gyimesi
> Priority: Minor
>
> As of 2022-08-29, on the main branch,
> {noformat}
> ctest --repeat-until-fail 100 -R ResourceQueueTests
> {noformat}
> fails every time I run it, sometimes on the 5th run, sometimes after more than 30.
> This was the failing test case in all 3 times I checked:
> {noformat}
> -------------------------------------------------------------------------------
> maximum_number_of_creatable_resources
> Maximum 2 resources
> -------------------------------------------------------------------------------
> /home/fgerlits/src/minifi2/libminifi/test/unit/ResourceQueueTests.cpp:43
> ...............................................................................
> /home/fgerlits/src/minifi2/libminifi/test/unit/ResourceQueueTests.cpp:54: FAILED:
> CHECK( resources_created.size() <= 2 )
> with expansion:
> 3 <= 2
> {noformat}
> I suspect the problem is with the test, not with the class under test, as the logs look healthy:
> {noformat}
> [2022-08-29 14:05:13.590] [LogTestController] [info] Setting log level for org::apache::nifi::minifi::utils::ResourceQueue<int> to trace
> [2022-08-29 14:05:13.590] [org::apache::nifi::minifi::utils::ResourceQueue<int>] [debug] Created new [0x7f3a90000b60] resource instance. Num
> ber of instances: 1 / 2.
> [2022-08-29 14:05:13.590] [org::apache::nifi::minifi::utils::ResourceQueue<int>] [debug] Created new [0x7f3a88000b60] resource instance. Num
> ber of instances: 2 / 2.
> [2022-08-29 14:05:13.590] [org::apache::nifi::minifi::utils::ResourceQueue<int>] [debug] Waiting for resource
> [2022-08-29 14:05:13.600] [org::apache::nifi::minifi::utils::ResourceQueue<int>] [debug] Returning [0x7f3a90000b60] resource
> [2022-08-29 14:05:13.601] [org::apache::nifi::minifi::utils::ResourceQueue<int>] [debug] Returning [0x7f3a88000b60] resource
> [2022-08-29 14:05:13.611] [org::apache::nifi::minifi::utils::ResourceQueue<int>] [debug] Returning [0x7f3a90000b60] resource
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)