Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-2735

CliUtil.isGfshVM is not thread-safe and unnecessary

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • gfsh
    • None

    Description

      The top of CliUtil defines:

      public static final String GFSHVM_IDENTIFIER = "gfsh";
      public static boolean isGfshVM = Boolean.getBoolean(GFSHVM_IDENTIFIER);
      

      Tests then set isGfshVM and unset that in setup/teardown. Various GFSH commands check the state of this boolean.

      It would be thread-safe if it were volatile, but I'd prefer to just get rid of this static variable.

      Attachments

        Activity

          People

            klund Kirk Lund
            klund Kirk Lund
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: