[jira] [Updated] (CASSANDRASC-81) Improve TokenRangeReplicasResponse payload

2023-11-01 Thread Yifan Cai (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRASC-81?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yifan Cai updated CASSANDRASC-81:
-
  Fix Version/s: 1.0
Source Control Link: 
https://github.com/apache/cassandra-sidecar/commit/d8e9e2359db1f5561eb872d28ab16098b5a62c1d
 Resolution: Fixed
 Status: Resolved  (was: Ready to Commit)

> Improve TokenRangeReplicasResponse payload
> --
>
> Key: CASSANDRASC-81
> URL: https://issues.apache.org/jira/browse/CASSANDRASC-81
> Project: Sidecar for Apache Cassandra
>  Issue Type: Improvement
>  Components: Rest API
>Reporter: Francisco Guerrero
>Assignee: Francisco Guerrero
>Priority: Normal
>  Labels: pull-request-available
> Fix For: 1.0
>
>
> The {{TokenRangeReplicasResponse}} returns {{ReplicaMetadata}}. This 
> information is used by clients to lookup the metadata. The lookup is done 
> with the replica information, which consists of the host {{ip:port}}. Clients 
> are looping over the {{ReplicaMetadata}} list and matching IP and port to 
> retrieve the metadata object. Instead, we can improve the payload by changing 
> the data structure from a list to a map, and have clients lookup by the 
> replica (ip + port), without having to loop.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Updated] (CASSANDRASC-81) Improve TokenRangeReplicasResponse payload

2023-11-01 Thread Yifan Cai (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRASC-81?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yifan Cai updated CASSANDRASC-81:
-
Reviewers: Arjun Ashok, Dinesh Joshi, Yifan Cai  (was: Arjun Ashok, Yifan 
Cai)

> Improve TokenRangeReplicasResponse payload
> --
>
> Key: CASSANDRASC-81
> URL: https://issues.apache.org/jira/browse/CASSANDRASC-81
> Project: Sidecar for Apache Cassandra
>  Issue Type: Improvement
>  Components: Rest API
>Reporter: Francisco Guerrero
>Assignee: Francisco Guerrero
>Priority: Normal
>  Labels: pull-request-available
>
> The {{TokenRangeReplicasResponse}} returns {{ReplicaMetadata}}. This 
> information is used by clients to lookup the metadata. The lookup is done 
> with the replica information, which consists of the host {{ip:port}}. Clients 
> are looping over the {{ReplicaMetadata}} list and matching IP and port to 
> retrieve the metadata object. Instead, we can improve the payload by changing 
> the data structure from a list to a map, and have clients lookup by the 
> replica (ip + port), without having to loop.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Updated] (CASSANDRASC-81) Improve TokenRangeReplicasResponse payload

2023-11-01 Thread Yifan Cai (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRASC-81?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yifan Cai updated CASSANDRASC-81:
-
Status: Ready to Commit  (was: Review In Progress)

> Improve TokenRangeReplicasResponse payload
> --
>
> Key: CASSANDRASC-81
> URL: https://issues.apache.org/jira/browse/CASSANDRASC-81
> Project: Sidecar for Apache Cassandra
>  Issue Type: Improvement
>  Components: Rest API
>Reporter: Francisco Guerrero
>Assignee: Francisco Guerrero
>Priority: Normal
>  Labels: pull-request-available
>
> The {{TokenRangeReplicasResponse}} returns {{ReplicaMetadata}}. This 
> information is used by clients to lookup the metadata. The lookup is done 
> with the replica information, which consists of the host {{ip:port}}. Clients 
> are looping over the {{ReplicaMetadata}} list and matching IP and port to 
> retrieve the metadata object. Instead, we can improve the payload by changing 
> the data structure from a list to a map, and have clients lookup by the 
> replica (ip + port), without having to loop.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Updated] (CASSANDRASC-81) Improve TokenRangeReplicasResponse payload

