Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
1.7.32
-
None
-
None
-
centos8_aarch64
Description
when I mvn test in slf4j@1.7.32,it happened:
I want to know what happens in this function:
It returns a value of eventCount.get(), which is shown above as 2305 (not fixed) but later as 2275 and passed to the recordedEventCount variable. The expectedEventCount variable is directly determined by the eventCount.get() and extraLogEvents() functions. The return value of extraLogEvents() is 0. Therefore, expectedEventCount is directly transferred by the eventCount.get() function and returns 2305. The final result is 2305 < = 2275 + 16. The key information is why eventCount.get() changes. Check the log code related to eventCount.get():
The value of expectedEventCount must be smaller than the value of recordedEventCount+LENIENCY_COUNT, which indicates the tolerance value. That is, the tolerance value range should be extended. However, the initialization should be thread-safe. As a result, the tolerance value range is limited. As a result, an error is reported.So if I can change it this way: