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

XMLWordPrintable

    • 5
    • 24

      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
      

            Assignee:
            Unassigned
            Reporter:
            Andriy Yakovlev [Atlassian]
            Votes:
            11 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated: