LSLínguas Sem BenaventeInglês para brasileiros

Aula

Erro, causa e solução A2

Nível: A2

Objetivo

Descrever um erro no trabalho, identificar a causa e propor uma solução usando frases simples com because, the cause is e to fix it, we need to.

Explicação

Em uma investigação de incidente, três blocos de informação são úteis:

  1. O problema (sintoma) — o que aconteceu, o que o usuário vê.
  2. A causa — por que aquilo aconteceu.
  3. A solução — o que a equipe vai fazer para corrigir.

Use because para ligar sintoma e causa: `The app crashes because the database is down.`, `The dashboard is slow because the query is too big.` `Because` é seguido por uma frase completa (sujeito + verbo).

Para destacar a causa em separado, use The cause is + nome/vinge ou The reason is + frase:

  • `The cause is a bad configuration.`
  • `The reason is that the worker didn't start.`

Para destacar o efeito, use This causes + nome ou This leads to + frase:

  • `This causes a delay.`
  • `This leads to a 500 error.`

Para propor a correção, use To fix it, we need to + verbo base ou The solution is to + verbo base:

  • `To fix it, we need to restart the service.`
  • `The solution is to update the config file.`

A estrutura completa fica:

> `The issue happens because the cache is empty. The cause is a new deploy. > To fix it, we need to clear the cache.`

Em because of + nome, você evita a segunda frase: `The issue happens because of a new deploy.` Para dizer que algo acontece com frequência no presente, use o simple present (`crashes`, `fails`, `doesn't work`).

Exemplos

InglêsTraduçãoObservação
The app crashes because the database is down.O aplicativo cai porque o banco de dados está fora.Because liga sintoma e causa; simple present para fatos que se repetem.
The cause is a bad configuration file.A causa é um arquivo de configuração com problema.The cause is + nome.
The reason is that the worker didn't start.O motivo é que o worker não foi iniciado.The reason is that + frase completa.
This causes a delay for our customers.Isso causa um atraso para os nossos clientes.This causes + efeito.
To fix it, we need to restart the service.Para corrigir, nós precisamos reiniciar o serviço.To fix it + need to + verbo base.
The solution is to update the config and try again.A solução é atualizar a configuração e tentar de novo.The solution is to + verbo base.

Erros comuns

  • Esquecer o verbo depois de because: `The app crashes because the database.` deve ser `because the database is down.`
  • Usar `because` com nome: prefira `because of + nome` (`because of a bug`) ou complete com verbo (`because there is a bug`).
  • Esquecer `to` antes do verbo depois de `The solution is` ou `To fix it`: `The solution is restart` deve ser `The solution is to restart`.
  • Trocar `the cause` por `the caused` ou `the causing`; `cause` aqui é substantivo, não verbo.
  • Colocar o verbo no passado quando se fala de um problema atual: `The app crashed because the cache is empty` deve ser `The app crashes because the cache is empty`.
  • Dizer `to fix` sem objeto: prefira `to fix it` ou `to fix the bug` para soar natural.

Prática guiada

Complete a estrutura problema → causa → solução:

  1. `The dashboard is slow __________ the query is too big.`
  2. → `The dashboard is slow because the query is too big.`

  1. `The cause __________ a missing index.`
  2. → `The cause is a missing index.`

  1. `To fix it, we __________ add the index.`
  2. → `To fix it, we need to add the index.`

Agora junte os três blocos em um parágrafo curto:

> `The dashboard is slow because the query is too big. The cause is a > missing index. To fix it, we need to add the index.`

Resumo

Para investigar um problema, use because para ligar sintoma e causa, the cause is / the reason is para destacar a causa, e to fix it, we need to / the solution is to para propor a solução. Use simple present para falar do problema atual e complete as frases depois de because.

Vocabulário

Palavras principais

18 itens
errorerro

We saw a new error in the logs.

Vimos um erro novo nos logs.
bugdefeito, falha de software

The team fixed the bug in the login flow.

A equipe corrigiu o bug no fluxo de login.
issueproblema, questão

The issue happens every morning.

O problema acontece toda manhã.
crashcair, falhar (sistema)

The app crashes when the network is slow.

O aplicativo cai quando a rede está lenta.
failfalhar

The build fails because of a missing library.

O build falha por causa de uma biblioteca ausente.
happenacontecer

What happened after the deploy?

O que aconteceu depois do deploy?
causecausa; causar

The cause is a bad config. / A bad config causes the issue.

A causa é uma configuração ruim. / Uma configuração ruim causa o problema.
root causecausa raiz

We need to find the root cause of the incident.

Precisamos encontrar a causa raiz do incidente.
effectefeito

The effect is a slow response for users.

O efeito é uma resposta lenta para os usuários.
becauseporque

The page is slow because the query is too big.

A página está lenta porque a consulta é grande demais.
because ofpor causa de

The build failed because of a typo in the config.

