Skip to content

Commit 33b86d2

Browse files
committed
Merge branch 'master' into support-begin-in-read-only-mode
2 parents c8230de + 4c5686c commit 33b86d2

File tree

65 files changed

+1282
-371
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1282
-371
lines changed

.github/workflows/release-snapshot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
VERSION=$(./gradlew :core:properties -q | grep "version:" | awk '{print $2}')
3131
echo "version=${VERSION}" >> $GITHUB_OUTPUT
3232
33-
- name: Upload SNAPSHOT versions for scalardb, scalardb-schema-loader, and scalardb-integration-test to Maven Snapshot Repository
33+
- name: Upload SNAPSHOT versions for scalardb, scalardb-schema-loader, scalardb-data-loader-core, and scalardb-integration-test to Maven Snapshot Repository
3434
if: contains(steps.version.outputs.version, '-SNAPSHOT')
3535
run: |
3636
echo "${{secrets.SIGNING_SECRET_KEY_RING}}" | base64 -d > ~/.gradle/secring.gpg

.github/workflows/upload-artifacts.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
run: |
5858
docker push ghcr.io/scalar-labs/scalardb-schema-loader:${{ steps.version.outputs.version }}
5959
60-
- name: Upload scalardb, scalardb-schema-loader, and scalardb-integration-test to Maven Central Repository
60+
- name: Upload scalardb, scalardb-schema-loader, scalardb-data-loader-core, and scalardb-integration-test to Maven Central Repository
6161
run: |
6262
echo "${{secrets.SIGNING_SECRET_KEY_RING}}" | base64 -d > ~/.gradle/secring.gpg
6363
./gradlew publish \

core/src/integration-test/java/com/scalar/db/storage/cassandra/ConsensusCommitCassandraEnv.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.scalar.db.storage.cassandra;
22

3-
import com.scalar.db.transaction.consensuscommit.ConsensusCommitIntegrationTestUtils;
43
import com.scalar.db.transaction.consensuscommit.ConsensusCommitTestUtils;
54
import java.util.Properties;
65

@@ -11,7 +10,7 @@ public static Properties getProperties(String testName) {
1110
Properties properties = CassandraEnv.getProperties(testName);
1211

1312
// Add testName as a coordinator schema suffix
14-
ConsensusCommitIntegrationTestUtils.addSuffixToCoordinatorNamespace(properties, testName);
13+
ConsensusCommitTestUtils.addSuffixToCoordinatorNamespace(properties, testName);
1514

1615
return ConsensusCommitTestUtils.loadConsensusCommitProperties(properties);
1716
}

core/src/integration-test/java/com/scalar/db/storage/cosmos/ConsensusCommitCosmosEnv.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.scalar.db.storage.cosmos;
22

3-
import com.scalar.db.transaction.consensuscommit.ConsensusCommitIntegrationTestUtils;
43
import com.scalar.db.transaction.consensuscommit.ConsensusCommitTestUtils;
54
import java.util.Map;
65
import java.util.Properties;
@@ -12,7 +11,7 @@ public static Properties getProperties(String testName) {
1211
Properties properties = CosmosEnv.getProperties(testName);
1312

1413
// Add testName as a coordinator schema suffix
15-
ConsensusCommitIntegrationTestUtils.addSuffixToCoordinatorNamespace(properties, testName);
14+
ConsensusCommitTestUtils.addSuffixToCoordinatorNamespace(properties, testName);
1615

1716
return ConsensusCommitTestUtils.loadConsensusCommitProperties(properties);
1817
}

core/src/integration-test/java/com/scalar/db/storage/dynamo/ConsensusCommitDynamoEnv.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.scalar.db.storage.dynamo;
22

3-
import com.scalar.db.transaction.consensuscommit.ConsensusCommitIntegrationTestUtils;
43
import com.scalar.db.transaction.consensuscommit.ConsensusCommitTestUtils;
54
import java.util.Map;
65
import java.util.Properties;
@@ -12,7 +11,7 @@ public static Properties getProperties(String testName) {
1211
Properties properties = DynamoEnv.getProperties(testName);
1312

1413
// Add testName as a coordinator schema suffix
15-
ConsensusCommitIntegrationTestUtils.addSuffixToCoordinatorNamespace(properties, testName);
14+
ConsensusCommitTestUtils.addSuffixToCoordinatorNamespace(properties, testName);
1615

1716
return ConsensusCommitTestUtils.loadConsensusCommitProperties(properties);
1817
}

core/src/integration-test/java/com/scalar/db/storage/jdbc/ConsensusCommitJdbcEnv.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.scalar.db.storage.jdbc;
22

3-
import com.scalar.db.transaction.consensuscommit.ConsensusCommitIntegrationTestUtils;
43
import com.scalar.db.transaction.consensuscommit.ConsensusCommitTestUtils;
54
import java.util.Properties;
65

