lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [lucenenet] hindikaynen opened a new pull request #224: https://issues.apache.org/jira/browse/LUCENENET-607
Date Mon, 04 Mar 2019 10:25:42 GMT
hindikaynen opened a new pull request #224: https://issues.apache.org/jira/browse/LUCENENET-607
URL: https://github.com/apache/lucenenet/pull/224
 
 
   StringHelper.GOOD_FAST_HASH_SEED property is not thread-safe and could return different
values if called in severeal threads in one moment, so it could result in duplicate values
in BytesRefHash (same values return different hashes because hashes were calcucated with different
seeds).
   
   There is another issue with GOOD_FAST_HASH_SEED. DateTime.Now.Millisecond is used to randomize
the seed, but DateTime.Now.Millisecond could return 0 and this value is treated an "uninitialized"
and the second GOOD_FAST_HASH_SEED call will return another value.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message