You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Vova Kolmakov (Jira)" <ji...@apache.org> on 2024/03/29 13:44:00 UTC

[jira] [Closed] (HUDI-6819) Fix logic to throw exception in HoodieBackedTableMetadataWriter

     [ https://issues.apache.org/jira/browse/HUDI-6819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vova Kolmakov closed HUDI-6819.
-------------------------------
    Resolution: Invalid

no such code in current master branch

> Fix logic to throw exception in HoodieBackedTableMetadataWriter
> ---------------------------------------------------------------
>
>                 Key: HUDI-6819
>                 URL: https://issues.apache.org/jira/browse/HUDI-6819
>             Project: Apache Hudi
>          Issue Type: Bug
>            Reporter: Amrish Lal
>            Priority: Major
>
> The code
> {code:java}
> if (recordDelegate1.getNewLocation().isPresent() && recordDelegate2.getNewLocation().isPresent()) {
>                 throw new HoodieIOException("Both version of records does not have location set. Record V1 " + recordDelegate1.toString()
>       + ", Record V2 " + recordDelegate2.toString());
> } {code}
> should be:
> {code:java}
> if (!recordDelegate1.getNewLocation().isPresent() && !recordDelegate2.getNewLocation().isPresent()) {
>   throw new HoodieIOException("Both version of records do not have location set. Record V1 " + recordDelegate1.toString()
>       + ", Record V2 " + recordDelegate2.toString());
> } {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)