OracleAlerter receives wrong Alert
Posted: Fri 14 Mar 2014 10:53
Hi,
We ran into a bug with OracleAlerter: In a Testenvironment about 150 Alerts were set up. During testing we simulate network problems to test if our components built on top devart deal with connection problems and reconnect automatically.
Once connectivity was restored we ran into the problem that although we could recreate all 150 Alerts we received wrong Alerts in some of our OracleAlerters.
Take this for example:
Alert1 still received Alert1
Alert2 suddenly received Alert3 as well
Alert3 suddenly received Alert2 as well
Alert4 still received Alert4
In debug we can see that OracleAlerter.AlertName is set to Alert2 but in the raised event we get Alert3 - so basically the sender in SetupAlerter_OnAlerter doesn't match the OracleAlerterAlertEventArgs ...
...and in PseudoCode:
Could it be that recycled connections from the pool are used which are still registered to their prior alerts?
We ran into a bug with OracleAlerter: In a Testenvironment about 150 Alerts were set up. During testing we simulate network problems to test if our components built on top devart deal with connection problems and reconnect automatically.
Once connectivity was restored we ran into the problem that although we could recreate all 150 Alerts we received wrong Alerts in some of our OracleAlerters.
Take this for example:
Alert1 still received Alert1
Alert2 suddenly received Alert3 as well
Alert3 suddenly received Alert2 as well
Alert4 still received Alert4
In debug we can see that OracleAlerter.AlertName is set to Alert2 but in the raised event we get Alert3 - so basically the sender in SetupAlerter_OnAlerter doesn't match the OracleAlerterAlertEventArgs ...
Code: Select all
private void SetupAlerter_OnAlert(object sender, OracleAlerterAlertEventArgs e)
{
OnAlert(e.AlertName, e.AlertMessage);
}
Code: Select all
((OracleAlerter)sender).AlertName != e.AlertName