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

add cluster_config_lock_ to avoid data race #106

Merged

Conversation

lzydmxy
Copy link
Contributor

@lzydmxy lzydmxy commented Nov 16, 2023

Which issues of this PR fixes:

This PR try to fix #104

Change log:

add cluster_config_lock_ to avoid data race

@lzydmxy
Copy link
Contributor Author

lzydmxy commented Nov 17, 2023

@JackyWoo

2023.11.16 07:56:43.746655 [ 125 ] <Trace> ForwardingConnectionHandler: Forwarding handler socket readable
2023.11.16 07:56:43.746676 [ 125 ] <Trace> ForwardingConnectionHandler: forwarding handler socket available
2023.11.16 07:56:43.746689 [ 125 ] <Trace> ForwardingConnectionHandler: Try handle new package
2023.11.16 07:56:43.746708 [ 125 ] <Trace> ForwardingConnectionHandler: Receive Handshake
2023.11.16 07:56:43.746725 [ 125 ] <Trace> ForwardingConnectionHandler: forwarding handler socket available
2023.11.16 07:56:43.746898 [ 125 ] <Fatal> : Logical error: 'Server 2 client 9 already registered in dispatcher'.
2023.11.16 07:56:43.747143 [ 11 ] <Trace> BaseDaemon: Received signal 6
2023.11.16 07:56:43.747447 [ 130 ] <Fatal> BaseDaemon: ########################################
2023.11.16 07:56:43.747523 [ 130 ] <Fatal> BaseDaemon: (version v2.0.3, build id: 542805F1020432FC) (from thread 125) Received signal Aborted (6)
2023.11.16 07:56:43.747585 [ 130 ] <Fatal> BaseDaemon: 
2023.11.16 07:56:43.747677 [ 130 ] <Fatal> BaseDaemon: Stack trace: 0x7f793d529a7c 0x7f793d4d5476 0x7f793d4bb7f3 0x7fecde 0x7ff1d4 0xad9f59 0xac9e16 0xa5a555 0xa52f79 0xa6145d 0x1655184 0x9aaad0 0x9995f9 0x991dd9 0x1750429 0x174c652 0x7f793d527b43 0x7f793d5b8bb4

./runner --tsan-options='report_thread_leaks=0:detect_deadlocks=0:halt_on_error=1:history_size=7' "test_forward_expiration"

src/Service/NuRaftStateManager.h Outdated Show resolved Hide resolved
src/Service/NuRaftStateManager.cpp Show resolved Hide resolved
src/Service/NuRaftStateManager.cpp Outdated Show resolved Hide resolved
src/Service/NuRaftStateManager.cpp Outdated Show resolved Hide resolved
@JackyWoo
Copy link
Contributor

The error may not caulsed by your changing, I will take a look at it latter.

@JackyWoo
Copy link
Contributor

@lzydmxy please rebase the recent master branch

@JackyWoo
Copy link
Contributor

Mark the error test

@JackyWoo JackyWoo added this to the Release v2.0.3 milestone Nov 24, 2023
@lzydmxy
Copy link
Contributor Author

lzydmxy commented Nov 24, 2023

@lzydmxy please rebase the recent master branch

okay

@lzydmxy
Copy link
Contributor Author

lzydmxy commented Nov 24, 2023

Mark the error test

closed in #110

@lzydmxy lzydmxy force-pushed the add_mutex_for_cur_cluster_config branch from 4a8e6df to fd04a4a Compare November 24, 2023 09:31
@JackyWoo JackyWoo merged commit d91e9b8 into JDRaftKeeper:master Nov 24, 2023
6 checks passed
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.

Data race error while modify config
2 participants