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

[warm-reboot] increase warm-reboot sniffing time #899

Merged
merged 1 commit into from
May 2, 2019

Conversation

yxieca
Copy link
Collaborator

@yxieca yxieca commented May 1, 2019

Summary:

Type of change

  • Bug fix
  • [] Testbed and Framework(new/improvement)
  • [] Test case(new/improvement)

Approach

How did you do it?

With the original wait time, we couldn't receive all 36000 fast probing packets sent by warm-reboot
test. If any packet were delayed/re-ordered by the test infrastructure, the test would mis-judge the
missing packets as dropped packets. Therefore causing false positives. Increase the wait time by 30
seconds, in my tests, all 36000 packet were received and therefore no false positives.

Signed-off-by: Ying Xie ying.xie@microsoft.com

How did you verify/test it?

Some test setup has delay in the IO path, the original sniff wait time doesn't guarantee
all 36000 packet were received. Increasing sniffing wait time by 30 seconds.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
Copy link
Contributor

@stepanblyschak stepanblyschak left a comment

Choose a reason for hiding this comment

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

I have seen that sniffer might be finished before sender thread finishes, so the change is acceptable. I'm thinking about having better sync between those two threads

@yxieca
Copy link
Collaborator Author

yxieca commented May 2, 2019

@stepanblyschak better syncing sounds great. 30 seconds extra test is ok but not great. If we could have a better mechanism to avoid increasing timeout, I am all for that! :-)

@yxieca yxieca merged commit 46fc912 into sonic-net:master May 2, 2019
@yxieca yxieca deleted the sniff branch May 2, 2019 15:07
yxieca added a commit that referenced this pull request May 6, 2019
Some test setup has delay in the IO path, the original sniff wait time doesn't guarantee
all 36000 packet were received. Increasing sniffing wait time by 30 seconds.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants