Bug 48603

Summary: Mailer Visualiser sends two emails for a single failed response
Product: JMeter Reporter: Jatin <daveyjatin>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal CC: daveyjatin
Priority: P2    
Version: 2.3.4   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Jatin 2010-01-24 02:13:26 UTC
The test plan was designed as below :

One JDBC request sent to the database querying for some data tables and an assertion for it. Based on the assertion the results obtained were either passed of failed. There was a listener added to the test plan as mailer visualizer which was configured to send a mail when the results fails. 

Had failed a response and received two emails instead of one. In the mailer visualizer i had it configured 0 as the limit to the number of failures, hence it should have just sent one mail when a failure occurs. Instead two mails are being sent.

this must be corrected as one failure should result in sending only one email and two. Please revert back to me if anymore inputs are required.
Comment 1 Jatin 2010-01-24 08:10:26 UTC
(In reply to comment #0)
> The test plan was designed as below :
> 
> One JDBC request sent to the database querying for some data tables and an
> assertion for it. Based on the assertion the results obtained were either
> passed of failed. There was a listener added to the test plan as mailer
> visualizer which was configured to send a mail when the results fails. 
> 
> Had failed a response and received two emails instead of one. In the mailer
> visualizer i had it configured 0 as the limit to the number of failures, hence
> it should have just sent one mail when a failure occurs. Instead two mails are
> being sent.
> 
> this must be corrected as one failure should result in sending only one email
> and not two. Please revert back to me if anymore inputs are required.
Comment 2 Sebb 2010-01-24 08:29:21 UTC
Confirmed that the problem exists with any sampler (not just JDBC) and was also present in version 2.3.3, possibly earlier.
Comment 3 Sebb 2010-01-24 09:22:35 UTC
URL: http://svn.apache.org/viewvc?rev=902601&view=rev
Log:
Bug 48603 - Mailer Visualiser sends two emails for a single failed response

Modified:
   jakarta/jmeter/trunk/src/components/org/apache/jmeter/reporters/MailerModel.java
   jakarta/jmeter/trunk/src/components/org/apache/jmeter/reporters/MailerResultCollector.java
   jakarta/jmeter/trunk/xdocs/changes.xml