Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.23.0
-
None
-
Reviewed
Description
Currently, the edit log loader does not handle bad or malicious input sensibly.
We can often cause OutOfMemory exceptions, null pointer exceptions, or other unchecked exceptions to be thrown by feeding the edit log loader bad input. In some environments, an out of memory error can cause the JVM process to be terminated.
It's clear that we want these exceptions to be thrown as IOException instead of as unchecked exceptions. We also want to avoid out of memory situations.
The main task here is to put a sensible upper limit on the lengths of arrays and strings we allocate on command. The other task is to try to avoid creating unchecked exceptions (by dereferencing potentially-NULL pointers, for example). Instead, we should verify ahead of time and give a more sensible error message that reflects the problem with the input.
Attachments
Attachments
Issue Links
- depends upon
-
HADOOP-8275 Range check DelegationKey length
- Closed
- is blocked by
-
HADOOP-8361 Avoid out-of-memory problems when deserializing strings
- Closed