Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-16378

Expose application_name and application_version in virtual table system_views.clients

    XMLWordPrintableJSON

Details

    Description

      Recent java-driver's com.datastax.oss.driver.api.core.session.SessionBuilder respects properties ApplicationName and ApplicationVersion.

      It would be helpful to expose this information via virtual table system_views.clients and with nodetool clientstats.

      Additional information for newcomers:

      The drivers can send as part of the STARTUP MESSAGE the APPLICATION_NAME and APPLICATION_VERSION options. Two new volatile fields applicationName and applicationVersion need to be added to ClientState in a similar way to driverName and driverVersion.
      The APPLICATION_NAME and APPLICATION_VERSION options need to be retrieved in StartupMessage#execute and passed to the ClientState.
      The new application_name and application_version columns need to be added to the system_views.clients represented by the ClientsTable class. The data then need to be retrieved from the ClientState through ConnectedClient.
      Some unit tests similat to SettingsTableTest should be added.

      Attachments

        Issue Links

          Activity

            People

              rtib Tibor Repasi
              rtib Tibor Repasi
              Tibor Repasi
              Benjamin Lerer, Berenguer Blasi, Ekaterina Dimitrova
              Votes:
              0 Vote for this issue
              Watchers:
              6 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 - 3h
                  3h