oveits / ProvisioningEngine

Ruby on Rails based ProvisioningEngine Frontend for provisioning of legacy systems via Apache Camel Backend (SOAP/XML+SPML+File import)
3 stars 6 forks source link

CSL9DEV rspec tests fail with "Import cancelled due to congestion" message in the OSV ProvisioningScripts log #40

Closed oveits closed 8 years ago

oveits commented 8 years ago

Found on

./startTests fails on the test On target solution 'CSL9DEV' initObj(Customer) via model initObj( obj: Customer, shall_exist_on_db: true, shall_exist_on_target: false ) should create the object with the right attributes in the database and de-provision the object, if it was provisioned If the test is repeated with

./startTests -e "On target solution 'CSL9DEV' initObj(Customer) via model initObj( obj: Customer, shall_exist_on_db: true, shall_exist_on_target: false ) should create the object with the right attributes in the database and de-provision the object, if it was provisioned"

then the tests succeeds.

We can see in the OSV's top command that the memory (10GB) is full. I am not sure, whether this is the reason. And I do not know, why the problem did not occur with 'abort' and now pops up after having changed 'abort' to 'raise'.

In the OSV ProvisioningScript/log/2016-02-24-17-20.517_bg_delete_ExampleCustomerV8.log, I had found the error message Import cancelled due to congestion; please try again when the system recovers.

CSL11 tests work with no problem.

oveits commented 8 years ago

I have increased the total memory of CSL9DEV from 10G to 12G.

oveits commented 8 years ago

Tried

$ ./startTests -e "On target solution 'CSL9DEV' initObj(Customer) via model initObj( obj: Customer, shall_exist_on_db: true, shall_exist_on_target: false ) should create the object with the right attributes in the database and de-provision the object, if it was provisioned" && ./startTests -e "On target solution 'CSL9DEV' initObj(Customer) via model initObj( obj: Customer, shall_exist_on_db: true, shall_exist_on_target: false ) should create the object with the right attributes in the database and de-provision the object, if it was provisioned"

without any problems.

Trying again with ./start_continuous_export_all.sh started twice on CSL9DEV:

$ ./startTests -e "On target solution 'CSL9DEV' initObj(Customer) via model initObj( obj: Customer, shall_exist_on_db: true, shall_exist_on_target: false ) should create the object with the right attributes in the database and de-provision the object, if it was provisioned" && ./startTests -e "On target solution 'CSL9DEV' initObj(Customer) via model initObj( obj: Customer, shall_exist_on_db: true, shall_exist_on_target: false ) should create the object with the right attributes in the database and de-provision the object, if it was provisioned"
oveits commented 8 years ago

Result: no problem, worked. Now: tried again, 3 times in a row. Still no problem. Then the full test was successful as well:

$ ./startTests
...
Finished in 28 minutes 50 seconds (files took 2.92 seconds to load)
105 examples, 0 failures

The low memory seems have been the cause of the problem. I will set the bug to resolved. It was not a bug, but a resource problem on the target.