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

Periodic missing rows when the system is under load #7

Open
s373r opened this issue Oct 15, 2024 · 0 comments
Open

Periodic missing rows when the system is under load #7

s373r opened this issue Oct 15, 2024 · 0 comments

Comments

@s373r
Copy link
Member

s373r commented Oct 15, 2024

Describe the bug

When reinforcing the E2E test coverage within the PR (kamu-data/kamu-cli#882), an intermittent bug was detected.

Periodic replay is available when running all tests from the kamu-cli repository:

make test-full

To Reproduce

Sorry, the error is not reproduced every time, so there is only a screenshot:
image

To reproduce the environment from the test locally, you need:

kamu init

kamu add https://raw.githubusercontent.com/kamu-data/kamu-cli/refs/heads/master/examples/leaderboard/player-scores.yaml https://raw.githubusercontent.com/kamu-data/kamu-cli/refs/heads/master/examples/leaderboard/leaderboard.yaml

{ \
    echo '{"match_time": "2000-01-01", "match_id": 1, "player_id": "Alice", "score": 100}'; \
    echo '{"match_time": "2000-01-01", "match_id": 1, "player_id": "Bob", "score": 80}' \
} \
    | kamu ingest player-scores --stdin

kamu pull leaderboard

kamu tail leaderboard

Expected behavior

Expected:

┌────────┬────┬──────────────────────────┬──────────────────────┬───────┬──────────┬───────────┬───────┐
│ offset │ op │       system_time        │      match_time      │ place │ match_id │ player_id │ score │
├────────┼────┼──────────────────────────┼──────────────────────┼───────┼──────────┼───────────┼───────┤
│      0 │ +A │ 2024-10-15T15:49:41.364Z │ 2000-01-01T00:00:00Z │     1 │        1 │     Alice │   100 │
│      1 │ +A │ 2024-10-15T15:49:41.364Z │ 2000-01-01T00:00:00Z │     2 │        1 │       Bob │    80 │
└────────┴────┴──────────────────────────┴──────────────────────┴───────┴──────────┴───────────┴───────┘

Actual behavior

See screenshot above

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

1 participant