Questions tagged [scalardb]
36
questions
0
votes
1
answer
140
views
How to configure Dynamo DB Local's Endpoint Override when using multi-storage with Scalar DB
In order to use multi-storage in Scalar DB, I am implementing it with MySQL and Dynamo DB Local, but the Endpoint Override setting for Dynamo DB Local does not work.
I have configured the following ...
1
vote
1
answer
36
views
Is it possible to use Scalar DB on Azure Cosmos DB in a single region zone redundancy configuration?
When using Scalar DB on Azure Cosmos DB, I'm considering the use of zone redundancy configuration to increase availability.
Is it possible to use Scalar DB on Azure Cosmos DB in a single region zone ...
0
votes
0
answers
38
views
I want to know where cassy's error log is output
When I run the command cassy in my project, it fails. I would like to know the cause of the failure, but I don't know where to output the error log.
I would like to know where or how I can define the ...
1
vote
1
answer
73
views
Syntax error when using ScalarDB with DynamoDB reserved words as column names
I want to use ScalarDB with a schema called user created in DynamoDB.
As an example, the user schema is defined as follows
{
"sample_db.user": {
"transaction": true,
&...
0
votes
2
answers
56
views
How to use ScalarDB in a way that data is stored in DynamoDBLocal?
I believe ScalarDB supports DynamoDB since Version 3.0.0. I would like to use ScalarDB in the form of storing data in DynamoDBLocal. The reason for this is that when we develop as a team, we prepare ...
0
votes
1
answer
50
views
ScalarDB on ComosDB Configuration
I'd like to estimate the costs of Azure CosmosDB on Scalar DB.
CosmosDB requires the following parameters. But these parameters are not ScalarDB parameters.
API
Number of Regions
Multi-region writes
...
0
votes
1
answer
53
views
Questions about Cassy
I would like to ask a few questions about a tool called Cassy that supports ScalarDB.
https://github.com/scalar-labs/cassy
Can I trust the "status" of rpc.Cassy.ListBackups to confirm the ...
0
votes
2
answers
44
views
Can we manage ScalarDB Transaction with @Transaction annotation?
Spring can manage transactions using @Transaction annotation.
Can we manage ScalarDB transactions with @Transaction annotation?
0
votes
1
answer
49
views
what should be the values of tx fields if a row is entered from cqlsh instead from using DistributedTransaction
In ScalarDB, what should be the values of tx fields if a row is entered from cqlsh instead from using DistributedTransaction?
My table's schema is
CREATE TABLE codingjedi.supported_tags (
course ...
0
votes
1
answer
38
views
How to recovery to different environment using Cassy backup tool? [closed]
I want to know how to recover Scalar DB to another instance using Cassy backup.
Because I need a new instance for tests from the production environment.
-1
votes
1
answer
63
views
How do I change cassandra.yaml when building an environment with Terraform?
I will build the environment using the following Terraform.
https://github.com/scalar-labs/scalar-terraform
I want to fix the cassandra.yaml placed in a Cassandra instance with Terraform.
How do I ...
1
vote
1
answer
2k
views
Failed to connect to my own azure cosmos db instance using ScalarDB
While i was testing the functionality of cosmosdb of the scalardb (2.2.0), i couldn’t connect to the azure cosmos db instance via scalardb, when i try to initialize the DistributedTransaction or the ...
0
votes
3
answers
52
views
PutIfExists fails if a record has been recently added
In ScalarDB, the library that add ACID functionality to Cassandra, I am getting the following error
2020-09-24 18:51:33,607 [WARN] from com.scalar.db.transaction.consensuscommit.CommitHandler in ...
0
votes
1
answer
23
views
What does Get without clusterKey return in ScalarDB
In ScalarDB, the library which provides ACID functionality on top of Cassandra, what does Get return if clustering key is not present and there are multiple rows in the database for same partition key?...
0
votes
1
answer
35
views
PutIfNotExists not throwing error on duplication in ScalarDB
I am using scalardb which provides ACID funcationality on top of Cassandra. I want t unit test a method (add) which should add a new row if it is not a duplicate.
def add(transaction:...
0
votes
2
answers
38
views
How to test the arguments passed to a function of ScalarDB
I am using ScalarDB. It provides ACID capabilities over Cassandra. - https://scalar-labs.github.io/scalardb/javadoc/
ScalarDB is Java based and I am using it in Scala code
The way to insert a value in ...
0
votes
1
answer
42
views
Getting InvalidUsageException in ScalarDB when deleting a record
I am using ScalarDB which provides ACID functionality on Cassandra. While deleting a record, I am getting com.scalar.db.exception.transaction.InvalidUsageException: the record to be deleted must be ...
0
votes
1
answer
54
views
How is PutIf different from PutIfExists and PutIfNotExists
I am using ScalarDB which adds ACID support in Cassandra. Referring to the documentation, how is PutIf different from PutIfExists and PutIfNotExists?
I suppose
PutIfExists is like an update
...
0
votes
1
answer
25
views
Does ScalarDB throw NoMutationApplied exception if a duplicate Put is executed
I am using ScalarDB which adds ACID functionality to Cassandra. It seems that if I use a duplicate Put i.e. insert an entry which is same as an existing entry then NoMutationApplied exception is ...
0
votes
2
answers
39
views
What happens if I start a transaction in ScalarDB but do not commit it?
I am using ScalarDB to add ACID support in Cassandra application. What happens if I start a Transaction but don't commit it. Could there be any adverse effects of it?
Eg.
def somefunction= {
//...
0
votes
1
answer
53
views
How to implement application level pagination over ScalarDB
This question is part-Cassandra and part ScalarDB. I am using ScalarDB which provide ACID support on top of Cassandra. The library seem to be working well! Unfortunately, ScalarDB doesn't support ...
0
votes
2
answers
90
views
Unable to take backup by Cassy
I have been trying to take backup using Cassy, but I could only get metadata backup.
It seems that there's no error-logs on Cassy and the status is "STARTED" on Cassy's BackupList.
Below is ...
1
vote
1
answer
23
views
Does the coordinator keyspace need to have same replication factor and application's main keyspace
I am using ScalarDB to add ACID support on Cassandra.
If my application's main table has replication factor of 3 and SimpleStrategy, does the Coordinator keyspace also need to be the same?
CREATE ...
0
votes
1
answer
32
views
how does ScalarDb support pagination
I am using ScalarDB which provides ACID functionality on Cassandra. Does ScalarDB support pagination?
If a partition has say 100 records, can I query 10 records at a time with each query starting from ...
1
vote
1
answer
37
views
How to find size of a partition in Cassandra using ScalarDB
I am using Scalar DB library which adds ACID support in Cassandra. How can I get the size of the partition using Scalar DB?
In Cassandra Java driver, I would call something like the following to get ...
0
votes
1
answer
31
views
In Scalar DB, can I leave a Transaction as is if I don't need it or do I need to do some clean up
The question is about Scalar DB (https://github.com/scalar-labs/scalardb). In the following code, I check if a user exists. If it does, I throw an exception. If it doesn't I go about adding it in ...
0
votes
1
answer
54
views
com.scalar.db.exception.storage.NoMutationException: no mutation was applied. error when using ScalarDB
The question is about Scalar DB (https://github.com/scalar-labs/scalardb).
The following code is giving com.scalar.db.exception.storage.NoMutationException: no mutation was applied. What causes this ...
0
votes
1
answer
71
views
Warning message is shown when taking Cassy backup
When I tried to take backups, incremental backups and consistent backups and restore them with Cassy, I could check all operations were succeeded.
Because I could see all type of backups on my S3 and ...
0
votes
1
answer
16
views
Does scalardb support timestamp type? If now, is text or blob the best way to store timestamp?
Does scalardb support timestamp type? If not, is the best way to store timestamp a text or blob or some other type?
Would this schema now work?
CREATE TABLE mytable (
token_id text PRIMARY KEY,
...
0
votes
1
answer
20
views
Do I need to use commit if I am only getting values
I want to check if a user exists in the the database or not. Do I need to use commit? Is this code the right way to go about getting values?
val transaction: DistributedTransaction = ...
0
votes
1
answer
14
views
Is it possible to get reference of Session Object (Datastax driver) from TransactionService
My code uses Session Object from Datastax Java driver. Is it possible to get reference of the underlying Session object from TransactionService? As I am experimenting with ScalarDB at the moment, I ...
-1
votes
1
answer
20
views
Can I pass existing Cassandra session to TransactionService?
In Scalardb, would TransactionService create a new session every time I instantiate it?
Can I create a TransactionService at application start up and use the same session throughout the application ...
0
votes
1
answer
12
views
scalardb debug prints showing `?` for value. Is there an error?
When I executed my query, I see that Scalardb prints contain ? for values.
[debug] c.s.d.s.c.StatementHandler - query to prepare : [UPDATE codingjedi.users SET tx_committed_at=?,tx_state=? WHERE ...
0
votes
1
answer
21
views
How do I get instance of Distributed Transaction Manager
I am following this example to test ScalarDB.
https://github.com/indetail-blockchain/getting-started-with-scalardb
The example says
"
Execute a transaction
A DistributedTransaction can be ...
1
vote
1
answer
36
views
When and Why does ScalarDB throw UnknownTransactionStatusException
From the example https://github.com/indetail-blockchain/getting-started-with-scalardb, transaction.commit can throw two exceptions
• CommitException which indicates a commit has failed. In that case,...
-1
votes
2
answers
39
views
Enable logging in Scalardb
How do I enable logging in Scalardb? Does it support logback? The ScalarDB logic in my application is throwing NullPointerException. I want to enable traces to understand where the problem might be.