[
https://issues.apache.org/jira/browse/HUDI-6694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Y Ethan Guo updated HUDI-6694:
------------------------------
Fix Version/s: 0.14.0
> Fix log file CLI around command blocks
> --------------------------------------
>
> Key: HUDI-6694
> URL: https://issues.apache.org/jira/browse/HUDI-6694
> Project: Apache Hudi
> Issue Type: Bug
> Reporter: Ethan Guo (this is the old account; please use "yihua")
> Assignee: Ethan Guo (this is the old account; please use "yihua")
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.14.0
>
>
> When there are rollback command blocks in the log files, the log file command
> throws NPE:
> {code:java}
> hudi:hoodie_table->show logfile metadata --logFilePathPattern
> file:<base_path>/.1414abd2-346b-4c84-b380-c6ea6ec0863a-0_20230813220941456.log*
> java.lang.NullPointerException
> at java.util.Objects.requireNonNull(Objects.java:203)
> at
> org.apache.hudi.cli.commands.HoodieLogFileCommand.showLogFileCommits(HoodieLogFileCommand.java:102)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.springframework.shell.command.invocation.InvocableShellMethod.doInvoke(InvocableShellMethod.java:306)
> at
> org.springframework.shell.command.invocation.InvocableShellMethod.invoke(InvocableShellMethod.java:232)
> at
> org.springframework.shell.command.CommandExecution$DefaultCommandExecution.evaluate(CommandExecution.java:158)
> at org.springframework.shell.Shell.evaluate(Shell.java:208)
> at org.springframework.shell.Shell.run(Shell.java:140)
> at
> org.springframework.shell.jline.InteractiveShellRunner.run(InteractiveShellRunner.java:73)
> at
> org.springframework.shell.DefaultShellApplicationRunner.run(DefaultShellApplicationRunner.java:65)
> at
> org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:762)
> at
> org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:752)
> at
> org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
> at
> org.springframework.boot.SpringApplication.run(SpringApplication.java:1306)
> at
> org.springframework.boot.SpringApplication.run(SpringApplication.java:1295)
> at org.apache.hudi.cli.Main.main(Main.java:34)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)