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

fix: probabilistic test failures #71

Closed
laysakura opened this issue Apr 4, 2022 · 5 comments · Fixed by #81
Closed

fix: probabilistic test failures #71

laysakura opened this issue Apr 4, 2022 · 5 comments · Fixed by #81

Comments

@laysakura
Copy link
Contributor

laysakura commented Apr 4, 2022

use single thread for tests asserting some values?

@laysakura
Copy link
Contributor Author

laysakura commented Apr 5, 2022

Latest 5 test failures and possible causes

Take away: related to window operation?

@laysakura
Copy link
Contributor Author

laysakura commented Apr 6, 2022

does not reproduce with:

    config.worker.n_generic_worker_threads = 1;
    // config.worker.n_source_worker_threads = 1;

reproduce with:

    config.worker.n_generic_worker_threads = 1;
    config.worker.n_source_worker_threads = 1;
    // config.worker.n_generic_worker_threads = 1;
    config.worker.n_source_worker_threads = 1;

@laysakura
Copy link
Contributor Author

laysakura commented Apr 6, 2022

Cause (high confidence)

  1. multiple source workers may change the order of source inputs

  2. but tests expected the source inputs are in-order:

    image
  3. input rows come out-of-order. Early input row can close a window too early.

@laysakura
Copy link
Contributor Author

laysakura commented Apr 6, 2022

Remaining issues

The above cause cannot explain the following issue:

  • https://github.com/SpringQL/SpringQL/runs/5825844880?check_suite_focus=true

    [2022-04-05T00:13:11Z ERROR panic] thread 'GenericWorker' panicked at 'task id Pump { id: "pu_join", input_type: Window } does not have upstream source_city_temperature': springql-core/src/stream_engine/autonomous_executor/task_graph.rs:111
    
    ...
    
    [2022-04-05T00:13:12Z ERROR panic] thread 'test_feat_left_outer_join' panicked at 'failed to wait for worker thread to finish its job: SendError { .. }': springql-core/src/stream_engine/autonomous_executor/worker/worker_handle.rs:42
    

Created: #80

@laysakura
Copy link
Contributor Author

Solution

  • Make n_*_threads = 1 as default to keep in-order processing.
  • Documents n_*_threads > 1 can lead to out-of-order processing.

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

Successfully merging a pull request may close this issue.

1 participant