Commit f1a3472
committed
fix: filter per-thread archives in RAC online mode (#14)
archGetLogOnline() queried V$ARCHIVED_LOG from minSeq across all threads
but created Parser objects for every row, including already-processed
archives from the ahead thread. On a 2-node RAC with ~1600 seq divergence
this allocated ~1600 unnecessary 1MB Parser chunks, causing OOM.
Add per-thread filtering on query results, matching archGetLogPath() and
archGetLogList() logic. Verified: RSS dropped from 1012MB to 115MB.1 parent 4505579 commit f1a3472
2 files changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1601 | 1601 | | |
1602 | 1602 | | |
1603 | 1603 | | |
1604 | | - | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
1605 | 1607 | | |
1606 | 1608 | | |
1607 | 1609 | | |
| |||
1610 | 1612 | | |
1611 | 1613 | | |
1612 | 1614 | | |
1613 | | - | |
1614 | 1615 | | |
1615 | 1616 | | |
1616 | 1617 | | |
| |||
1639 | 1640 | | |
1640 | 1641 | | |
1641 | 1642 | | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
1642 | 1653 | | |
1643 | 1654 | | |
1644 | 1655 | | |
| |||
1647 | 1658 | | |
1648 | 1659 | | |
1649 | 1660 | | |
1650 | | - | |
1651 | | - | |
| 1661 | + | |
| 1662 | + | |
1652 | 1663 | | |
1653 | 1664 | | |
1654 | 1665 | | |
| |||
0 commit comments