Commit 3a99bd9
authored
[test] Fix race condition in DaVinciClientTest (#1361)
There exists a race condition in DaVinciClientTest where tests with different schemas running concurrently can cause VeniceInconsistentSchemaException. This is because all of the tests in this file share the same directory, and the validation logic reads the first schema file in the directory.
The fix for this is to create a new temp directory for each test to avoid collisions.1 parent 1b40264 commit 3a99bd9
File tree
2 files changed
+16
-9
lines changed- clients/da-vinci-client/src/main/java/com/linkedin/davinci/kafka/consumer
- internal/venice-test-common/src/integrationTest/java/com/linkedin/venice/endToEnd
2 files changed
+16
-9
lines changedLines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3562 | 3562 | | |
3563 | 3563 | | |
3564 | 3564 | | |
3565 | | - | |
3566 | 3565 | | |
3567 | 3566 | | |
3568 | 3567 | | |
| |||
Lines changed: 16 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
149 | 147 | | |
150 | 148 | | |
151 | 149 | | |
152 | 150 | | |
153 | | - | |
154 | | - | |
155 | 151 | | |
156 | 152 | | |
157 | 153 | | |
| |||
1616 | 1612 | | |
1617 | 1613 | | |
1618 | 1614 | | |
| 1615 | + | |
| 1616 | + | |
1619 | 1617 | | |
1620 | 1618 | | |
1621 | 1619 | | |
| |||
1632 | 1630 | | |
1633 | 1631 | | |
1634 | 1632 | | |
1635 | | - | |
| 1633 | + | |
| 1634 | + | |
1636 | 1635 | | |
1637 | 1636 | | |
1638 | 1637 | | |
| |||
1649 | 1648 | | |
1650 | 1649 | | |
1651 | 1650 | | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
1652 | 1654 | | |
1653 | 1655 | | |
1654 | 1656 | | |
| |||
1665 | 1667 | | |
1666 | 1668 | | |
1667 | 1669 | | |
1668 | | - | |
| 1670 | + | |
| 1671 | + | |
1669 | 1672 | | |
1670 | 1673 | | |
1671 | 1674 | | |
| |||
1681 | 1684 | | |
1682 | 1685 | | |
1683 | 1686 | | |
| 1687 | + | |
| 1688 | + | |
1684 | 1689 | | |
1685 | 1690 | | |
1686 | 1691 | | |
| |||
1697 | 1702 | | |
1698 | 1703 | | |
1699 | 1704 | | |
1700 | | - | |
| 1705 | + | |
| 1706 | + | |
1701 | 1707 | | |
1702 | 1708 | | |
1703 | 1709 | | |
| |||
1708 | 1714 | | |
1709 | 1715 | | |
1710 | 1716 | | |
1711 | | - | |
| 1717 | + | |
| 1718 | + | |
1712 | 1719 | | |
1713 | 1720 | | |
1714 | 1721 | | |
1715 | 1722 | | |
| 1723 | + | |
1716 | 1724 | | |
1717 | 1725 | | |
1718 | 1726 | | |
| |||
0 commit comments