[SERVER-22223] proposal to send a response before shutdown Created: 19/Jan/16 Updated: 06/Dec/22 Resolved: 25/Jan/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Marcel Timmerman | Assignee: | Backlog - Storage Execution Team |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Storage Execution
|
| Backwards Compatibility: | Fully Compatible |
| Participants: |
| Description |
|
Writing a driver for perl6 I found that when I want to use runCommand to shutdown a server, the server will not respond to it when it is really going down. In that case I must check if there are any bytes send back to know that it did shutdown. It is much cleaner and consequent to sent a last {ok: true}. I presume that when the server could not shutdown it would send a message {ok:0} with whatever reason. This case exists otherwise it was not necessary to have a {force:1} option. Greetings |
| Comments |
| Comment by Martin Bligh [ 26/Jan/16 ] |
|
We can't reply that we've successfully shutdown because we don't know the operation is succeeded until it's too late to reply |