O build falhou por causa de um erro de digitação na configuração.
fixcorrigir; correção

We need to fix this bug. / The fix is small.

Precisamos corrigir esse bug. / A correção é pequena.
fix itcorrigir isso

To fix it, we need to clear the cache.

Para corrigir isso, precisamos limpar o cache.
solutionsolução

The solution is to update the library.

A solução é atualizar a biblioteca.
workaroundsolução temporária, contorno

We have a workaround until the proper fix.

Temos uma solução temporária até a correção definitiva.
need toprecisar

We need to restart the service.

Precisamos reiniciar o serviço.
restartreiniciar

The team restarted the worker.

A equipe reiniciou o worker.
checkverificar

Let's check the logs first.

Vamos verificar os logs primeiro.

História

História: Erro, causa e solução A2

Nível: A2

História em inglês

A strange slowdown

On Tuesday morning, the support team received many tickets about the payment page. The page is slow because the database is overloaded. Some customers see a timeout error after a few seconds. This causes a bad experience at checkout.

Looking for the cause

The on-call engineer, Mark, started to investigate the issue. He checked the dashboard, and the CPU was at 95%. The cause is a long-running query from the new report job. The reason is that the report job doesn't have a time limit yet. This query locks the payments table and blocks the checkout flow.

A simple fix

Mark talked to his teammate and proposed a workaround. To fix it, we need to stop the report job for now. The solution is to add a time limit on the report job and add an index on the table. The team updated the config and restarted the report job. After that, the payment page became fast again and the timeout errors stopped.

Tradução linha por linha

InglêsTradução
On Tuesday morning, the support team received many tickets about the payment page.Na terça de manhã, a equipe de suporte recebeu muitos tickets sobre a página de pagamento.
The page is slow because the database is overloaded.A página está lenta porque o banco de dados está sobrecarregado.
Some customers see a timeout error after a few seconds.Alguns clientes veem um erro de timeout depois de alguns segundos.
This causes a bad experience at checkout.Isso causa uma experiência ruim no checkout.
The on-call engineer, Mark, started to investigate the issue.O engenheiro de plantão, Mark, começou a investigar o problema.
He checked the dashboard, and the CPU was at 95%.Ele verificou o painel, e a CPU estava em 95%.
The cause is a long-running query from the new report job.A causa é uma consulta de longa duração do novo job de relatório.
The reason is that the report job doesn't have a time limit yet.O motivo é que o job de relatório ainda não tem um limite de tempo.
This query locks the payments table and blocks the checkout flow.Essa consulta trava a tabela de pagamentos e bloqueia o fluxo de checkout.
Mark talked to his teammate and proposed a workaround.Mark conversou com o colega e propôs uma solução temporária.
To fix it, we need to stop the report job for now.Para corrigir isso, precisamos parar o job de relatório por enquanto.
The solution is to add a time limit on the report job and add an index on the table.A solução é adicionar um limite de tempo no job de relatório e adicionar um índice na tabela.
The team updated the config and restarted the report job.A equipe atualizou a configuração e reiniciou o job de relatório.
After that, the payment page became fast again and the timeout errors stopped.Depois disso, a página de pagamento voltou a ficar rápida e os erros de timeout pararam.

Notas de vocabulário

  • is slow because = Because liga sintoma e causa no simple present.
  • a timeout error = Timeout é comum em suporte técnico; timeout error descreve uma falha por demora.
  • This causes = This + causes + efeito; usado para destacar a consequência.
  • The cause is = The cause is + nome ou the cause is that + frase.
  • The reason is that = The reason is that + frase completa; equivalente a the cause is that.
  • a long-running query = Long-running descreve algo que demora para terminar — comum em queries de banco.
  • To fix it, we need to = Padrão para propor a solução; é seguido por verbo na forma base.
  • a workaround = Workaround é uma correção provisória enquanto a definitiva não chega.
  • add a time limit = Time limit é o tempo máximo permitido para uma operação.

Perguntas de compreensão

  1. What problem did the customers see on the payment page?
  2. Why was the payment page slow?
  3. What did Mark check first?
  4. What was the cause of the overload?
  5. Why doesn't the report job have a limit yet?
  6. What was the workaround?
  7. What is the long-term solution?
  8. Did the timeout errors stop after the fix?

Prática com a história

  1. Reescreva com because: The page is slow. The database is overloaded.
  2. Destaque a causa: a long-running query from the new report job.
  3. Proponha a solução começando com to fix it: stop the report job for now.
  4. Reescreva com because of: The build failed. A typo in the config.
  5. Diga em uma frase o efeito do problema: a bad experience at checkout.

Prática

Exercícios e teste

Próxima etapa
8blocos de exercícios disponíveis neste tema
10questões de teste para revisar depois da aula

A próxima melhoria é transformar esses arquivos em perguntas com resposta no navegador. Por enquanto, esta página já organiza o estudo e permite seguir a aula inteira sem abrir os arquivos manualmente.