Skip to content

[fix][cli] Fix timeout behavior of reader perf - #17882

Merged
codelipenghui merged 4 commits into
apache:masterfrom
labuladong:fix-perf-reader
Nov 2, 2022
Merged

codelipenghui merged 4 commits into
apache:masterfrom
labuladong:fix-perf-reader

Conversation

@labuladong

@labuladong labuladong commented Sep 29, 2022 •

Copy link
Copy Markdown
Contributor

Fixes #17824

Modifications

Add a timer to handle timeout exit.

Verifying this change

  • Make sure that the change passes the CI checks.

This change is already covered by existing tests.

Does this pull request potentially affect one of the following parts:

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • Anything that affects deployment

Documentation

  • doc-required
    (Your PR needs to update docs and you will update later)

  • doc-not-needed
    (Please explain why)

  • doc
    (Your PR contains doc changes)

  • doc-complete
    (Docs have been already added)

Matching PR in forked repository

PR in forked repository: labuladong#1

@github-actions github-actions Bot added the doc-complete Your PR changes impact docs and the related docs have been already added. label Sep 29, 2022
@labuladong labuladong closed this Sep 29, 2022
@labuladong labuladong reopened this Sep 29, 2022
@labuladong
labuladong marked this pull request as draft September 29, 2022 02:58
@labuladong
labuladong marked this pull request as ready for review September 29, 2022 03:09
@labuladong

Copy link
Copy Markdown
Contributor Author

In the listener, all the actions are concurrent safe, so I just add a timer to handle timeout.

@mattisonchao @andFrasbeni PTAL

@labuladong

Copy link
Copy Markdown
Contributor Author

@andrasbeni @mattisonchao Could you please review this pr? Thanks

@andrasbeni andrasbeni left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix looks good to me

@labuladong

Copy link
Copy Markdown
Contributor Author

/pulsarbot rerun-failure-checks

@tisonkun

Copy link
Copy Markdown
Member

You may change the PR title as [fix][test] ....

@labuladong

Copy link
Copy Markdown
Contributor Author

But it's about the perf tool, not a test.

@tisonkun

Copy link
Copy Markdown
Member

@labuladong I think we currently accept the following scope, you may choose one or propose changes:

# Scope abbreviation comments:
# cli -> command line interface
# fn -> Pulasr Functions
# io -> Pulsar Connectors
# offload -> tiered storage
# sec -> security
# sql -> Pulsar Trino Plugin
# txn -> transaction
# ws -> websocket
scopes: |
admin
broker
build
ci
cli
client
doc
fn
io
meta
misc
monitor
offload
proxy
schema
sec
site
sql
storage
test
txn
ws

@labuladong labuladong changed the title [fix][perf] Fix timeout behavior of reader perf [fix][cli] Fix timeout behavior of reader perf Oct 17, 2022
@labuladong

Copy link
Copy Markdown
Contributor Author

I think this pr belongs to cli scope, thanks. @tisonkun

@codecov-commenter

codecov-commenter commented Oct 18, 2022 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 38.73%. Comparing base (0866c3a) to head (4754b3f).
⚠️ Report is 3389 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #17882      +/-   ##
============================================
- Coverage     38.97%   38.73%   -0.25%     
+ Complexity     8311     8262      -49     
============================================
  Files           683      685       +2     
  Lines         67325    67340      +15     
  Branches       7217     7217              
============================================
- Hits          26239    26081     -158     
- Misses        38079    38251     +172     
- Partials       3007     3008       +1     
Flag Coverage Δ
unittests 38.73% <ø> (-0.25%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 45 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tisonkun

Copy link
Copy Markdown
Member

/pulsarbot rerun-failure-checks

1 similar comment
@labuladong

Copy link
Copy Markdown
Contributor Author

/pulsarbot rerun-failure-checks

@labuladong

Copy link
Copy Markdown
Contributor Author

/pulsarbot rerun-failure-checks

@codelipenghui codelipenghui added this to the 2.12.0 milestone Nov 1, 2022
@codelipenghui codelipenghui added the type/bug The PR fixed a bug or issue reported a bug label Nov 1, 2022
@labuladong

Copy link
Copy Markdown
Contributor Author

Could you please merge this pr? @codelipenghui

@codelipenghui
codelipenghui merged commit 2e878e8 into apache:master Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cli doc-complete Your PR changes impact docs and the related docs have been already added. type/bug The PR fixed a bug or issue reported a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] PerformanceConsumer and PerformanceReader run with -time quit only after another message

7 participants