2023-10-30 Thread Yifan Cai (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRASC-81?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yifan Cai updated CASSANDRASC-81:
-
Reviewers: Arjun Ashok, Yifan Cai
   Status: Review In Progress  (was: Patch Available)

In principle, I would prefer to not changing the code in sidecar for the 
purpose of improving the performance at the consumer. The consumer can build 
the map for lookup if desired. There is nothing wrong regarding the correctness 
of the response value of the endpoint. 

Given the new endpoint implementation is newly added and it is only used in 
cassandra analytics, I would consider it as a followup fix of the original 
JIRA, CASSANDRASC-60. 

+1 on the patch. 

Please attach the CI link. 

> Improve TokenRangeReplicasResponse payload
> --
>
> Key: CASSANDRASC-81
> URL: https://issues.apache.org/jira/browse/CASSANDRASC-81
> Project: Sidecar for Apache Cassandra
>  Issue Type: Improvement
>  Components: Rest API
>Reporter: Francisco Guerrero
>Assignee: Francisco Guerrero
>Priority: Normal
>  Labels: pull-request-available
>
> The {{TokenRangeReplicasResponse}} returns {{ReplicaMetadata}}. This 
> information is used by clients to lookup the metadata. The lookup is done 
> with the replica information, which consists of the host {{ip:port}}. Clients 
> are looping over the {{ReplicaMetadata}} list and matching IP and port to 
> retrieve the metadata object. Instead, we can improve the payload by changing 
> the data structure from a list to a map, and have clients lookup by the 
> replica (ip + port), without having to loop.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Updated] (CASSANDRASC-81) Improve TokenRangeReplicasResponse payload

2023-10-27 Thread Francisco Guerrero (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRASC-81?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Francisco Guerrero updated CASSANDRASC-81:
--
Test and Documentation Plan: Updated test cases to consume the new payload.
 Status: Patch Available  (was: In Progress)

PR: https://github.com/apache/cassandra-sidecar/pull/76

> Improve TokenRangeReplicasResponse payload
> --
>
> Key: CASSANDRASC-81
> URL: https://issues.apache.org/jira/browse/CASSANDRASC-81
> Project: Sidecar for Apache Cassandra
>  Issue Type: Improvement
>  Components: Rest API
>Reporter: Francisco Guerrero
>Assignee: Francisco Guerrero
>Priority: Normal
>  Labels: pull-request-available
>
> The {{TokenRangeReplicasResponse}} returns {{ReplicaMetadata}}. This 
> information is used by clients to lookup the metadata. The lookup is done 
> with the replica information, which consists of the host {{ip:port}}. Clients 
> are looping over the {{ReplicaMetadata}} list and matching IP and port to 
> retrieve the metadata object. Instead, we can improve the payload by changing 
> the data structure from a list to a map, and have clients lookup by the 
> replica (ip + port), without having to loop.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Updated] (CASSANDRASC-81) Improve TokenRangeReplicasResponse payload

2023-10-27 Thread Francisco Guerrero (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRASC-81?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Francisco Guerrero updated CASSANDRASC-81:
--
Change Category: Semantic
 Complexity: Low Hanging Fruit
Component/s: Rest API
 Status: Open  (was: Triage Needed)

> Improve TokenRangeReplicasResponse payload
> --
>
> Key: CASSANDRASC-81
> URL: https://issues.apache.org/jira/browse/CASSANDRASC-81
> Project: Sidecar for Apache Cassandra
>  Issue Type: Improvement
>  Components: Rest API
>Reporter: Francisco Guerrero
>Assignee: Francisco Guerrero
>Priority: Normal
>  Labels: pull-request-available
>
> The {{TokenRangeReplicasResponse}} returns {{ReplicaMetadata}}. This 
> information is used by clients to lookup the metadata. The lookup is done 
> with the replica information, which consists of the host {{ip:port}}. Clients 
> are looping over the {{ReplicaMetadata}} list and matching IP and port to 
> retrieve the metadata object. Instead, we can improve the payload by changing 
> the data structure from a list to a map, and have clients lookup by the 
> replica (ip + port), without having to loop.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Updated] (CASSANDRASC-81) Improve TokenRangeReplicasResponse payload

2023-10-27 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRASC-81?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated CASSANDRASC-81:
--
Labels: pull-request-available  (was: )

> Improve TokenRangeReplicasResponse payload
> --
>
> Key: CASSANDRASC-81
> URL: https://issues.apache.org/jira/browse/CASSANDRASC-81
> Project: Sidecar for Apache Cassandra
>  Issue Type: Improvement
>Reporter: Francisco Guerrero
>Assignee: Francisco Guerrero
>Priority: Normal
>  Labels: pull-request-available
>
> The {{TokenRangeReplicasResponse}} returns {{ReplicaMetadata}}. This 
> information is used by clients to lookup the metadata. The lookup is done 
> with the replica information, which consists of the host {{ip:port}}. Clients 
> are looping over the {{ReplicaMetadata}} list and matching IP and port to 
> retrieve the metadata object. Instead, we can improve the payload by changing 
> the data structure from a list to a map, and have clients lookup by the 
> replica (ip + port), without having to loop.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org