Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-77559

OutgoingMailServerConnectionIpdJob in 'In product diagnostics' (IPD) runs every minute and sends EHLO requests to the SMTP server from each node

      Issue Summary

      OutgoingMailServerConnectionIpdJob in 'In product diagnostics' (IPD) runs every minute and sends EHLO requests to the SMTP server, regardless if Jira is sending email or regardless of the what the interval for the MailQueueService is.

      The issue is multiplied by the number of nodes in a cluster as each node would be sending such EHLO requests to the mail server, thus, making it look like a spam attack or causing excessive logging overhead on the mail servers

      This is reproducible on Data Center: Yes

      Steps to Reproduce

      1. Deploy a Jira DC 9.12 or above - 2 nodes will do
      2. Add -Dmail.debug=true to the startup parameters, restart the nodes for the parameter to take effect
      3. add com.atlassian.jira.ipd as a logging package with increased DEBUG log level under logging and profiling in Jira
      4. configure SMTP server
      5. monitor catalina.out file for the occurences of EHLO messages (e.g. tail -f catalina.out | grep EHLO) on each node

      Expected Results

      • EHLO messages would at least only happen from one node only (i.e. it should be coordinated through clusteredjob or another mechanism) and at a less frequent interval
      • Ideally the IPD or OutgoingMailServerConnectionIpdJob interval should be configurable

      Actual Results

      Jira sends EHLO requests to the SMTP server every minute from each node, these would be evident in catalina.out:

      EHLO ip-Jira-Node-IP-address
      EHLO ip-Jira-Node-IP-address

      The following log entries will appear in atlassian-jira.log at the same time:

      2024-03-19 14:42:41,938+1100 ipd-worker:thread-1 DEBUG [c.a.d.internal.ipd.DefaultIpdJobRunner] Running job com.atlassian.jira.ipd.mailqueue.MailQueueJobRunningInProductDiagnosticJob
      2024-03-19 14:42:41,939+1100 ipd-worker:thread-1 DEBUG [c.a.d.internal.ipd.DefaultIpdJobRunner] Running job com.atlassian.jira.ipd.db.DatabaseConnectionStateInProductDiagnosticJob
      2024-03-19 14:42:41,939+1100 ipd-worker:thread-1 DEBUG [c.a.d.internal.ipd.DefaultIpdJobRunner] Running job com.atlassian.jira.ipd.db.DatabaseLatencyInProductDiagnosticJob
      2024-03-19 14:42:41,940+1100 ipd-worker:thread-1 DEBUG [c.a.d.internal.ipd.DefaultIpdJobRunner] Running job com.atlassian.jira.ipd.mailqueue.MailQueueItemsJob
      2024-03-19 14:42:41,940+1100 ipd-worker:thread-1 DEBUG [c.a.d.internal.ipd.DefaultIpdJobRunner] Running job com.atlassian.jira.ipd.mail.OutgoingMailServerConnectionIpdJob

      Workaround

      Apart from disabling the IPD completely via Jira UI - there is no other workaround available at the moment

            [JRASERVER-77559] OutgoingMailServerConnectionIpdJob in 'In product diagnostics' (IPD) runs every minute and sends EHLO requests to the SMTP server from each node

            SET Analytics Bot made changes -
            Support reference count Original: 2 New: 3
            Chung Park Chan made changes -
            Labels Original: FY24RRC support-required New: FY24RRC
            SET Analytics Bot made changes -
            Support reference count Original: 1 New: 2
            Oleksandr Tkachenko made changes -
            Labels Original: FY24RRC New: FY24RRC support-required
            David Di Blasio made changes -
            Remote Link Original: This issue links to "Page (Confluence)" [ 914420 ]
            David Di Blasio made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 914420 ]
            Sergey made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 896163 ]
            Oleksandr Tkachenko made changes -
            Labels New: FY24RRC
            Mikolaj Zyromski made changes -
            Status Original: Needs Triage [ 10030 ] New: Gathering Impact [ 12072 ]
            Bugfix Automation Bot made changes -
            Introduced in Version Original: 9.14 New: 9.11

              Unassigned Unassigned
              soslopov Sergey
              Affected customers:
              1 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated: