Files
scylladb/api
Patryk Wrobel 3842bf18a7 storage_service/range_to_endpoint_map: allow API to properly handle tablets
This API endpoint was failing when tablets were enabled
because of usage of get_vnode_effective_replication_map().
Moreover, it was providing an error message that was not
user-friendly.

This change extends the handler to properly service the incoming requests.
Furthermore, it introduces two new test cases that verify the behavior of
storage_service/range_to_endpoint_map API. It also adjusts the test case
of this endpoint for vnodes to succeed when tablets are enabled by default.

The new logic is as follows:
 - when tablets are disabled then users may query endpoints
   for a keyspace or for a given table in a keyspace
 - when tablets are enabled then users have to provide
   table name, because effective replication map is per-table

When user does not provide table name when tablets are enabled
for a given keyspace, then BAD_REQUEST is returned with a
meaningful error message.

Fixes: scylladb#17343

Signed-off-by: Patryk Wrobel <patryk.wrobel@scylladb.com>

Closes scylladb/scylladb#17372
2024-02-18 19:21:53 +02:00
..
2024-01-25 11:28:02 +03:00
2024-01-25 11:28:02 +03:00
2024-01-25 11:28:02 +03:00
2024-01-25 11:28:02 +03:00
2024-01-25 11:28:02 +03:00
2024-01-25 11:28:02 +03:00
2024-01-25 11:28:02 +03:00
2024-01-25 11:28:02 +03:00
2024-01-25 11:28:02 +03:00