@@ -11,7 +10,7 @@ public static Properties getProperties(String testName) {
1110
Properties properties = JdbcEnv.getProperties(testName);
1211

1312
// Add testName as a coordinator schema suffix
14-
ConsensusCommitIntegrationTestUtils.addSuffixToCoordinatorNamespace(properties, testName);
13+
ConsensusCommitTestUtils.addSuffixToCoordinatorNamespace(properties, testName);
1514

1615
return ConsensusCommitTestUtils.loadConsensusCommitProperties(properties);
1716
}

core/src/integration-test/java/com/scalar/db/storage/multistorage/MultiStorageSchemaLoaderIntegrationTest.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import com.google.common.util.concurrent.Uninterruptibles;
55
import com.scalar.db.config.DatabaseConfig;
66
import com.scalar.db.schemaloader.SchemaLoaderIntegrationTestBase;
7-
import com.scalar.db.transaction.consensuscommit.ConsensusCommitIntegrationTestUtils;
7+
import com.scalar.db.transaction.consensuscommit.ConsensusCommitTestUtils;
88
import com.scalar.db.transaction.consensuscommit.Coordinator;
99
import com.scalar.db.util.AdminTestUtils;
1010
import java.nio.file.Path;
@@ -59,20 +59,18 @@ protected Properties getProperties(String testName) {
5959
DatabaseConfig.DEFAULT_SYSTEM_NAMESPACE_NAME + "_" + testName);
6060

6161
// Add testName as a coordinator schema suffix
62-
ConsensusCommitIntegrationTestUtils.addSuffixToCoordinatorNamespace(properties, testName);
62+
ConsensusCommitTestUtils.addSuffixToCoordinatorNamespace(properties, testName);
6363

6464
return properties;
6565
}
6666

6767
@Override
6868
protected AdminTestUtils getAdminTestUtils(String testName) {
6969
Properties propertiesForCassandra = MultiStorageEnv.getPropertiesForCassandra(testName);
70-
ConsensusCommitIntegrationTestUtils.addSuffixToCoordinatorNamespace(
71-
propertiesForCassandra, testName);
70+
ConsensusCommitTestUtils.addSuffixToCoordinatorNamespace(propertiesForCassandra, testName);
7271

7372
Properties propertiesForJdbc = MultiStorageEnv.getPropertiesForJdbc(testName);
74-
ConsensusCommitIntegrationTestUtils.addSuffixToCoordinatorNamespace(
75-
propertiesForJdbc, testName);
73+
ConsensusCommitTestUtils.addSuffixToCoordinatorNamespace(propertiesForJdbc, testName);
7674

7775
return new MultiStorageAdminTestUtils(propertiesForCassandra, propertiesForJdbc);
7876
}

