mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-19 16:15:07 +00:00
Until now, only singular ranges were present in tracing, and, what's
more, their tracing message suggested that the range is not singular:
Start querying the token range that starts with (...)
This commit makes the message more specific and also provides
a corresponding tracing message to non-singular ranges.
Example for a singular range:
activity | timestamp | source | source_elapsed | client
----------------------------------------------------------------------------------------------------------------------------------+----------------------------+-----------+----------------+-----------
Execute CQL3 query | 2020-08-07 13:11:55.479000 | 127.0.0.1 | 0 | 127.0.0.1
Parsing a statement [shard 0] | 2020-08-07 13:11:55.479616 | 127.0.0.1 | -- | 127.0.0.1
Processing a statement [shard 0] | 2020-08-07 13:11:55.479695 | 127.0.0.1 | 80 | 127.0.0.1
Creating read executor for token -7160136740246525330 with all: {127.0.0.1} targets: {127.0.0.1} repair decision: NONE [shard 0] | 2020-08-07 13:11:55.479747 | 127.0.0.1 | 132 | 127.0.0.1
read_data: querying locally [shard 0] | 2020-08-07 13:11:55.479752 | 127.0.0.1 | 137 | 127.0.0.1
Start querying singular range {{-7160136740246525330, pk{00040000002a}}} [shard 0] | 2020-08-07 13:11:55.479758 | 127.0.0.1 | 143 | 127.0.0.1
Querying is done [shard 0] | 2020-08-07 13:11:55.479816 | 127.0.0.1 | 201 | 127.0.0.1
Done processing - preparing a result [shard 0] | 2020-08-07 13:11:55.479844 | 127.0.0.1 | 229 | 127.0.0.1
Request complete | 2020-08-07 13:11:55.479238 | 127.0.0.1 | 238 | 127.0.0.1
Example for nonsingular range:
activity | timestamp | source | source_elapsed | client
------------------------------------------------------------+----------------------------+-----------+----------------+-----------
Execute CQL3 query | 2020-08-07 13:13:47.189000 | 127.0.0.1 | 0 | 127.0.0.1
Parsing a statement [shard 0] | 2020-08-07 13:13:47.189259 | 127.0.0.1 | -- | 127.0.0.1
Processing a statement [shard 0] | 2020-08-07 13:13:47.189346 | 127.0.0.1 | 87 | 127.0.0.1
read_data: querying locally [shard 0] | 2020-08-07 13:13:47.189412 | 127.0.0.1 | 153 | 127.0.0.1
Start querying token range [{7, end}, {42, end}] [shard 0] | 2020-08-07 13:13:47.189421 | 127.0.0.1 | 162 | 127.0.0.1
Creating shard reader on shard: 0 [shard 0] | 2020-08-07 13:13:47.189436 | 127.0.0.1 | 177 | 127.0.0.1
Querying is done [shard 0] | 2020-08-07 13:13:47.189495 | 127.0.0.1 | 236 | 127.0.0.1
Done processing - preparing a result [shard 0] | 2020-08-07 13:13:47.189526 | 127.0.0.1 | 268 | 127.0.0.1
Request complete | 2020-08-07 13:13:47.189276 | 127.0.0.1 | 276 | 127.0.0.1
Message-Id: <82f1a8680fc8383cd7e6c7b283de94e5b71a52ab.1596799589.git.sarna@scylladb.com>