Commit d26d1e4
authored
Avoid reusing shared metrics evaluator (#1664)
Hello!
I have noticed the same issue as Issue #1506 where the number of results
retrieved is inconsistent across reads and traced the issue to the reuse
of the same metrics evaluator across threads when reading manifests.
Because the metrics evaluator is stateful, this will result in the wrong
results being retrieved nondeterministically, depending on the execution
order of the threads.
This PR addresses the issue by creating a single metrics evaluator per
thread, which I have tested locally. Please let me know if there are any
tests I can add, and I am happy to receive feedback.
Thank you!
Closes #15061 parent c4715c0 commit d26d1e4
1 file changed
+15
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1608 | 1608 | | |
1609 | 1609 | | |
1610 | 1610 | | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
1611 | 1625 | | |
1612 | 1626 | | |
1613 | 1627 | | |
| |||
1671 | 1685 | | |
1672 | 1686 | | |
1673 | 1687 | | |
1674 | | - | |
1675 | | - | |
1676 | | - | |
1677 | | - | |
1678 | | - | |
1679 | | - | |
1680 | | - | |
1681 | 1688 | | |
1682 | 1689 | | |
1683 | 1690 | | |
| |||
1693 | 1700 | | |
1694 | 1701 | | |
1695 | 1702 | | |
1696 | | - | |
| 1703 | + | |
1697 | 1704 | | |
1698 | 1705 | | |
1699 | 1706 | | |
| |||
0 commit comments