diff options
author | Stefan Schmidt <ubschmidt2@users.noreply.github.com> | 2017-11-09 22:28:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-09 22:28:57 +0100 |
commit | 32cc8dd045a2502dffa792fd87ff9e994d8e7496 (patch) | |
tree | 829ef99fbe8efaadbf2115a308e0a101217a5ff1 /impl_core/src/test/java/io/opencensus/implcore/tags/propagation/TagContextDeserializationTest.java | |
parent | 6fe9afd81e65230806d0f0d13bf75b233893beb8 (diff) | |
download | opencensus-java-32cc8dd045a2502dffa792fd87ff9e994d8e7496.tar.gz |
Fix the wrong use of notify and wait. (#798)
The previous code was using low-level synchronization based on
notify and wait - and it was wrong. The code allowed for a race condition
where notify is called before wait. In that case, notify will have no effect,
and wait will wait forever until interrupted by the test timeout.
I believe this to be the root cause of #793 (and the previous occurrences
in #540).
Just avoid the low-level synchronization and use Semaphore instead.
Diffstat (limited to 'impl_core/src/test/java/io/opencensus/implcore/tags/propagation/TagContextDeserializationTest.java')
0 files changed, 0 insertions, 0 deletions