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

Infinite Recursion

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.10.2
    • Fix Version/s: None
    • Component/s: csharp
    • Labels:
      None
    • Environment:

      Windows

      Description

      Test Name:	AvroSchemaGenerator.Tests.GetSchemaTest.TestRecursiveSchema
      Test Outcome:	Passed
      Result StandardOutput:	{"type":"record","namespace":"AvroSchemaGenerator.Tests","name":"Recursive","fields":[{"name":"Fo","type":["null",{"type":"record","namespace":"AvroSchemaGenerator.Tests","name":"SimpleFoo","fields":[{"name":"Age","type":"int"},{"name":"Name","type":"string"},{"name":"FactTime","type":"long"},{"name":"Point","type":"double"},{"name":"Precision","type":"float"},{"name":"Attending","type":"boolean"},{"name":"Id","type":["null","bytes"],"default":null}]}],"default":null},{"name":"Recurse","type":["null","Recursive"],"default":null}]}
      
      //ClassCache 
      AddClassNameMapItem(rs, objType);
                          var c = GetClass(rs);
                          foreach (var f in rs.Fields)
                          {
                              var t = c.GetPropertyType(f);
                              LoadClassCache(t, f.Schema);
                          }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mestical Ebere Abanonu
                Reporter:
                mestical Ebere Abanonu
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: