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

ObjectCreator.cs is not thread safe

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.5
    • Fix Version/s: 1.7.6
    • Component/s: csharp
    • Labels:
      None
    • Environment:

      Windows

      Description

      Public methods ObjectCreator.GetType() assign to shared fields without locks. This causes unpredictable behaviour in a multi-threaded application. The easiest fix is to simply remove the shared variables as they appear to exist as a potential performance improvement but constructing local variables seems to add no significant overhead.

        Attachments

        1. ObjectCreator.cs.diff
          2 kB
          David Taylor

          Activity

            People

            • Assignee:
              davidtaylor David Taylor
              Reporter:
              davidtaylor David Taylor
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: