Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public interface DistributedTransaction extends TransactionCrudOperable {
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CommitException if the transaction fails to commit due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
Copy link

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo corrected: 'nontranient' has been updated to 'nontransient' for clarity in the documentation comment.

Copilot uses AI. Check for mistakes.
* @throws UnknownTransactionStatusException if the status of the commit is unknown
*/
void commit() throws CommitConflictException, CommitException, UnknownTransactionStatusException;
Expand Down
26 changes: 13 additions & 13 deletions core/src/main/java/com/scalar/db/api/TransactionCrudOperable.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public interface TransactionCrudOperable extends CrudOperable<CrudException> {
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
Copy link

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Multiple occurrences of the typo 'nontranient' have been corrected to 'nontransient' in this file.

Copilot uses AI. Check for mistakes.
*/
@Override
Optional<Result> get(Get get) throws CrudConflictException, CrudException;
Expand All @@ -28,7 +28,7 @@ public interface TransactionCrudOperable extends CrudOperable<CrudException> {
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
*/
@Override
List<Result> scan(Scan scan) throws CrudConflictException, CrudException;
Expand All @@ -40,7 +40,7 @@ public interface TransactionCrudOperable extends CrudOperable<CrudException> {
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
*/
@Override
Scanner getScanner(Scan scan) throws CrudConflictException, CrudException;
Expand All @@ -52,7 +52,7 @@ public interface TransactionCrudOperable extends CrudOperable<CrudException> {
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
* @throws UnsatisfiedConditionException if a condition is specified, and if the condition is not
* satisfied or the entry does not exist
* @deprecated As of release 3.13.0. Will be removed in release 5.0.0.
Expand All @@ -68,7 +68,7 @@ public interface TransactionCrudOperable extends CrudOperable<CrudException> {
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
* @throws UnsatisfiedConditionException if a condition is specified, and if the condition is not
* satisfied or the entry does not exist
* @deprecated As of release 3.13.0. Will be removed in release 5.0.0. Use {@link #mutate(List)}
Expand All @@ -86,7 +86,7 @@ void put(List<Put> puts)
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
*/
@Override
void insert(Insert insert) throws CrudConflictException, CrudException;
Expand All @@ -98,7 +98,7 @@ void put(List<Put> puts)
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
*/
@Override
void upsert(Upsert upsert) throws CrudConflictException, CrudException;
Expand All @@ -110,7 +110,7 @@ void put(List<Put> puts)
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
* @throws UnsatisfiedConditionException if a condition is specified, and if the condition is not
* satisfied or the entry does not exist
*/
Expand All @@ -125,7 +125,7 @@ void update(Update update)
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
* @throws UnsatisfiedConditionException if a condition is specified, and if the condition is not
* satisfied or the entry does not exist
*/
Expand All @@ -140,7 +140,7 @@ void delete(Delete delete)
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
* @throws UnsatisfiedConditionException if a condition is specified, and if the condition is not
* satisfied or the entry does not exist
* @deprecated As of release 3.13.0. Will be removed in release 5.0.0. Use {@link #mutate(List)}
Expand All @@ -158,7 +158,7 @@ void delete(List<Delete> deletes)
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
* @throws UnsatisfiedConditionException if a condition is specified in a {@link Put}, {@link
* Delete}, or {@link Update} command, and if the condition is not satisfied or the entry does
* not exist
Expand All @@ -175,7 +175,7 @@ interface Scanner extends CrudOperable.Scanner<CrudException> {
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or
* nontransient faults. You can try retrying the transaction from the beginning, but the
* transaction may still fail if the cause is nontranient
* transaction may still fail if the cause is nontransient
*/
@Override
Optional<Result> one() throws CrudConflictException, CrudException;
Expand All @@ -187,7 +187,7 @@ interface Scanner extends CrudOperable.Scanner<CrudException> {
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or
* nontransient faults. You can try retrying the transaction from the beginning, but the
* transaction may still fail if the cause is nontranient
* transaction may still fail if the cause is nontransient
*/
@Override
List<Result> all() throws CrudConflictException, CrudException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public interface TransactionManagerCrudOperable extends CrudOperable<Transaction
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
Copy link

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Multiple occurrences of the typo 'nontranient' have been corrected to 'nontransient' in this file.

Copilot uses AI. Check for mistakes.
* @throws UnknownTransactionStatusException if the status of the commit is unknown
*/
@Override
Expand All @@ -32,7 +32,7 @@ Optional<Result> get(Get get)
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
* @throws UnknownTransactionStatusException if the status of the commit is unknown
*/
@Override
Expand All @@ -46,7 +46,7 @@ List<Result> scan(Scan scan)
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
*/
@Override
Scanner getScanner(Scan scan) throws CrudConflictException, CrudException;
Expand All @@ -58,7 +58,7 @@ List<Result> scan(Scan scan)
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
* @throws UnsatisfiedConditionException if a condition is specified, and if the condition is not
* satisfied or the entry does not exist
* @throws UnknownTransactionStatusException if the status of the commit is unknown
Expand All @@ -77,7 +77,7 @@ void put(Put put)
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
* @throws UnsatisfiedConditionException if a condition is specified, and if the condition is not
* satisfied or the entry does not exist
* @throws UnknownTransactionStatusException if the status of the commit is unknown
Expand All @@ -97,7 +97,7 @@ void put(List<Put> puts)
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
* @throws UnknownTransactionStatusException if the status of the commit is unknown
*/
@Override
Expand All @@ -111,7 +111,7 @@ void insert(Insert insert)
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
* @throws UnknownTransactionStatusException if the status of the commit is unknown
*/
@Override
Expand All @@ -125,7 +125,7 @@ void upsert(Upsert upsert)
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
* @throws UnsatisfiedConditionException if a condition is specified, and if the condition is not
* satisfied or the entry does not exist
* @throws UnknownTransactionStatusException if the status of the commit is unknown
Expand All @@ -142,7 +142,7 @@ void update(Update update)
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
* @throws UnsatisfiedConditionException if a condition is specified, and if the condition is not
* satisfied or the entry does not exist
* @throws UnknownTransactionStatusException if the status of the commit is unknown
Expand All @@ -159,7 +159,7 @@ void delete(Delete delete)
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
* @throws UnsatisfiedConditionException if a condition is specified, and if the condition is not
* satisfied or the entry does not exist
* @throws UnknownTransactionStatusException if the status of the commit is unknown
Expand All @@ -179,7 +179,7 @@ void delete(List<Delete> deletes)
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
* @throws UnsatisfiedConditionException if a condition is specified in a {@link Put}, {@link
* Delete}, or {@link Update} command, and if the condition is not satisfied or the entry does
* not exist
Expand All @@ -198,7 +198,7 @@ interface Scanner extends CrudOperable.Scanner<TransactionException> {
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or
* nontransient faults. You can try retrying the transaction from the beginning, but the
* transaction may still fail if the cause is nontranient
* transaction may still fail if the cause is nontransient
*/
@Override
Optional<Result> one() throws CrudConflictException, CrudException;
Expand All @@ -210,7 +210,7 @@ interface Scanner extends CrudOperable.Scanner<TransactionException> {
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CrudException if the transaction CRUD operation fails due to transient or
* nontransient faults. You can try retrying the transaction from the beginning, but the
* transaction may still fail if the cause is nontranient
* transaction may still fail if the cause is nontransient
*/
@Override
List<Result> all() throws CrudConflictException, CrudException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public interface TwoPhaseCommitTransaction extends TransactionCrudOperable {
* faults (e.g., a conflict error). You can retry the transaction from the beginning
* @throws PreparationException if the transaction fails to prepare due to transient or
* nontransient faults. You can try retrying the transaction from the beginning, but the
* transaction may still fail if the cause is nontranient
* transaction may still fail if the cause is nontransient
Copy link

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo corrected: 'nontranient' has been updated to 'nontransient' in the documentation comment (additional similar corrections exist in this file).

Copilot uses AI. Check for mistakes.
*/
void prepare() throws PreparationConflictException, PreparationException;

Expand All @@ -89,7 +89,7 @@ public interface TwoPhaseCommitTransaction extends TransactionCrudOperable {
* faults (e.g., a conflict error). You can retry the transaction from the beginning
* @throws ValidationException if the transaction fails to validate due to transient or
* nontransient faults. You can try retrying the transaction from the beginning, but the
* transaction may still fail if the cause is nontranient
* transaction may still fail if the cause is nontransient
*/
void validate() throws ValidationConflictException, ValidationException;

Expand All @@ -100,7 +100,7 @@ public interface TwoPhaseCommitTransaction extends TransactionCrudOperable {
* (e.g., a conflict error). You can retry the transaction from the beginning
* @throws CommitException if the transaction fails to commit due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
* @throws UnknownTransactionStatusException if the status of the commit is unknown
*/
void commit() throws CommitConflictException, CommitException, UnknownTransactionStatusException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ default TwoPhaseCommitTransaction start(String txId)
* You can retry the transaction from the beginning
* @throws TransactionException if joining the transaction fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may
* still fail if the cause is nontranient
* still fail if the cause is nontransient
Copy link

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo corrected: 'nontranient' has been updated to 'nontransient' for clarity in the API comment.

Copilot uses AI. Check for mistakes.
*/
TwoPhaseCommitTransaction join(String txId)
throws TransactionNotFoundException, TransactionException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* An exception thrown when committing a transaction fails due to transient or nontransient faults.
* You can try retrying the transaction from the beginning, but the transaction may still fail if
* the cause is nontranient.
* the cause is nontransient.
Copy link

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo corrected: 'nontranient' has been updated to 'nontransient' in the exception documentation comment.

Copilot uses AI. Check for mistakes.
*/
public class CommitException extends TransactionException {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* An exception thrown when a transaction CRUD operation fails due to transient or nontransient
* faults. You can try retrying the transaction from the beginning, but the transaction may still
* fail if the cause is nontranient.
* fail if the cause is nontransient.
Copy link

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo corrected: 'nontranient' has been updated to 'nontransient' in the exception documentation comment.

Copilot uses AI. Check for mistakes.
*/
public class CrudException extends TransactionException {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* An exception thrown when preparing a transaction fails due to transient or nontransient faults.
* You can try retrying the transaction from the beginning, but the transaction may still fail if
* the cause is nontranient.
* the cause is nontransient.
Copy link

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo corrected: 'nontranient' has been updated to 'nontransient' for clarity in the documentation comment.

Copilot uses AI. Check for mistakes.
*/
public class PreparationException extends TransactionException {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* An exception thrown when validating a transaction fails due to transient or nontransient faults.
* You can try retrying the transaction from the beginning, but the transaction may still fail if
* the cause is nontranient.
* the cause is nontransient.
Copy link

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo corrected: 'nontranient' has been updated to 'nontransient' for clarity in the documentation comment.

Copilot uses AI. Check for mistakes.
*/
public class ValidationException extends TransactionException {

Expand Down