[SERVER-18929] Add method to get how many bytes can be written in to ReplyBuilderInterface Created: 11/Jun/15 Updated: 05/Feb/16 Resolved: 19/Jun/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Networking |
| Affects Version/s: | None |
| Fix Version/s: | 3.1.5 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Adam Midvidy | Assignee: | Misha Tyulenev |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Minor Change | ||||||||
| Sprint: | Platform 5 06/26/16 | ||||||||
| Participants: | |||||||||
| Description |
|
As OP_COMMANDREPLY can take ~48MB of output docs, and OP_REPLY (for commands) is limited to the 16MB document limit, commands that use output docs need to know when to stop appending documents to the response. We should add a new method to ReplyBuilderInterface:
That returns how many bytes can be written to the message. Then we will need concrete implementations in CommandReplyBuilder (OP_COMMANDREPLY) and LegacyReplyBuilder (OP_REPLY) cc: david.storch |
| Comments |
| Comment by Githook User [ 19/Jun/15 ] |
|
Author: {u'username': u'mikety', u'name': u'Misha Tyulenev', u'email': u'misha@mongodb.com'}Message: |
| Comment by Githook User [ 19/Jun/15 ] |
|
Author: {u'name': u'Misha Tyulenev', u'email': u'misha.tyulenev@mongodb.com'}Message: |