-
Notifications
You must be signed in to change notification settings - Fork 178
RUST-1437 Send endSessions
on client shutdown
#1216
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
Changes from all commits
1fc8563
97b52f3
e81edbb
130a7f6
4f15d35
fb28f77
82c0d7a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2182,7 +2182,13 @@ impl TestOperation for Close { | |
Entity::Client(_) => { | ||
let client = entities.get_mut(id).unwrap().as_mut_client(); | ||
let closed_client_topology_id = client.topology_id; | ||
client.client = None; | ||
client | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Subtle bug - spawning a future in the client's This did get me thinking that we could speed up these |
||
.client | ||
.take() | ||
.unwrap() | ||
.shutdown() | ||
.immediate(true) | ||
.await; | ||
|
||
let mut entities_to_remove = vec![]; | ||
for (key, value) in entities.iter() { | ||
|
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.
This implementation would make more sense on
ClientInner
, which will only drop when all copies of the client are released; however, the operation execution machinery is implemented onClient
, which is needed to callrun_command
. Additionally, something like this doesn't work becausedrop
only takes a mutable reference: