Uploaded image for project: 'Couchbase Elasticsearch Connector'
  1. Couchbase Elasticsearch Connector
  2. CBES-303

`max_bytes_length_exceeded_exception` causes retry loop

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None
    • 3

    Description

      If the connector sends a too-long value for a field of type `keyword`, Elasticsearch responds like this:

      ElasticsearchException[Elasticsearch exception [type=max_bytes_length_exceeded_exception, reason=max_bytes_length_exceeded_exception: bytes can be at most 32766 in length; got 1658739]]
      

      When this happens, the connector should add a record to the reject log instead of retrying forever.

      This error condition indicates the field's type mapping is incorrect. Possible fixes include changing the type definition from `keyword` to `text`, or adding an `ignore_above` threshold to the `keyword` field.

      Attachments

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

        Activity

          People

            david.nault David Nault
            david.nault David Nault
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty