Skip to content

[Bugfix] allow pending data to send before exit#98

Merged
kezhenxu94 merged 7 commits into
apache:masterfrom
tom-pytel:master
Dec 11, 2020
Merged

[Bugfix] allow pending data to send before exit#98
kezhenxu94 merged 7 commits into
apache:masterfrom
tom-pytel:master

Conversation

@tom-pytel

Copy link
Copy Markdown
Contributor

Fixed the problem of last pending data not being sent on exit.

@kezhenxu94 kezhenxu94 added the bug Something isn't working label Dec 11, 2020
@kezhenxu94 kezhenxu94 added this to the 0.5.0 milestone Dec 11, 2020
kezhenxu94
kezhenxu94 previously approved these changes Dec 11, 2020

@kezhenxu94 kezhenxu94 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Comment thread skywalking/agent/__init__.py Outdated
Comment on lines +41 to +43
__protocol.report(__queue) # is blocking actually
while __protocol.report(__queue): # blocking but has timeout
pass

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

So maybe this is unnecessary after your latest commit? And there is no timeout actually (the comment says it has, which is confusing)

@tom-pytel tom-pytel Dec 11, 2020

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You are right on both counts, the return True from Protocol.report() also becomes unnecessary, stuck around from first commit. [EDIT] Meaning that the while loop should also be removed, if you don't do this now I will do it tomorrow.

@kezhenxu94 kezhenxu94 merged commit b87cbd1 into apache:master Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants