pratham76 commented on code in PR #19235:
URL: https://github.com/apache/iceberg/pull/19235#discussion_r4774699825
##########
hive-metastore/src/main/java/org/apache/iceberg/hive/MetastoreLock.java:
##########
@@ -372,8 +372,13 @@ private LockInfo findLock() throws LockException,
InterruptedException {
} catch (TException e) {
throw new LockException(e, "Failed to find lock for table %s.%s",
databaseName, tableName);
}
+
+ if (response == null || response.getLocks() == null) {
Review Comment:
Thanks for noting this. it's not needed. The Thrift client throws a
`TApplicationException` (`MISSING_RESULT`) instead of returning null, so only
the `locks` field can be unset. Removed it in 4eaf199ef, so only the
`getLocks() == null` check is left.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]