Skip to content

CASSANDRA-19727: Bulk writer fails validation stage when writing to a…#61

Merged
frankgh merged 3 commits into
apache:trunkfrom
frankgh:CASSANDRA-19727
Jun 27, 2024
Merged

CASSANDRA-19727: Bulk writer fails validation stage when writing to a…#61
frankgh merged 3 commits into
apache:trunkfrom
frankgh:CASSANDRA-19727

Conversation

@frankgh

@frankgh frankgh commented Jun 26, 2024

Copy link
Copy Markdown
Contributor

… cluster using RandomPartitioner

Patch by Francisco Guerrero; Reviewed by Yifan Cai for CASSANDRA-19727

frankgh added 2 commits June 26, 2024 15:29
… cluster using RandomPartitioner

Patch by Francisco Guerrero; Reviewed by Yifan Cai for CASSANDRA-19727
import org.apache.cassandra.distributed.api.TokenSupplier;
import org.apache.cassandra.distributed.shared.ClusterUtils;
import org.apache.cassandra.distributed.shared.Versions;
import org.apache.cassandra.sidecar.adapters.base.Partitioner;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why does it depends on sidecar's partitioner? Can it implement with org.apache.cassandra.spark.data.partitioner.Partitioner instead?

It is unrelated with this patch. So I am fine w/o addressing this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ah yes, we don't have access to org.apache.cassandra.spark.data.partitioner.Partitioner here. I will not address it here, but it's something we need to address at some point

import static org.apache.cassandra.testing.TestUtils.TEST_KEYSPACE;

class SparkBulkWriterSimpleTest extends SharedClusterSparkIntegrationTestBase
class SparkBulkAnalyticsSimpleTest extends SharedClusterSparkIntegrationTestBase

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since you are renaming the class.. would it be more fit to name it CassandraAnalyticsSimpleTest?
"SparkBulkAnalytics" means "CassandraAnalytics" here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That was my first choice, so let me change it to CassandraAnalyticsSimpleTest

@frankgh frankgh merged commit b31a451 into apache:trunk Jun 27, 2024
@frankgh frankgh deleted the CASSANDRA-19727 branch June 27, 2024 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants