Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-6501

Add config to limit buffer queue size in CaptureChangeMySQL

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.9.2, 1.14.0, 1.13.1, 1.13.2
    • 1.20.0
    • Configuration

    Description

      CaptureChangeMySQL processor registers a listener with Blocking Queue as buffer with the BinLogClient. When the thread polling from the Queue is slower compared to writer, the queue grows uncontrollably and brings down the node.

      Since the flow writing to listeners in [mysql-binlog-connector-java|https://github.com/shyiko/mysql-binlog-connector-java] is blocking, we should initialize the queue with initial size and queue offer timeout specified by the user based in cluster configuration.

      http://apache-nifi-developer-list.39713.n7.nabble.com/NiFi-Cluster-crashes-while-running-CaptureChangeMySQL-for-CDC-td20895.html

      Attachments

        Activity

          People

            mattyb149 Matt Burgess
            pushpavanthar Purushotham Pushpavanthar
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3h 50m
                3h 50m