aws-samples / aws-samples/amazon-elasticsearch-lambda-samples

Getting "Error: write after end" on every other log file that is ingested from s3

Abierto
#4 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
386
Forks
170
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Thank you for writing this. It's exactly what I needed. However, I'm running into an error with every other log file that is ingested from s3. This is the error as written to the CloudWatch logs:

2015-11-24T19:04:06.486Z fe5810ee-92dd-11e5-8a9f-8909a00ad51d Error: write after end
at writeAfterEnd (_stream_writable.js:133:12)
at LineStream.Writable.write (_stream_writable.js:181:5)
at write (_stream_readable.js:602:24)
at flow (_stream_readable.js:611:7)
at PassThrough.pipeOnReadable (_stream_readable.js:643:5)
at PassThrough.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:427:10)
at emitReadable (_stream_readable.js:423:5)
at readableAddChunk (_stream_readable.js:166:9)
at PassThrough.Readable.push (_stream_readable.js:128:10)

Does the NodeHttpClient need to close it's session or something?

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza rastreando la ruta de ingestión de S3 y la interacción con NodeHttpClient, utilizando el stack trace proporcionado y el error de CloudWatch como señal de reproducción. Reproduce la ingestión con archivos de registro alternos y determina dónde se escribe el stream después de que ha terminado; se considera completado cuando los archivos afectados se ingieren sin el error indicado.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
aws, elasticsearch, javascript, node.js
Área
backend, cloud, data-engineering
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.