Closed yarongilor closed 8 hours ago
I don't understand this issue.
@roydahan , SCT currently creates all Alternator tables with tablets-disabled. But we do want to test Alternator tablets-enabled with the job of non-LWT Alternator. this is SCT code of creating an Alternator table:
table = dynamodb_api.resource.create_table(
TableName=table_name, BillingMode="PAY_PER_REQUEST", **schema, **kwargs)
It cannot create a table for a keyspace with tablets-enabled unless we add an additional Tag
parameter like:
table = dynamodb_api.resource.create_table(
TableName=table_name, BillingMode="PAY_PER_REQUEST", Tags=[{'Key': 'experimental:initial_tablets', 'Value': '4'}], **schema, **kwargs)
For example:
Tags=[{'Key': 'experimental:initial_tablets', 'Value': '4'}]
Unless you really want 4 tablets specifically, I recommend using the value '0' to get the default number of tablets. The value 0 doesn't mean tablets are disabled - to disable tablets you need to use a non-numeric value (e.g., empty string or 'none' or whatever).
Tablets is currently defaulted to be disabled in Alternator. This is due to the limitation of missing LWT support for it. Yet a non-LWT Alternator configuration is supported and could be tested. It will require adding a new tag when creating a table in Alternator. For example:
Tags=[{'Key': 'experimental:initial_tablets', 'Value': '4'}]
SCT currently run a "non-LWT" Alternator Longevity, where tablets are enabled but Alternator tables created disabled. A related Alternator comment for it is:
A usage sample for test/alternator is:
(this support could be similarly applied for Dtest as well)