Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3039

ClassCache: Cached class map key is too broad

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.10.1
    • None
    • csharp
    • None

    Description

      Currently ClassMap's cache is keyed by the schema full name.  This restricts clients to providing one Plain Old C# Object (POCO) model per schema.  In some cases a client might wish to provide multiple POCO per schema name, perhaps to support multiple versions of the same schema name in the same runtime.

      A fix is to use the full RecordSchema as the key instead of just the name.

      Additionally, there's a bug in ReflectDefaultReader that can access the incorrect class member property.  Only the reader schema should be used to determine the correct DotNetClass for reading.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jgonyo-snag John Gonyo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: