Repository navigation
Commit f8afc05
committed
GH-1455: Keep TestReservationListener from closing a pool still in use
testErrorThrownFromReservationListener closed its listenable
NativeMemoryPool right after the scan failed. Arrow C++ can still be
running the failed scan's work on its thread pools, and that work keeps
using the pool, so freeing it could crash the test JVM. Leave the pool
open in that test, and close the scanner and dataset in
collectResultFromFactory when the scan fails.1 parent 9958420 commit f8afc05
2 files changed
Lines changed: 6 additions & 9 deletions
File tree
- dataset/src/test/java/org/apache/arrow/dataset
- jni
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
77 | 74 | | |
78 | 75 | | |
79 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | 125 | | |
128 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
0 commit comments