Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streaming device logs may loose log entries #1305

Open
jellyfish-bot opened this issue Apr 7, 2023 · 3 comments
Open

Streaming device logs may loose log entries #1305

jellyfish-bot opened this issue Apr 7, 2023 · 3 comments

Comments

@jellyfish-bot
Copy link

jellyfish-bot commented Apr 7, 2023

[fisehara] [fisehara] [fisehara] [fisehara] Device logs on dashboard and via balena cli are lacking entries when streamed with --tail option on CLI.
All entries are existing when querying logs without --tail option on balena cli.

Most probably here the investigation need to start:

const ctx = await getReadContext(req);

See: https://balena.zulipchat.com/#narrow/stream/346007-balena-io.2FbalenaCloud/topic/Random.20missing.20logs

@jellyfish-bot
Copy link
Author

[fisehara] This has attached https://jel.ly.fish/4bfc9691-ae87-4101-b110-9d7ce0efa6dc

@jellyfish-bot
Copy link
Author

[fisehara] Re-opening as the issue is occurring again.

@fisehara
Copy link
Contributor

Redis PubSub Delivery semantics:
https://redis.io/docs/interact/pubsub/#:~:text=Ctrl%2DC.-,Delivery%20semantics,-Redis%27%20Pub/Sub

The underlying redis PubSub structue only guarantees at-most-once so it's `expected`` to loose messages.
redis-backend needs to implement redis streams: https://redis.io/docs/data-types/streams/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants