Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-1190

Implement "backpressure" support on query receiver to avoid OOM

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 3.0.0-alpha.1
    • 2.5.7
    • Core
    • None
    • 1

    Description

      The current implementation is capable of reaching OOM if a large stream is being received from the query engine and the application-level processing is not fast enough to keep up.

       

      This is a request to implement "backpressure" (for lack of a better word) within the client to prevent over-use of memory.  According to Marco Greco: all the SDK has to do is decide that it already has too much memory in use and delay a recv() until memory is manegeable. the server will slow down just because the client is not reading

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              subhashni Subhashni Balakrishnan (Inactive)
              perry Perry Krug
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty