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

Optimize schema retrieval in HortonworksSchemaRegistry

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Extensions
    • None

    Description

      If HortonworksSchemaRegistry is used by a processor with multiple threads (Concurrent Tasks > 1) and no schema version has been specified (so the 'latest' one needs to be retrieved), then the threads refresh the NiFi side schema cache in parallel / multiple times. Subsequent threads should block until the first one retrieves the schema from SchemaRegistryClient.

      Proposed solution: use a cache implementation that correctly handles parallel get() requests (eg. caffeine).

      Attachments

        Activity

          People

            Unassigned Unassigned
            turcsanyip Peter Turcsanyi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: