Project

General

Profile

Actions

Bug #13733

closed

On small hardware, datasource test timeout

Added by François ARMAND over 5 years ago. Updated about 4 years ago.

Status:
Released
Priority:
N/A
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

On a small machine, we get a timeout like:;

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.normation.plugins.datasources.api.RestDataSourceTest
error while interpreting an action org.specs2.control.UserException: cannot create an instance for class com.normation.plugins.datasources.api.RestDataSourceTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.184 sec - in com.normation.plugins.datasources.api.RestDataSourceTest
Running com.normation.plugins.datasources.UpdateHttpDatasetTest
[2018-10-25 14:13:11] ERROR datasources - Error when fetching data from data source 'test-my-datasource' (test-lot-of-nodes-GET) for all nodes <- Futures timed out after [30 seconds]
[2018-10-25 14:13:11] ERROR com.normation.plugins.datasources.UpdateHttpDatasetTest - I wasn't expecting the failure: Futures timed out after [30 seconds]
java.util.concurrent.TimeoutException: Futures timed out after [30 seconds]
    at scala.concurrent.impl.Promise$DefaultPromise.ready(Promise.scala:255)
    at scala.concurrent.impl.Promise$DefaultPromise.result(Promise.scala:259)
....
[2018-10-25 14:13:41] ERROR datasources - Error when fetching data from data source 'test-my-datasource' (test-lot-of-nodes-POST) for all nodes <- Futures timed out after [30 seconds]
[2018-10-25 14:13:41] ERROR com.normation.plugins.datasources.UpdateHttpDatasetTest - I wasn't expecting the failure: Futures timed out after [30 seconds]
java.util.concurrent.TimeoutException: Futures timed out after [30 seconds]
    at scala.concurrent.impl.Promise$DefaultPromise.ready(Promise.scala:255)
...

Either we need to make less nodes (perhaps 100 is suffuciant), or give more time to finish.

Actions

Also available in: Atom PDF