Ferenc Gerlits created MINIFICPP-2898:
-----------------------------------------

             Summary: Fetch/PutOpcProcessorTests fail occasionally
                 Key: MINIFICPP-2898
                 URL: https://issues.apache.org/jira/browse/MINIFICPP-2898
             Project: Apache NiFi MiNiFi C++
          Issue Type: Improvement
            Reporter: Ferenc Gerlits


Both the FetchOpcProcessorTests and the PutOpcProcessorTests fail from time to 
time. For example,
{noformat}
ctest -R FetchOpcProcessorTests --output-on-failure --repeat until-fail:100 
{noformat}
fails about half the time, and
{noformat}
ctest -R FetchOpcProcessorTests --output-on-failure --repeat until-fail:1000  
{noformat}
failed every time I ran it on my machine. Same is true of PutOpcProcessorTests.

The failure looks like this:
{noformat}
-----------------------------------------------------------------------------
Test fetch for nodes with changed timestamps with lazy mode
-----------------------------------------------------------------------------
/home/fgerlits/src/minifi2/extensions/opc/tests/FetchOpcProcessorTests.cpp:205
.............................................................................

/home/fgerlits/src/minifi2/extensions/opc/tests/OpcUaTestServer.h:183: FAILED:
  REQUIRE( utils::verifyEventHappenedInPollTime( 5s, [&]() { auto logs = 
getLogs(); return std::find_if(logs.begin(), logs.end(), [](const std::string& 
message) { return message.find("New DiscoveryUrl added") != 
std::string::npos;}) != logs.end(); }, 100ms) )
with expansion:
  false {noformat}
If I increase the timeout from 5s to 10s, the failures go away, but I don't 
think that is the correct way of fixing this, since 5 seconds is already a very 
long time.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to