Product Selector

Fusion 5.12
    Fusion 5.12

    Troubleshoot failed datasource jobs

    When indexing large files, or large quantities of files, you may encounter issues such as datasource jobs failing or documents not making it into Fusion.

    Overview

    When data flows into Fusion, it passes through a Kafka topic first. When the number of documents being created by a connector is large, or when the connector is pulling data into the Kafka topic faster than it can be indexed, the topic fills up and the datasource job fails. For example, if your connector is inputting a large CSV file where every row is imported as a separate Solr document, the indexing processing can time out before the document is fully ingested.

    Identify the cause

    If you experience failed datasource jobs or notice your connector isn’t grabbing all the documents it should, check the logs for the Kafka pod. Look for a message containing the phrases resetting offset and is out of range, which indicate data has been dropped.

    2024-05-28T11:49:40.812Z - INFO  [pool-140-thread-3:org.apache.kafka.clients.consumer.internals.Fetcher@1413] - [Consumer clientId=example_Products-irdcsn, groupId=index-pipeline--example_Products--fusion.connectors.datasource-products_S3_Load] Fetch position FetchPosition{offset=6963199, offsetEpoch=Optional[0], currentLeader=LeaderAndEpoch{leader=Optional[fusion5-kafka-0.fusion5-kafka-headless.fusion5.svc.cluster.local:9092 (id: 0 rack: null)], epoch=0}} is out of range for partition fusion.connectors.datasource-products_S3_Load-2, resetting offset

    Adjust indexing settings

    If you determine that your datasource job is failing due to an issue in Kafka, there are a few options to try.

    Adjust retention parameters

    One solution is to adjust the Kafka data retention parameters to prevent the disk from filling up. Configure these settings in your values.yaml file in the Helm chart.

    1. The default value for kafka.logRetentionBytes is 1073741824 bytes (1 GB). Try increasing this value to 2147483648 bytes (2 GB) or 3221225472 (3 GB), or larger depending on the size of your documents.

      In Fusion 5.9.5, this default value is increased to 5 GB.
    2. The default value for kafka.logRetentionHours is 168 (7 days). If you increase kafka.logRetentionBytes by a significant amount (for example, 20 GB), you might need to adjust this setting to prevent disk space issues.

    3. In Fusion, go to Indexing > Datasources and create a new datasource to trigger a new Kafka topic that incorporates these settings.

    Adjust fetch settings

    Another option is to decrease the values for number of fetch threads and request page size in your datasource settings.

    1. In Fusion, go to Indexing > Datasources and click your datasource.

    2. Click the Advanced slider to show more settings.

    3. Reduce the number of Fetch Threads.

      Fetch settings

    4. Reduce the Request Page Size.

      Request page size

      This setting might not be available in every connector.