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

Availability is wrong on some commands.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • 1.7.0
    • gfsh
    • None

    Description

      For example, look at any JDBC connector commands or ListJndiBindingCommand and could be more. When you launch gfsh (and not connected) then you can see these commands are available.

      create jdbc-connection (Available)
      (Experimental) Create a connection for communicating with a database through jdbc.
      create jdbc-mapping (Available)
      (Experimental) Create a mapping for a region for use with a JDBC database connection.

      There is a test to test the availability marker but the test itself has a bug due to which the command authors are not warned about the marker. Look into CommandAvailabilityIndicatorTest

      if (cliMetaData != null && !cliMetaData.shellOnly()) -> here cliMetaData could be null if the command author forget to annotate the command.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sboorlagadda Sai Boorlagadda
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: