-
Notifications
You must be signed in to change notification settings - Fork 14
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 hanging in transport layer #121
Merged
Changes from 57 commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
6860a6d
Increase wait time on flush test
Shillaker bac7026
Small tidy-up in endpoint code
Shillaker 7a183a1
Add timeout on close and catch-all error handling
Shillaker 4dfc42d
Formatting
Shillaker 1f5f000
Lazy-init global message context and don't shut down
Shillaker d38dd03
Remove need to close global message context
Shillaker 9cb6b89
Fix up timeout test
Shillaker db3ad14
Removed catch-all error handling
Shillaker c746876
Remove message context argument from open and close
Shillaker b985bc7
Use stlib in Message object
Shillaker f40e12e
Remove MessageContext object
Shillaker 9ee0e11
Make SocketType a property on the message endpoint
Shillaker 9a3349a
Error checking around use of send and recv sockets
Shillaker 880af93
Remove the need for persist on messages
Shillaker 4b6fd9e
Restore simple class wrapper around context for shutdown
Shillaker d4e8f41
Close context from main thread
Shillaker 2ee0ef4
Switch to raii sockets
Shillaker c2af35e
Remove MessageEndpointClient
Shillaker d038e8e
Explicitly open and close message context
Shillaker 317bf5e
Simplify global context
Shillaker b3bcc5d
Reinstate timeout test
Shillaker 1daeb8e
Move sendResponse into RecvMessageEndpoint
Shillaker d4be278
Default reply port
Shillaker 96d2bf3
Add linger
Shillaker 763594a
Self review
Shillaker a5c57f3
Added global context init/ close where necessary
Shillaker acfbe48
Formatting
Shillaker a0df2b0
Merge branch 'master' into hanging
Shillaker ed1b04b
Remove dummy state server
Shillaker 97a1e38
Remove custom stop methods on snapshot and function call servers
Shillaker e00978a
Formatting
Shillaker 80754d4
Starting req/rep refactor
Shillaker bae864e
Req/rep part 2
Shillaker 0fe4ac3
Tests now running (and hanging)
Shillaker 3e79318
Switch to using client class instead of sockets directly
Shillaker 49b1410
Remove unused macros
Shillaker 371091a
Explicitly set sync/async ports
Shillaker 46f9d8d
Split MPI world broadcasting of ranks into separate function
Shillaker f2e9113
Move send/ recv host ranks to MpiWorld
Shillaker 01ec57d
Clear up MPI worlds in tests, lazy init recv ranks hosts socket
Shillaker 7f617bf
Thread-local sockets for rank-to-host mappings
Shillaker 6c15fcb
Detailed logging of send/recv
Shillaker 1d702f9
Switch local/remote in remote world tests
Shillaker 2d88beb
Clear up all thread-local sockets when destroying MPI world
Shillaker 705a29c
Fix remote world test hanging
Shillaker 6026ffc
Switch to SLEEP_MS macro
Shillaker b656c49
Formatting
Shillaker 6e089d0
Self review and restart dummy state server on initial error
Shillaker ec9d58d
Remove unnecessary threads in transport tests
Shillaker f9d45ba
Lengthen all timeouts
Shillaker e267134
Retry connecting socket
Shillaker 8bb3888
Avoid arbitrary sleeps in tests
Shillaker 6bebb61
Add timeout on barrier
Shillaker 51fd3d4
Long-lived shutdown endpoints in server
Shillaker 4de6f27
Added latch to async server
Shillaker 9b0cbaf
Guard against null pointers and avoid memcpying
Shillaker ff00429
Share latch via shared pointer
Shillaker 413ce6e
Typos
Shillaker 4e6dbf2
Link util to transport
Shillaker b4d8cc7
Move global message context handling out of FaabricMain
Shillaker 7584527
Add retry logic in servers, unify server threads into signle class
Shillaker 19a7d6e
Fix port mixup and remove unused macros
Shillaker bf6b15c
Remove use thread-local cache in scheduler
Shillaker b3327e9
Rename retry macro
Shillaker fd9ad8a
Move latch constructor
Shillaker 1f71e38
Move FB macro
Shillaker 8d7565d
Message server interface to buffers
Shillaker 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
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 was deleted.
Oops, something went wrong.
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 was deleted.
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.
It feels strange that sometimes we use our own
Message
wrapper, and other times' protobuf's.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 that's a good point, I'll revisit this and see if I can standardise it a bit. I'd like the rule to be: our
Message
wrapper inside the transport layer, and protobuf/ flatbuffers everywhere else.