avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdblue <...@git.apache.org>
Subject [GitHub] avro pull request: AVRO-607. Make SpecificData#getSchema thread-sa...
Date Tue, 31 Mar 2015 01:21:54 GMT
GitHub user rdblue opened a pull request:

    https://github.com/apache/avro/pull/30

    AVRO-607. Make SpecificData#getSchema thread-safe.

    This adds a version of WeakIdentityHashMap that is thread-safe by
    replacing the backing Map implementation with ConcurrentHashMap. Both
    WeakIdentityHashmap and the new WeakIdentityConcurrentMap are subclases
    of the (new) WeakIdentityMap, which allows subclasses to supply a
    backing map implementation.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rdblue/avro AVRO-607-concurrent-schema-cache

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/avro/pull/30.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #30
    
----
commit b287db7560928d88b1ef1dd0cc79d1ad3e7cfa1e
Author: Ryan Blue <blue@apache.org>
Date:   2015-03-31T00:31:36Z

    AVRO-607. Make SpecificData#getSchema thread-safe.
    
    This adds a version of WeakIdentityHashMap that is thread-safe by
    replacing the backing Map implementation with ConcurrentHashMap. Both
    WeakIdentityHashmap and the new WeakIdentityConcurrentMap are subclases
    of the (new) WeakIdentityMap, which allows subclasses to supply a
    backing map implementation.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message