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

As an JIRA Datacenter Administrator I want to trim all spaces in the cluster.properties file

XMLWordPrintable

    • 4
    • 5
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Problem Definition

      Currently Jira use values from cluster.properties as is.
      This leads to different problem with values in case of leading/trailing spaces.
      Eg:

      # This ID must be unique across the cluster
      jira.node.id = node1 
      

      Note there is a space in the end of 'node1 '.

      Example of problem

      • mismatch of data in clusternode and clusternodeheartbeat, which leads to cluster check errors.

      Suggested Solution

      Trim all spaces while parsing the file.

      Workaround

      Check and clean spaces manually

      grep -E '[a-z0-9]+[ ]+$' application-data/dc/node1/cluster.properties
      jira.node.id = node1
      

            Unassigned Unassigned
            ayakovlev@atlassian.com Andriy Yakovlev [Atlassian]
            Votes:
            11 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated: