mirror of https://github.com/apache/lucene.git
Don't generate stacktrace in CollectionTerminatedException (#12270)
CollectionTerminatedException is always caught and never exposed to users so there's no point in filling in a stack-trace for it.
This commit is contained in:
parent
9a7efe92c0
commit
add9aba16d
|
@ -72,6 +72,8 @@ Optimizations
|
|||
|
||||
* GITHUB#12160: Concurrent rewrite for AbstractKnnVectorQuery. (Kaival Parikh)
|
||||
|
||||
* GITHUB#12270 Don't generate stacktrace in CollectionTerminatedException. (Armin Braun)
|
||||
|
||||
Bug Fixes
|
||||
---------------------
|
||||
|
||||
|
|
|
@ -31,4 +31,10 @@ public final class CollectionTerminatedException extends RuntimeException {
|
|||
public CollectionTerminatedException() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Throwable fillInStackTrace() {
|
||||
// never re-thrown so we can save the expensive stacktrace
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue