This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new b7ec89a9082 [fix] [doc] fix the class name of transaction exception.
(#22687)
b7ec89a9082 is described below
commit b7ec89a908255f160d8337bdd96fa10f5772a265
Author: Wenzhi Feng <[email protected]>
AuthorDate: Fri May 10 14:58:57 2024 +0800
[fix] [doc] fix the class name of transaction exception. (#22687)
---
.../broker/transaction/buffer/TransactionBuffer.java | 17 +++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)
diff --git
a/pulsar-broker/src/main/java/org/apache/pulsar/broker/transaction/buffer/TransactionBuffer.java
b/pulsar-broker/src/main/java/org/apache/pulsar/broker/transaction/buffer/TransactionBuffer.java
index ae0b9bbf1ca..3fe989acc92 100644
---
a/pulsar-broker/src/main/java/org/apache/pulsar/broker/transaction/buffer/TransactionBuffer.java
+++
b/pulsar-broker/src/main/java/org/apache/pulsar/broker/transaction/buffer/TransactionBuffer.java
@@ -24,6 +24,8 @@ import java.util.List;
import java.util.concurrent.CompletableFuture;
import org.apache.bookkeeper.mledger.Position;
import org.apache.bookkeeper.mledger.impl.PositionImpl;
+import org.apache.pulsar.broker.transaction.exception.TransactionException;
+import
org.apache.pulsar.broker.transaction.exception.buffer.TransactionBufferException;
import org.apache.pulsar.client.api.transaction.TxnID;
import org.apache.pulsar.common.policies.data.TransactionBufferStats;
import org.apache.pulsar.common.policies.data.TransactionInBufferStats;
@@ -56,8 +58,7 @@ public interface TransactionBuffer {
*
* @param txnID the transaction id
* @return a future represents the result of the operation
- * @throws
org.apache.pulsar.broker.transaction.buffer.exceptions.TransactionNotFoundException
if the transaction
- * is not in the buffer.
+ * @throws TransactionBufferException.TransactionNotFoundException if the
transaction is not in the buffer.
*/
CompletableFuture<TransactionMeta> getTransactionMeta(TxnID txnID);
@@ -70,8 +71,7 @@ public interface TransactionBuffer {
* @param sequenceId the sequence id of the entry in this transaction
buffer.
* @param buffer the entry buffer
* @return a future represents the result of the operation.
- * @throws
org.apache.pulsar.broker.transaction.buffer.exceptions.TransactionSealedException
if the transaction
- * has been sealed.
+ * @throws TransactionException.TransactionSealedException if the
transaction has been sealed.
*/
CompletableFuture<Position> appendBufferToTxn(TxnID txnId, long
sequenceId, ByteBuf buffer);
@@ -82,8 +82,7 @@ public interface TransactionBuffer {
* @param txnID transaction id
* @param startSequenceId the sequence id to start read
* @return a future represents the result of open operation.
- * @throws
org.apache.pulsar.broker.transaction.buffer.exceptions.TransactionNotFoundException
if the transaction
- * is not in the buffer.
+ * @throws TransactionBufferException.TransactionNotFoundException if the
transaction is not in the buffer.
*/
CompletableFuture<TransactionBufferReader>
openTransactionBufferReader(TxnID txnID, long startSequenceId);
@@ -95,8 +94,7 @@ public interface TransactionBuffer {
* @param txnID the transaction id
* @param lowWaterMark the low water mark of this transaction
* @return a future represents the result of commit operation.
- * @throws
org.apache.pulsar.broker.transaction.buffer.exceptions.TransactionNotFoundException
if the transaction
- * is not in the buffer.
+ * @throws TransactionBufferException.TransactionNotFoundException if the
transaction is not in the buffer.
*/
CompletableFuture<Void> commitTxn(TxnID txnID, long lowWaterMark);
@@ -107,8 +105,7 @@ public interface TransactionBuffer {
* @param txnID the transaction id
* @param lowWaterMark the low water mark of this transaction
* @return a future represents the result of abort operation.
- * @throws
org.apache.pulsar.broker.transaction.buffer.exceptions.TransactionNotFoundException
if the transaction
- * is not in the buffer.
+ * @throws TransactionBufferException.TransactionNotFoundException if the
transaction is not in the buffer.
*/
CompletableFuture<Void> abortTxn(TxnID txnID, long lowWaterMark);