Uploaded image for project: 'Couchbase Gateway'
  1. Couchbase Gateway
  2. CBG-287

Avoid unnecessary 'too late to disable compression' log warning

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • 2.6.0
    • 2.1.2
    • SyncGateway
    • Security Level: Public
    • None
    • CBG Sprint 19
    • 5

    Description

      User has reported instances of log messages like the following after upgrading from 1.4.0 to 2.1.2:

      2019-03-28 15:21:09.317707 I | http: multiple response.WriteHeader calls
      2019-03-28T15:21:09.317-07:00 [WRN] EncodedResponseWriter: Too late to disableCompression! – rest.(*EncodedResponseWriter).disableCompression() at encoded_response_writer.go:63

       

      It's not clear exactly what request is triggering this, but the code associated with the warning (EncodedResponseWriter.disableCompression) seems to suggest it could occur if disableCompression were called twice during the same request (which may align with the 'multiple response.WriteHeader calls' error).  Without additional repro steps, might require digging through the code to identify potential scenarios.

      Attachments

        Issue Links

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

          Activity

            People

              jacques.rascagneres Jacques Rascagneres
              adamf Adam Fraser
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty