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

Confluent Schema Registry - not tolerant to error in single Subject

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.0
    • 1.5.0
    • Core Framework
    • None

    Description

      Getting Could not find Schema with id 12345 from the Confluent Schema Registry.

      Root cause:
      1. RestSchemaRegistryClient.java - gets all subjects from the registry

      https://{registry}/subjects

      2. Iterates through the subjects to get schema IDs (getSchema method line 113-126)

      https://{registry}/subjects/{subjectname}/ids/latest

      3. If ANY subject in the list of subjects has an error / resource not found, lookup FAILS, even if the subject with the matching ID is anywhere in the list of subjects.

      Proposed Fix:
      Tolerate individual subject calls that return errors (NOT_FOUND status).

      Attachments

        Issue Links

          Activity

            People

              markap14 Mark Payne
              dtorok Dave Torok
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: