Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.1.2, 4.0.0
Description
Issue
Some api in ObjectStore invoke getMTable() but not check that if the returned value is null, which caused the NPE, like addPartitions(), addPartition(), alterPartition() et.
Reason
Such api described above will check that whether the table exists in HMSHandler (first check), but if the table is dropped by other threads after the first check, the NPE will happen.
The simple idea is that we can check the table each time we get from getMTable().
Stack example
Attachments
Attachments
Issue Links
- links to