Shubham Sharma created HIVE-28996:
-------------------------------------
Summary: Fix invalid string formatting to prevent
NumberFormatException
Key: HIVE-28996
URL: https://issues.apache.org/jira/browse/HIVE-28996
Project: Hive
Issue Type: Bug
Components: Hive
Affects Versions: 4.0.1, 4.0.0
Reporter: Shubham Sharma
Assignee: Shubham Sharma
Syntax issue at line -
[https://github.com/apache/hive/blob/89e7d4a31b32317188f91aed8ce30e0d36600acc/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/Msck.java#L402]
leading to below exception
{code:java}
ERROR : DDLTask failed, DDL Operation: class
org.apache.hadoop.hive.ql.ddl.misc.msck.MsckOperationjava.lang.IllegalArgumentException:
can't parse argument number: at
java.text.MessageFormat.makeFormat(MessageFormat.java:1451) ~[?:?] at
java.text.MessageFormat.applyPattern(MessageFormat.java:491) ~[?:?] at
java.text.MessageFormat.<init>(MessageFormat.java:370) ~[?:?] at
java.text.MessageFormat.format(MessageFormat.java:859) ~[?:?] at
org.apache.hadoop.hive.metastore.Msck.validateAndAddMaxTxnIdAndWriteId(Msck.java:402)
~[hive-exec-4.0.0.jar:4.0.0] at
org.apache.hadoop.hive.metastore.Msck.repair(Msck.java:266)
~[hive-exec-4.0.0.jar:4.0.0] at
org.apache.hadoop.hive.ql.ddl.misc.msck.MsckOperation.execute(MsckOperation.java:78)
~[hive-exec-4.0.0.jar:4.0.0] at
org.apache.hadoop.hive.ql.ddl.DDLTask.execute(DDLTask.java:84)
~[hive-exec-4.0.0.jar:4.0.0] at
org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:214)
~[hive-exec-4.0.0.jar:4.0.0] at
org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:105)
~[hive-exec-4.0.0.jar:4.0.0] at
org.apache.hadoop.hive.ql.Executor.launchTask(Executor.java:354)
~[hive-exec-4.0.0.jar:4.0.0] ...Caused by: java.lang.NumberFormatException:
For input string: "" at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
~[?:?] at java.lang.Integer.parseInt(Integer.java:662) ~[?:?] at
java.lang.Integer.parseInt(Integer.java:770) ~[?:?] at
java.text.MessageFormat.makeFormat(MessageFormat.java:1449) ~[?:?] ... 29
more{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)