mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-25 14:26:27 +00:00
Remove stale comment from JVM stats (#29625)
We removed catched throwable from the code base and left behind was a comment about catching InternalError in MemoryManagementMXBean. We are not going to catch InternalError here as we expect that to be fatal. This commit removes that stale comment.
This commit is contained in:
parent
293f85cd52
commit
a829d920ee
@ -82,10 +82,8 @@ public class JvmStats implements Writeable, ToXContentFragment {
|
||||
peakUsage.getUsed() < 0 ? 0 : peakUsage.getUsed(),
|
||||
peakUsage.getMax() < 0 ? 0 : peakUsage.getMax()
|
||||
));
|
||||
} catch (Exception ex) {
|
||||
/* ignore some JVMs might barf here with:
|
||||
* java.lang.InternalError: Memory Pool not found
|
||||
* we just omit the pool in that case!*/
|
||||
} catch (final Exception ignored) {
|
||||
|
||||
}
|
||||
}
|
||||
Mem mem = new Mem(heapCommitted, heapUsed, heapMax, nonHeapCommitted, nonHeapUsed, Collections.unmodifiableList(pools));
|
||||
|
Loading…
x
Reference in New Issue
Block a user