Add query tracing to LegacySession
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start by reading LegacySession, ResponseFuture.get_query_trace() and get_all_query_traces(), and SessionBuilder.tracing_info_fetch_consistency(); the issue names these entry points but no file paths. First resolve the two stated design decisions about the returned trace type and query_cl behavior, then trace how the current driver fetches query traces. Done means the legacy methods block and return the agreed trace result, with the agreed consistency behavior; the issue does not name tests.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Add query tracing to LegacySession. ResponseFuture.get_query_trace() and get_all_query_traces() raise NotImplementedError now. The legacy API has no async, so the trace fetch must block. Refs #156.
Two design decisions come first.
1. What the trace methods return
- A new legacy
QueryTracetype with a blockingpopulate()method, similar tocassandra.query.QueryTrace. It wraps our trace fetch. Pro: same shape as the legacy driver. Con: one more type to maintain. (Preferred.) - The methods block and return our current
QueryTrace. Pro: no new type. Con: nopopulate(), so legacy code that calls it breaks.
2. What to do with query_cl
query_cl is the consistency level of the queries that read system_traces. Our fetch uses the session setting from SessionBuilder.tracing_info_fetch_consistency() and cannot change it for one call.
- Raise
NotImplementedErrorand tell the user to set the consistency on the session. Pro: simple and honest. Con: code that passesquery_clbreaks. (Preferred for now.) - Run the two
system_tracesqueries ourselves withquery_cl. Pro: full legacy behaviour. Con: a copy of the Rust driver's fetch logic. - Add an unstable Rust driver method that takes the consistency. Pro: one fetch for both APIs. Con: needs a Rust driver change and a dependency bump.
- Lingua principale
- Rust
- Stelle
- 6
- Fork
- 8
- Merge medio
- 3g 21h
- PR unite (30g)
- 16
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di scylladb/python-rs-driver
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 60/100
scylladb/python-rs-driver#224 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
scylladb/python-rs-driver#193 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 18/100
scylladb/python-rs-driver#242 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Migrate to pyo3 0.30Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
scylladb/python-rs-driver#241 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
scylladb/python-rs-driver#238 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di scylladb/python-rs-driver
Issue simili
-
`[daemons]` fails to resolve standalone file tasks by their display name (`runs unknown task`)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
I maintainer di solito rispondono entro 3 giorni
-
[BUG] Filename sequence expansion (`+`) panics on numeric values exceeding `i32::MAX`Forse già presa @muntasir-396 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
CCExtractor/ccextractor#2402 ·
I maintainer di solito rispondono entro 1 giorno
-
Nushell launcher failure.Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100