Details
-
Bug
-
Status: Open
-
Critical
-
Resolution: Unresolved
-
1.2.2, 3.1.3
-
None
-
None
-
hdp ambari 26
hive1.2.0
Description
- caused by an error UDF function!time_waiting(Long sleepSeconds)
public class UDFTimeWaiting extends UDF throws Exception{ public String evaluate(String sleepSeconds){ ... Thread.sleep(Long.parseLong(sleepSeconds) * 1000); return "ok"; } }
- in session_1:
select time_waiting(100);
- in session_2:
select 1; or show tables;
- session_2 will not have any response from thrift server until session_1 waiting 100 seconds!
this bug may cause hiveserver come into an unavailable status!
- session_1 run waiting 200s,
- session_2 run at the same time ,but blocked by session_1 , see the pic,waiting 197s after session_1 returned then returned
- if someone want to attack or do sth ,hiveserver will not be down,but not available again!