idle-in-transaction for harvest record selection
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 68/100
Direzione di ricerca
Inizia leggendo acquire_minimum_internal_data() e HarvesterDBInterface.get_latest_harvest_records_by_source_orm(), che l’issue identifica come il probabile percorso della query. Verifica come viene gestita la sessione durante la richiesta HTTP e se viene chiusa in ogni percorso di uscita. L’issue è risolta quando questo percorso non lascia più una transazione inattiva per oltre 60 secondi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
new relic alert indicating there's an idle-in-transaction lasting over 60 seconds.
How to reproduce
based on the history of this alert it doesn't appear there's a pattern.
Expected behavior
no idle in transactions over 60 seconds
Actual behavior
app code which causes transactions to sit idling over 60 seconds
Sketch
- the emitted query looks like
SELECT anon_1.identifier AS anon_1_identifier, anon_1.record_type AS anon_1_record_type, anon_1.source_hash AS anon_1_source_hash, anon_1.ckan_id AS anon_1_ckan_id, anon_1.date_created AS anon_1_date_created, anon_1.date_finished AS anon_1_date_finished,. emitted queries withanon_means a subquery was used which the interface methodHarvesterDBInterface.get_latest_harvest_records_by_source_orm()uses. the column order also matches those which are used in that function. acquire_minimum_internal_data()uses that function and is followed by an HTTP request to retrieve the external source. This pattern often times leaves a database transaction in theidle-in-transactionstate.- close the session in a
finallystatement inacquire_minimum_internal_datamay resolve the issue.
- Lingua principale
- Python
- Stelle
- 1.2k
- Fork
- 207
- Merge medio
- 3g 16h
- PR unite (30g)
- 5
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la 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 GSA/data.gov
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Harvester
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
-
blocked form submission shows home pageForse già presa @FuhuXia l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
Harvester pagination: add page-number navigation to paginationForse già presa @jaredb96 l’ha presa 23 giorni fa. Apertabug Harvester
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
Tutte le issue di GSA/data.gov
Issue simili
-
Public benchmark import end-to-end test fails when the test stack's worker runs the parity jobApertaaccepted
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
future-agi/future-agi#6392 ·
I maintainer di solito rispondono entro 1 giorno
-
memmapped_arange ignores the start value and drops the last point above the memmap thresholdForse già presa @prathameshfuke l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
StingraySoftware/HENDRICS#213 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
bot-triaged module: decompositions module: edge cases module: int overflow module: primTorch oncall: pt2 triage review
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno