This is an automated email from the ASF dual-hosted git repository. voonhous pushed a commit to branch release-1.2.1 in repository https://gitbox.apache.org/repos/asf/hudi.git
commit c19105f07e2d48d4c6c2052ed5f6605977537472 Author: voon <[email protected]> AuthorDate: Thu Aug 6 01:22:49 2026 +0800 fix(build): import lock result enums from their release-branch package TestLockResultEnums, added by 86871e04030c (#19224), references LockGetResult and LockUpsertResult unqualified. On master those enums sit in org.apache.hudi.client.transaction.lock, the same package as the test, so no import was needed. On release-1.2.1 they are still in the .models subpackage (org.apache.hudi.client.transaction.lock.models), so the references did not resolve and hudi-client-common failed to test-compile with "package LockGetResult does not exist". Add both imports. The enum shapes match what the test asserts: LockGetResult NOT_EXISTS(0)/SUCCESS(1)/UNKNOWN_ERROR(2) and LockUpsertResult SUCCESS(0)/ACQUIRED_BY_OTHERS(1)/UNKNOWN_ERROR(2)/ THROTTLED(3), with getCode() generated by Lombok @Getter. Same root cause as 46d3c8494aa2. --- .../org/apache/hudi/client/transaction/lock/TestLockResultEnums.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hudi-client/hudi-client-common/src/test/java/org/apache/hudi/client/transaction/lock/TestLockResultEnums.java b/hudi-client/hudi-client-common/src/test/java/org/apache/hudi/client/transaction/lock/TestLockResultEnums.java index 51e944c214a9..41caaa78575c 100644 --- a/hudi-client/hudi-client-common/src/test/java/org/apache/hudi/client/transaction/lock/TestLockResultEnums.java +++ b/hudi-client/hudi-client-common/src/test/java/org/apache/hudi/client/transaction/lock/TestLockResultEnums.java @@ -18,6 +18,9 @@ package org.apache.hudi.client.transaction.lock; +import org.apache.hudi.client.transaction.lock.models.LockGetResult; +import org.apache.hudi.client.transaction.lock.models.LockUpsertResult; + import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals;
