[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17502870#comment-17502870 ] Tibor Repasi commented on CASSANDRA-16378: -- Thank you all for the support. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > Fix For: 4.1 > > Time Spent: 2h 50m > Remaining Estimate: 0h > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17502281#comment-17502281 ] Benjamin Lerer commented on CASSANDRA-16378: The patch looks good to me. :-) > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > Fix For: 4.x > > Time Spent: 2h 50m > Remaining Estimate: 0h > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17500536#comment-17500536 ] Berenguer Blasi commented on CASSANDRA-16378: - Was about to commit but will give time to [~blerer] in case he wants to do a last pass. Otherwise I will commit on Monday. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > Fix For: 4.x > > Time Spent: 2h 50m > Remaining Estimate: 0h > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17500444#comment-17500444 ] Ekaterina Dimitrova commented on CASSANDRA-16378: - CI LGTM too, +1. Thanks > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > Fix For: 4.x > > Time Spent: 2h 50m > Remaining Estimate: 0h > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17499912#comment-17499912 ] Berenguer Blasi commented on CASSANDRA-16378: - Test failures are the early termination known erros. The other only one looks unrelated to me. +1. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > Fix For: 4.x > > Time Spent: 2h 50m > Remaining Estimate: 0h > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17499797#comment-17499797 ] Tibor Repasi commented on CASSANDRA-16378: -- Thank you [~e.dimitrova], I've cherry picked your commit [be699f|https://github.com/apache/cassandra/commit/ab9fcbaf998fb584ae84d584c298af63fcbe699f] just partly, to not duplicate the entry in CHANGES.txt. Squashed and rebased onto trunk. Doc update ticket is open at CASSANDRA-17344. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > Time Spent: 2h 50m > Remaining Estimate: 0h > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17499724#comment-17499724 ] Ekaterina Dimitrova commented on CASSANDRA-16378: - I added a few comments and addressed them on this [branch|https://github.com/apache/cassandra/compare/trunk...ekaterinadimitrova2:CASSANDRA-16378] which is rebased on the latest trunk. Also added NEWS.txt and CHANGES.txt entry. Do we want to open a separate ticket to update the docs? Running Circle CI - [j8|https://app.circleci.com/pipelines/github/ekaterinadimitrova2/cassandra/1405/workflows/175baa89-6168-49e0-9e35-31e81ce122b2], [j11|https://app.circleci.com/pipelines/github/ekaterinadimitrova2/cassandra/1405/workflows/9e25aff4-f39e-46ee-931d-d30cb6396c7a] I can squash and commit tomorrow if no one has objection to the current state and CI us happy with us. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > Time Spent: 2h 40m > Remaining Estimate: 0h > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17499266#comment-17499266 ] Ekaterina Dimitrova commented on CASSANDRA-16378: - Alright, we had offline discussion with [~blerer] and I am fine with the current layout. I had different understanding about the VTs expectations. Unfortunately, I didn't have the time today to go through the patch again. I will take care tomorrow if nothing pops up again. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > Time Spent: 2h 40m > Remaining Estimate: 0h > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17498794#comment-17498794 ] Benjamin Lerer commented on CASSANDRA-16378: [~e.dimitrova] The patch add a single column and I do not believe that changing the layout make sense. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > Time Spent: 2h 40m > Remaining Estimate: 0h > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17498348#comment-17498348 ] Ekaterina Dimitrova commented on CASSANDRA-16378: - I decided to start an instance of Cassandra to see how the table looks like now. Unfortunately, it became too wide and rows span in a few rows. This will be hard to read. I need to think about it a bit more. I will continue on Monday. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > Time Spent: 2h 40m > Remaining Estimate: 0h > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17497575#comment-17497575 ] Ekaterina Dimitrova commented on CASSANDRA-16378: - I guess I misunderstood [~blerer]'s request for a second reviewer as if he is already +1. I will take it tomorrow. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > Time Spent: 2h 40m > Remaining Estimate: 0h > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17494374#comment-17494374 ] Berenguer Blasi commented on CASSANDRA-16378: - Correct but I think [~blerer] is overloaded so was wondering if sbdy else could lend a hand. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > Time Spent: 2h 40m > Remaining Estimate: 0h > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17493910#comment-17493910 ] Ekaterina Dimitrova commented on CASSANDRA-16378: - I think @Benjamin was looking for second reviewer so you don’t need another one after your review. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > Time Spent: 2h 40m > Remaining Estimate: 0h > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17493685#comment-17493685 ] Berenguer Blasi commented on CASSANDRA-16378: - Hi [~rtib] , thanks a lot for your work! I have moved the ticket status for visibility and we'll now wait for somebody else to chime in. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > Time Spent: 2h 40m > Remaining Estimate: 0h > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17492519#comment-17492519 ] Berenguer Blasi commented on CASSANDRA-16378: - CI failures look unrelated to me. We need another committer to review now. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > Time Spent: 1h 50m > Remaining Estimate: 0h > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17492385#comment-17492385 ] Berenguer Blasi commented on CASSANDRA-16378: - [~rtib] thanks for adding that nice test that quick :-) I added a nit and fired a CI run [here|https://ci-cassandra.apache.org/job/Cassandra-devbranch/1427/] to see how it goes. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > Time Spent: 1h 50m > Remaining Estimate: 0h > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17491745#comment-17491745 ] Ekaterina Dimitrova commented on CASSANDRA-16378: - Just started reviewing on Friday and life happened... didn't get to anything, got interrupted. I can continue on Tuesday if no one gets to it before me. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > Time Spent: 50m > Remaining Estimate: 0h > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17491150#comment-17491150 ] Ekaterina Dimitrova commented on CASSANDRA-16378: - Hey [~paulo], I see you mentioned as a second reviewer, do you still plan to review it or should [~Bereng] (for example) steal it? :D > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > Time Spent: 40m > Remaining Estimate: 0h > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > It would be helpful to exposed 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. To 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}} optionsneed 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17486376#comment-17486376 ] Tibor Repasi commented on CASSANDRA-16378: -- CASSANDRA-17344 is open and linked to the according PR. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > Time Spent: 40m > Remaining Estimate: 0h > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > It would be helpful to exposed 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. To 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}} optionsneed 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17486351#comment-17486351 ] Benjamin Lerer commented on CASSANDRA-16378: We can do a separate ticket for the documentation :-) > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > Time Spent: 40m > Remaining Estimate: 0h > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > It would be helpful to exposed 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. To 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}} optionsneed 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17485138#comment-17485138 ] Tibor Repasi commented on CASSANDRA-16378: -- At commit [#e7ad|https://github.com/rtib/cassandra/commit/78a069a331da1b36ef1138a3b3dfc757a1a2e7ad] I've updated the according documentation page, but I'm afraid that this one will need further review, as many things have changed since this page was written and page might be moved as with 4.1 virtual tables won't be new anymore. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > Time Spent: 40m > Remaining Estimate: 0h > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > It would be helpful to exposed 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. To 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}} optionsneed 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17484850#comment-17484850 ] Benjamin Lerer commented on CASSANDRA-16378: Sorry [~rtib]. I got overloaded and lost track of your work. [~paulo] Would you have time for the second review? > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > Time Spent: 40m > Remaining Estimate: 0h > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > It would be helpful to exposed 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. To 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}} optionsneed 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17484825#comment-17484825 ] Tibor Repasi commented on CASSANDRA-16378: -- Hi [~blerer] , the PR is ready for review. What's the next step? > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > Time Spent: 40m > Remaining Estimate: 0h > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > It would be helpful to exposed 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. To 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}} optionsneed 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17463777#comment-17463777 ] Benjamin Lerer commented on CASSANDRA-16378: {quote}what is {{MultiCell}} and why is it needed to be false?{quote} At the CQL level {{MultiCell = false}} means a frozen collection and {{MultiCell = true}} an unfrozen collection. At the storage level all the elements of a frozen collection are stored together within the same {{Cell}} (set of bytes). An unfrozen collection has a cell for each of its elements allowing partial update or partial retrieval. Virtual Tables do not support unfrozen collections as it was not really needed so far. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > It would be helpful to exposed 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. To 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}} optionsneed 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17463358#comment-17463358 ] Tibor Repasi commented on CASSANDRA-16378: -- Finally, nodetool can also expose the options (admittedly, is not very pretty) {code} % bin/nodetool clientstats --all Address SSL CipherProtocol Version User Keyspace Requests Driver-Name Driver-Version Client-Options localhost/127.0.0.1:50576 false undefined undefined 5 anonymous 3DataStax Python Driver 3.25.0 {"DRIVER_VERSION":"3.25.0","DRIVER_NAME":"DataStax Python Driver","CQL_VERSION":"3.4.5"} /127.0.0.1:50594 false undefined undefined 5 anonymous 3DataStax Java driver for Apache Cassandra(R) 4.13.0 {"DRIVER_NAME":"DataStax Java driver for Apache Cassandra(R)","APPLICATION_VERSION":"1.2.3","DRIVER_VERSION":"4.13.0","CLIENT_ID":"e502fa5a-7e63-4c30-b960-7b41870a8bd9","APPLICATION_NAME":"TestApp","CQL_VERSION":"3.0.0"} localhost/127.0.0.1:50575 false undefined undefined 5 anonymous 16 DataStax Python Driver 3.25.0 {"DRIVER_VERSION":"3.25.0","DRIVER_NAME":"DataStax Python Driver","CQL_VERSION":"3.4.5"} /127.0.0.1:50593 false undefined undefined 5 anonymous 18 DataStax Java driver for Apache Cassandra(R) 4.13.0 {"DRIVER_NAME":"DataStax Java driver for Apache Cassandra(R)","APPLICATION_VERSION":"1.2.3","DRIVER_VERSION":"4.13.0","CLIENT_ID":"e502fa5a-7e63-4c30-b960-7b41870a8bd9","APPLICATION_NAME":"TestApp","CQL_VERSION":"3.0.0"} Total connected clients: 4 User Connections anonymous 4 {code} > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > It would be helpful to exposed 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. To 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}} optionsneed 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17463322#comment-17463322 ] Tibor Repasi commented on CASSANDRA-16378: -- Help needed. I didn't found any example to add a collection type to a virtual table. My approach to add a column of CQL type {{map}} to the clients table is like: {code:java} ClientsTable(String keyspace) { super(TableMetadata.builder(keyspace, "clients") ... .addRegularColumn(CLIENT_OPTIONS, MapType.getInstance(UTF8Type.instance, UTF8Type.instance, true)) ... {code} filling it with data: {code:java} public DataSet data() ... result.row(remoteAddress.getAddress(), remoteAddress.getPort()) ... .column(CLIENT_OPTIONS, client.clientOptions()) {code} where ConnectedClient#clientOptions() is returning a {{Map}}. Unfortunately, querying that column ends up with {code:java} ERROR [Native-Transport-Requests-1] 2021-12-21 16:26:29,828 ExceptionHandlers.java:230 - Unexpected exception during request; channel = [id: 0x13828495, L:/127.0.0.1:9042 - R:localhost/127.0.0.1:64184] java.lang.AssertionError: Column system_views.clients(client_options: org.apache.cassandra.db.marshal.MapType(org.apache.cassandra.db.marshal.UTF8Type,org.apache.cassandra.db.marshal.UTF8Type)) isComplex: true with cellpath: null at org.apache.cassandra.db.rows.BufferCell.(BufferCell.java:48) at org.apache.cassandra.db.rows.BufferCell.live(BufferCell.java:63) at org.apache.cassandra.db.rows.BufferCell.live(BufferCell.java:58) at org.apache.cassandra.db.virtual.SimpleDataSet$Row.lambda$toTableRow$0(SimpleDataSet.java:193) at java.base/java.lang.Iterable.forEach(Iterable.java:75) at org.apache.cassandra.db.virtual.SimpleDataSet$Row.toTableRow(SimpleDataSet.java:189) at org.apache.cassandra.db.virtual.SimpleDataSet$SimplePartition$1.computeNext(SimpleDataSet.java:155) at org.apache.cassandra.db.virtual.SimpleDataSet$SimplePartition$1.computeNext(SimpleDataSet.java:148) {code} What is issue I can't see? > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > It would be helpful to exposed 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. To 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}} optionsneed 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17460963#comment-17460963 ] Benjamin Lerer commented on CASSANDRA-16378: {quote}As a reasonable alternative, we could capture all options from STARTUP MESSAGE into a hash and output that via the clients virtual table as a collection. That could be more versatile but add more complexity. That would also need to clarify of transporting all options or just those not consumed otherwise.{quote} I like that approach. Regarding your question about testing, I looked into it and unfortunately the driver version used withing the C* code base do not support that option. Upgrading might be a bit complicated so I am fine with testing it manually for now. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > It would be helpful to exposed 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. To 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}} optionsneed 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17460437#comment-17460437 ] Tibor Repasi commented on CASSANDRA-16378: -- As a reasonable alternative, we could capture all options from STARTUP MESSAGE into a hash and output that via the clients virtual table as a collection. That could be more versatile but add more complexity. That would also need to clarify of transporting all options or just those not consumed otherwise. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > It would be helpful to exposed 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. To 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}} optionsneed 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17460154#comment-17460154 ] Sam Tunnicliffe commented on CASSANDRA-16378: - Yep, I understand the motivation and how {{StartupMessage}} handles the unknown options. Essentially, all I'm saying is that the identifier the client supplies here may include more than just the "name" of the app, so why not name it accordingly. For example, if the way you identify your application has 3 elements, like {{{}Name{}}}, {{Version}} and {{{}Environment{}}}, you'd probably end up encoding multiple items together like: {{APPLICATION_NAME: someapp/qa, APPLICATION_VERSION: 1.0}} {{APPLICATION_NAME: someapp/prod, APPLICATION_VERSION: 1.0}} in which case isn't it more accurate to represent it: {{APPLICATION_ID: someapp/prod, APPLICATION_VERSION: 1.0}} It's a pretty minor consideration at the end of the day, but as we have a free choice of which name to pick it feels worth raising the question. Finally, maybe it's too extreme for some tastes, but you could go further and combine the app version into the identifier, seeing as that too is completely opaque from a Cassandra perspective. {{APPLICATION_ID: someapp/prod;1.0}} For this last part though, you would need to do some munging on the server side to consume the name/version pairs that some clients will be already sending, so maybe it's not worth the effort. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > It would be helpful to exposed 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. To 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}} optionsneed 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17460113#comment-17460113 ] Tibor Repasi commented on CASSANDRA-16378: -- As I understood the [native_protocol_v5.spec|https://github.com/apache/cassandra/blob/trunk/doc/native_protocol_v5.spec], the list of options is already arbitrary, which is comparable to HTTP X-Headers. StartupMessage is a codec that decodes the payload to get all the supported options. DataStax has extended the java-driver to send application_name and application_version options along. Somewhere I've seen that SpringBoot automatically fills in these properties, thus they are available, but not yet appreciated by Apache Cassandra. When the applications connecting to the Cassandra clusters I run started to move from named on-prem hosts to Kubernetes, I was wondering how do I find out which applications are connecting now, as the far side tcp endpoints moved to some arbitrary worker nodes which may run other applications as well. So the main objective from the operators point of view is to improve visibility by exposing what's already provided. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > It would be helpful to exposed 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. To 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}} optionsneed 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17459751#comment-17459751 ] Sam Tunnicliffe commented on CASSANDRA-16378: - Apologies for the drive-by comment, but I wonder if rather than a pre-defined set of attributes on the Cassandra side ({{{}APPLICATION_NAME{}}} and {{{}APPLICATION_VERSION{}}}), it might be better to define a single, opaque identifier into which clients can encode whatever info they need to track according to their specific deployment model(s). Basically, I'm suggesting the equivalent of HTTP's {{User-Agent}} header. This may not be _as_ directly queryable via the system table, but it pre-empts and makes explicit what would need to happen for any model that isn't simply "name + version". I would argue that the driver ought to adopt the same approach in future and that in the meantime and for backwards compatibility we compose the identifier string by concatenating {{APPLICATION_NAME}} and {{{}APPLICATION_VERSION{}}}. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > It would be helpful to exposed 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. To 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}} optionsneed 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-16378) Expose application_name and application_version in virtual table system_views.clients
[ https://issues.apache.org/jira/browse/CASSANDRA-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17459440#comment-17459440 ] Tibor Repasi commented on CASSANDRA-16378: -- The additional information has lowered the threshold to attack my first contribution to Cassandra. I've added most of the necessary things as described without breaking any unit tests so far. Linked the PR. Got stuck with the unit test, which I'd appreciate some hints how I can inject driver attributes into the session to assert the contents of the virtual table. Still a question if nodetool would need change to expose the data on the command line. > Expose application_name and application_version in virtual table > system_views.clients > - > > Key: CASSANDRA-16378 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16378 > Project: Cassandra > Issue Type: Improvement > Components: Feature/Virtual Tables >Reporter: Tibor Repasi >Assignee: Tibor Repasi >Priority: Normal > Labels: AdventCalendar2021, gsoc2021, lhf, mentor > > Recent java-driver's > [com.datastax.oss.driver.api.core.session.SessionBuilder|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html] > respects properties > [ApplicationName|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationName-java.lang.String-] > and > [ApplicationVersion|https://docs.datastax.com/en/drivers/java/4.9/com/datastax/oss/driver/api/core/session/SessionBuilder.html#withApplicationVersion-java.lang.String-]. > It would be helpful to exposed 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. To 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}} optionsneed 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. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org