Created
July 30, 2015 15:55
-
-
Save franklinbr/c6bdce760592b9aae858 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Olá Amigos ! | |
| Aqui no trabalho temos uma aplicação feita em java que as vezes se torna irresponsivo | |
| sendo necessário reiniciar a aplicação. Algumas vezes apenas reiniciar não basta, a aplicação | |
| para em algum estágio da inicialização. Quando isso acontece eu verifico no banco se existe | |
| algum locks ou ainda alguma transação pendente com: | |
| # select * from pg_prepared_xacts | |
| Geralmente nada encontro, mas quando reinicio o servidor do postgresql a aplicação java inicializa e volta funcionar normalmente. | |
| Olhando os logs encontrei vários registros da seguinte ocorrencia: | |
| ...... | |
| removing corrupt two-phase state file "0035E001" | |
| removing corrupt two-phase state file "0035DFFB" | |
| removing corrupt two-phase state file "00363287" | |
| removing corrupt two-phase state file "0035DFFF" | |
| removing corrupt two-phase state file "00363218" | |
| removing corrupt two-phase state file "0036DAD6" | |
| removing corrupt two-phase state file "003632C6" | |
| removing corrupt two-phase state file "0036324B" | |
| removing corrupt two-phase state file "0035DFF4" | |
| removing corrupt two-phase state file "003684A4" | |
| removing corrupt two-phase state file "0035E075" | |
| removing corrupt two-phase state file "0035DFE9" | |
| removing corrupt two-phase state file "0035DFF8" | |
| removing corrupt two-phase state file "0035E081" | |
| removing corrupt two-phase state file "003632B1" | |
| removing corrupt two-phase state file "003684E3" | |
| removing corrupt two-phase state file "00336F63" | |
| removing corrupt two-phase state file "003684DF" | |
| ...... | |
| Me falta conhecimento para interpretar isso, mas me parece algo relacionado a commits não realizados, | |
| infelizmente não consigo detecta-los em minhas buscas simples por locks no banco. Pesquisei no google e | |
| achei pouca referencia. Enfim, qualquer dica é bem vinda ! Muito grado desde já ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment