Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-14870

DNS cache never expires causing PR decoration to fail

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.9.1, 9.0
    • Component/s: Compute Engine
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      We introduced a Java Security Manager in v8.0. With a Security Manager installed, Java is caches positive DNS resolutions forever instead of a finite amount of time (30s in the implementations we've checked.)

      Services like devops platforms often regularly change IP addresses, so if SonarQube is not able to expire DNS cache entries, it will fail to connect to them once the IP address changes.

      We should explicitly set the DNS cache TTL to 30s for the Compute Engine process, where the security manager is currently used.
      It will only be done if it's not already set through a java security properties file, so users can still configure it for the JVM.

        Attachments

          Activity

            People

            Assignee:
            duarte.meneses Duarte Meneses
            Reporter:
            duarte.meneses Duarte Meneses
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: