-
Notifications
You must be signed in to change notification settings - Fork 141
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 support for 'isFSMWorkflow' flag and fix FSM workflow #161
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
4df09ee
Add support for 'isFSMWorkflow' flag and fix FSM workflow
kaikulimu 81dd162
FSM workflow: Fix compile errors
kaikulimu f6cf704
typedef DomainQueueMessagesCountMaps: mqbs::StorageUtil -> mqbc
kaikulimu 8b62482
PR#161: Address comments
kaikulimu 212ec64
FSM workflow: Adopt PR#174 'fix: mix of strong and weak consistencies'
kaikulimu 76e74c7
blp::Cluster: Add back missing control message processing types
kaikulimu f870932
test_leader_node_delay.py: Fix log grepping post-FSM
kaikulimu 46cccb2
run-tests: Also run integration tests in FSM mode
kaikulimu 3760d47
mqbc::ClusterDataIdentity: Simplify the code
kaikulimu 9a8b062
blp::ClusterProxy, mqbmock::Cluster: Use description from ClusterData
kaikulimu b14656a
mqbc::ClusterData: Incorporate mqbcfg::ClusterProxyDefinition
kaikulimu e478222
FSM workflow: Adopt PR#190 'Application subscriptions'
kaikulimu fdf512e
PR#161: Address comments
kaikulimu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that not in the Dispatcher thread anymore? If so, need to comment on the thread safety
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is now possible to be invoked in the queue dispatcher thread by
mqbc::StorageManager
:blazingmq/src/groups/mqb/mqbc/mqbc_storagemanager.cpp
Line 1742 in 751032b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ElectorInfo::setElectorInfo
is "executed by the cluster DISPATCHER thread" so we need to put some warning about thread safety. We consider the access tod_leaderNode_p
(and everything else here) thread-safe.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some comment about thread safety. Importantly,
Cluster::sendRequest()
has been invoked in queue dispatcher threads since before FSM, for example atRecoveryManager::onPartitionSyncStateQueryResponseDispatched()
.