core/src/main/java/com/scalar/db/api/DistributedTransaction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public interface DistributedTransaction extends TransactionCrudOperable {
7373
* (e.g., a conflict error). You can retry the transaction from the beginning
7474
* @throws CommitException if the transaction fails to commit due to transient or nontransient
7575
* faults. You can try retrying the transaction from the beginning, but the transaction may
76-
* still fail if the cause is nontranient
76+
* still fail if the cause is nontransient
7777
* @throws UnknownTransactionStatusException if the status of the commit is unknown
7878
*/
7979
void commit() throws CommitConflictException, CommitException, UnknownTransactionStatusException;

core/src/main/java/com/scalar/db/api/TransactionCrudOperable.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public interface TransactionCrudOperable extends CrudOperable<CrudException> {
1616
* (e.g., a conflict error). You can retry the transaction from the beginning
1717
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
1818
* faults. You can try retrying the transaction from the beginning, but the transaction may
19-
* still fail if the cause is nontranient
19+
* still fail if the cause is nontransient
2020
*/
2121
@Override
2222
Optional<Result> get(Get get) throws CrudConflictException, CrudException;
@@ -28,7 +28,7 @@ public interface TransactionCrudOperable extends CrudOperable<CrudException> {
2828
* (e.g., a conflict error). You can retry the transaction from the beginning
2929
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
3030
* faults. You can try retrying the transaction from the beginning, but the transaction may
31-
* still fail if the cause is nontranient
31+
* still fail if the cause is nontransient
3232
*/
3333
@Override
3434
List<Result> scan(Scan scan) throws CrudConflictException, CrudException;
@@ -40,7 +40,7 @@ public interface TransactionCrudOperable extends CrudOperable<CrudException> {
4040
* (e.g., a conflict error). You can retry the transaction from the beginning
4141
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
4242
* faults. You can try retrying the transaction from the beginning, but the transaction may
43-
* still fail if the cause is nontranient
43+
* still fail if the cause is nontransient
4444
*/
4545
@Override
4646
Scanner getScanner(Scan scan) throws CrudConflictException, CrudException;
@@ -52,7 +52,7 @@ public interface TransactionCrudOperable extends CrudOperable<CrudException> {
5252
* (e.g., a conflict error). You can retry the transaction from the beginning
5353
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
5454
* faults. You can try retrying the transaction from the beginning, but the transaction may
55-
* still fail if the cause is nontranient
55+
* still fail if the cause is nontransient
5656
* @throws UnsatisfiedConditionException if a condition is specified, and if the condition is not
5757
* satisfied or the entry does not exist
5858
* @deprecated As of release 3.13.0. Will be removed in release 5.0.0.
@@ -68,7 +68,7 @@ public interface TransactionCrudOperable extends CrudOperable<CrudException> {
6868
* (e.g., a conflict error). You can retry the transaction from the beginning
6969
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
7070
* faults. You can try retrying the transaction from the beginning, but the transaction may
71-
* still fail if the cause is nontranient
71+
* still fail if the cause is nontransient
7272
* @throws UnsatisfiedConditionException if a condition is specified, and if the condition is not
7373
* satisfied or the entry does not exist
7474
* @deprecated As of release 3.13.0. Will be removed in release 5.0.0. Use {@link #mutate(List)}
@@ -86,7 +86,7 @@ void put(List<Put> puts)
8686
* (e.g., a conflict error). You can retry the transaction from the beginning
8787
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
8888
* faults. You can try retrying the transaction from the beginning, but the transaction may
89-
* still fail if the cause is nontranient
89+
* still fail if the cause is nontransient
9090
*/
9191
@Override
9292
void insert(Insert insert) throws CrudConflictException, CrudException;
@@ -98,7 +98,7 @@ void put(List<Put> puts)
9898
* (e.g., a conflict error). You can retry the transaction from the beginning
9999
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
100100
* faults. You can try retrying the transaction from the beginning, but the transaction may
101-
* still fail if the cause is nontranient
101+
* still fail if the cause is nontransient
102102
*/
103103
@Override
104104
void upsert(Upsert upsert) throws CrudConflictException, CrudException;
@@ -110,7 +110,7 @@ void put(List<Put> puts)
110110
* (e.g., a conflict error). You can retry the transaction from the beginning
111111
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
112112
* faults. You can try retrying the transaction from the beginning, but the transaction may
113-
* still fail if the cause is nontranient
113+
* still fail if the cause is nontransient
114114
* @throws UnsatisfiedConditionException if a condition is specified, and if the condition is not
115115
* satisfied or the entry does not exist
116116
*/
@@ -125,7 +125,7 @@ void update(Update update)
125125
* (e.g., a conflict error). You can retry the transaction from the beginning
126126
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
127127
* faults. You can try retrying the transaction from the beginning, but the transaction may
128-
* still fail if the cause is nontranient
128+
* still fail if the cause is nontransient
129129
* @throws UnsatisfiedConditionException if a condition is specified, and if the condition is not
130130
* satisfied or the entry does not exist
131131
*/
@@ -140,7 +140,7 @@ void delete(Delete delete)
140140
* (e.g., a conflict error). You can retry the transaction from the beginning
141141
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
142142
* faults. You can try retrying the transaction from the beginning, but the transaction may
143-
* still fail if the cause is nontranient
143+
* still fail if the cause is nontransient
144144
* @throws UnsatisfiedConditionException if a condition is specified, and if the condition is not
145145
* satisfied or the entry does not exist
146146
* @deprecated As of release 3.13.0. Will be removed in release 5.0.0. Use {@link #mutate(List)}
@@ -158,7 +158,7 @@ void delete(List<Delete> deletes)
158158
* (e.g., a conflict error). You can retry the transaction from the beginning
159159
* @throws CrudException if the transaction CRUD operation fails due to transient or nontransient
160160
* faults. You can try retrying the transaction from the beginning, but the transaction may
161-
* still fail if the cause is nontranient
161+
* still fail if the cause is nontransient
162162
* @throws UnsatisfiedConditionException if a condition is specified in a {@link Put}, {@link
163163
* Delete}, or {@link Update} command, and if the condition is not satisfied or the entry does
164164
* not exist
@@ -175,7 +175,7 @@ interface Scanner extends CrudOperable.Scanner<CrudException> {
175175
* (e.g., a conflict error). You can retry the transaction from the beginning
176176
* @throws CrudException if the transaction CRUD operation fails due to transient or
177177
* nontransient faults. You can try retrying the transaction from the beginning, but the
178-
* transaction may still fail if the cause is nontranient
178+
* transaction may still fail if the cause is nontransient
179179
*/
180180
@Override
181181
Optional<Result> one() throws CrudConflictException, CrudException;
@@ -187,7 +187,7 @@ interface Scanner extends CrudOperable.Scanner<CrudException> {
187187
* (e.g., a conflict error). You can retry the transaction from the beginning
188188
* @throws CrudException if the transaction CRUD operation fails due to transient or
189189
* nontransient faults. You can try retrying the transaction from the beginning, but the
190-
* transaction may still fail if the cause is nontranient
190+
* transaction may still fail if the cause is nontransient
191191
*/
192192
@Override
193193
List<Result> all() throws CrudConflictException, CrudException;

0 commit comments

Comments
 (0)