Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-4504

running examples creates unexpected dirs/files (or shows failure trying)

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.31.2
    • 2.32.0
    • None
    • None

    Description

      Running one of the examples with e.g mvn verify will typically create and leave behind an unexpected sub directory within the example source dir called "${sys:artemis.instance}/log" with [empty] artemis.log and audit.log files inside. Alternatively, on some systems it may instead fail while trying to do this and display an error message about it.

      This happens because the plugin used by the examples first creates a broker instance within the target directory, prompting creation of a related log4j2.properties file, then at the end of the example the plugin is again used to run the CLI stop command to shut down the broker, the process for which currently runs the CLI class directly without some of the configuration properties the CLI script normally sets, and in doing this puts the broker instance log42.properties file on the classpath and then causes log4j to be initialised which leads to the erroneous dir+file creation due to the missing props. We can resolve this by updating the example/plugin to call the CLI script such that the needed config is actually present.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            robbie Robbie Gemmell
            robbie Robbie Gemmell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h

                Slack

                  Issue deployment