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:
Armin Braun 2023-05-09 10:18:52 +02:00 committed by GitHub
parent 9a7efe92c0
commit add9aba16d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -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
---------------------

View File

@ -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;
}
}