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 handover crash #3056

Merged
merged 5 commits into from
Mar 12, 2021
Merged

Fix handover crash #3056

merged 5 commits into from
Mar 12, 2021

Conversation

gustawlippa
Copy link
Contributor

This PR addresses #2933.

It contains a fix to the issue as well as a related testcase.

imcyee and others added 2 commits March 11, 2021 10:41
Fix issue #2933.
Issue summary: 
`p1_fsm_old` did not handle terminate with reason {handover_session} properly.

What changes:
added a {handover_session} as Reason to exit normally
@codecov
Copy link

codecov bot commented Mar 11, 2021

Codecov Report

Merging #3056 (81a0c9d) into master (135fec2) will decrease coverage by 0.09%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3056      +/-   ##
==========================================
- Coverage   78.53%   78.43%   -0.10%     
==========================================
  Files         378      378              
  Lines       31119    31120       +1     
==========================================
- Hits        24440    24410      -30     
- Misses       6679     6710      +31     
Impacted Files Coverage Δ
src/ejabberd_c2s.erl 89.18% <ø> (-0.30%) ⬇️
src/p1_fsm_old.erl 34.83% <100.00%> (-4.27%) ⬇️
src/ejabberd.erl 45.00% <0.00%> (-10.00%) ⬇️
src/elasticsearch/mongoose_elasticsearch.erl 76.92% <0.00%> (-7.70%) ⬇️
src/mongoose_tcp_listener.erl 76.59% <0.00%> (-4.26%) ⬇️
src/cassandra/mongoose_cassandra_worker.erl 70.75% <0.00%> (-2.36%) ⬇️
src/mam/mod_mam_elasticsearch_arch.erl 86.60% <0.00%> (-1.79%) ⬇️
...c/global_distrib/mod_global_distrib_server_mgr.erl 76.83% <0.00%> (-0.57%) ⬇️
src/ejabberd_s2s_out.erl 57.89% <0.00%> (-0.46%) ⬇️
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 135fec2...81a0c9d. Read the comment docs.

This function was called with MRef and not the C2SPid and because of that the
receive would never match. Morover the "C2SRef" name for a pid was confusing.
Copy link
Member

@erszcz erszcz left a comment

Choose a reason for hiding this comment

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

Looks good to me, good job!

Copy link
Member

@chrzaszcz chrzaszcz left a comment

Choose a reason for hiding this comment

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

Looks good, I have one small question.

big_tests/tests/sm_SUITE.erl Outdated Show resolved Hide resolved
Copy link
Member

@chrzaszcz chrzaszcz left a comment

Choose a reason for hiding this comment

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

Great!

@chrzaszcz chrzaszcz merged commit 42efe3e into master Mar 12, 2021
@chrzaszcz chrzaszcz deleted the fix-handover-crash branch March 12, 2021 15:00
@leszke leszke added this to the 4.2.0 milestone Apr 16, 2021
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 this pull request may close these issues.

None yet

5 participants