Reclaim abandoned replication slots without waiting for restart
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 35/100
Direção de pesquisa
Start by locating the startup slot-cleanup implementation and its tests, then trace where cleanup could run while the process is active. Check the supported PostgreSQL versions and available slot metadata, along with the STREAMGRES_SLOT_CLEANUP_AGE_MS configuration and its documentation. Done means safe cleanup is tested for stale and active slots across supported versions, with retention behavior documented.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Problem
Replication slots left behind by a crashed process can continue holding WAL. Cleanup currently runs only at startup, only on PostgreSQL 17 (using inactive_since), and only when STREAMGRES_SLOT_CLEANUP_AGE_MS is configured.
Expected behavior
Abandoned slots should be identified and cleaned up reliably, including while the process is running, without relying solely on PostgreSQL 17-specific metadata.
Acceptance criteria
- Slot cleanup can run after startup, not only during initialization.
- The implementation handles supported PostgreSQL versions and their available slot metadata.
- Cleanup age configuration has documented and tested behavior.
- Active slots and slots that should be retained are never removed.
- Tests cover stale slots, active slots, and supported PostgreSQL versions.
- Linguagem predominante
- Rust
- Estrelas
- 129
- Forks
- 7
- Merge médio
- 1d 19h
- PRs com merge (30d)
- 5
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de juspay/streamgres
-
Make the top-L client diff cost depend on what changed, not on the limitTalvez já em andamento @SahilKhan101 assumiu há 2 dias. Abertaenhancement
juspay/streamgres#64 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Query optimisation: share initial snapshots across LIMIT variants of the same query (donor windows)Talvez já em andamento @sprihaanand-juspay assumiu há 3 dias. Aberta
juspay/streamgres#58 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 Mais de uma semana Facilidade para iniciantes 38/100
juspay/streamgres#56 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
juspay/streamgres#55 ·
Mantenedores costumam responder em até 1 dia
-
PgBouncer transaction pooling: `prepare` runs outside the read transaction and can land on another backendTalvez já em andamento @sprihaanand-juspay assumiu há 6 dias. Aberta
juspay/streamgres#53 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de juspay/streamgres
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Test connection's password prompt says the password is never saved, also for a keychain profileAbertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia
-
area: settings bug Haiku review: no-score ui
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
MMFoundation/WallpaperMachine#346 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
rubys/roundhouse#2473 ·
-
bug mod: quantum info
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Qiskit/qiskit#17699 · 2 comentários ·
Mantenedores costumam responder em até 1 dia