This is an automated email from the ASF dual-hosted git repository. zanderxu pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/hadoop.git
commit 2343bd71a9350d864234f1519a7f5f4b90a759ea Author: ZanderXu <zande...@apache.org> AuthorDate: Tue Dec 31 11:55:28 2024 +0800 HDFS-17701. [FGL] Fix some javadocs (#7256) --- .../src/main/java/org/apache/hadoop/hdfs/util/RwLock.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/util/RwLock.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/util/RwLock.java index 26fbc0f1266..57409203d34 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/util/RwLock.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/util/RwLock.java @@ -29,13 +29,16 @@ default void readLock() { */ void readLock(RwLockMode lockMode); - /** Acquire read lock, unless interrupted while waiting. */ + /** Acquire read lock, unless interrupted while waiting. + * @throws InterruptedException if the thread is interrupted + */ default void readLockInterruptibly() throws InterruptedException { readLockInterruptibly(RwLockMode.GLOBAL); } /** Acquire read lock, unless interrupted while waiting. * @param lockMode The lock type for acquiring a read lock + * @throws InterruptedException if the thread is interrupted */ void readLockInterruptibly(RwLockMode lockMode) throws InterruptedException; @@ -82,13 +85,16 @@ default void writeLock() { */ void writeLock(RwLockMode lockMode); - /** Acquire write lock, unless interrupted while waiting. */ + /** Acquire write lock, unless interrupted while waiting. + * @throws InterruptedException if the thread is interrupted + */ default void writeLockInterruptibly() throws InterruptedException { writeLockInterruptibly(RwLockMode.GLOBAL); } /** Acquire write lock, unless interrupted while waiting. * @param lockMode The lock type for acquiring a write lock + * @throws InterruptedException if the thread is interrupted */ void writeLockInterruptibly(RwLockMode lockMode) throws InterruptedException; --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org