Git Product home page Git Product logo

mchange-commons-java's People

Contributors

fireandfuel avatar ljader avatar mbooth101 avatar sebasbaumh avatar swaldman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mchange-commons-java's Issues

identicator.IdMap.get is not thread-safe and leads thread to be hanged

I have a code which creates c3p0 ComboPooledDataSource. The code is called by multiple threads concurrently. I found that those threads hang from time to time.

Here is the stacktrace when the threads hang:

"Thread-1334" daemon prio=10 tid=0x0000000040f56000 nid=0x7527 runnable [0x00007f97d5ba6000]
  java.lang.Thread.State: RUNNABLE
        at java.util.HashMap.get(HashMap.java:303)
        at com.mchange.v1.identicator.IdMap.get(IdMap.java:63)
        at com.mchange.v1.identicator.IdWeakHashMap.get(IdWeakHashMap.java:94)
        at com.mchange.v2.encounter.AbstractEncounterCounter.encounter(AbstractEncounterCounter.java:53)
        at com.mchange.v2.c3p0.impl.C3P0ImplUtils.allocateIdentityToken(C3P0ImplUtils.java:152)
        at com.mchange.v2.c3p0.impl.PoolBackedDataSourceBase.<init>(PoolBackedDataSourceBase.java:238)
        at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.<init>(AbstractPoolBackedDataSource.java:74)
        at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledDataSource.java:134)
        at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledDataSource.java:130)

HashMap.get and .set are not thread-safe. So creating ComboPooledDataSource in multiple threads concurrently causes infinite loop.

Licence file does not exist in the source jar

Hello contributors, we (Backup & DR team at Google Cloud) are using maven source plugin to pull the source jar for mchange-commons-java library but can not seem to find EPL 2.0 license file in the source jar. Could you please add the licenses in the source jar for the mchange-commons-java library? Please let me know if you need any details. Thanks !

Additional GPL license header in 3 source files?

The following files have a GPL license header right after your standard header:

  1. IOByteArrayEnumeration.java
  2. IOByteArrayMap.java
  3. IOEnumeration.java

Is that intended or is it a leftover from a former license change? As there is no explanation it is unclear which license is valid. If it is GPL for these 3 files the complete mchange-commons-java artifact would effectively become GPL, wouldn't it?

This is important for us (and likely others as well) as we cannot use GPL artifacts.
The removal of the GPL headers or a clarification of the license would be great.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.