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

Regression AVRO-1760 : Thread scalability problem with the use of SynchronizedMap

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.11.3
    • None

    Description

      This is a regression of AVRO-1760 which is causing production performance problems.

      In AVRO-1760 the issue was fixed that there is a scalability problem with AVRO being used in multithreaded situations.

      The solution that was implemented for this ticket uses a different Map implementation (part of Guava) that does not have these locking issues:

      https://github.com/apache/avro/commit/363360229e7ea5f816d87f9d5747dd4494d3b862#diff-422f44890f5e0ab1f508a7c75d0d18fc7831a1c3ca13e0c97780617570c50d5cL970-L973

      Investigating the performance of our internal application has made us conclude the original problem was reintroduced with this commit:

      https://github.com/apache/avro/commit/c78a3d5ea4e7e511ba9f6182157956db3e65e1a0#diff-422f44890f5e0ab1f508a7c75d0d18fc7831a1c3ca13e0c97780617570c50d5cL986-L988

      which seems to be related to this jira AVRO-2265 "Remove Guava as a dependency".

      Attachments

        Issue Links

          Activity

            People

              nielsbasjes Niels Basjes
              nielsbasjes Niels Basjes
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 40m
                  2h 40m