Skip to content

Conversation

frankgh
Copy link
Contributor

@frankgh frankgh commented Jul 11, 2023

This commit fixes the SampleCassandraJob available under the cassandra-analytics-core-example subproject.


if (!addedColumns.isEmpty())
{
df = df.drop(addedColumns.toArray(new String[0]));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

remove the columns from the schema, so we can validate.

This commit fixes the `SampleCassandraJob` available under the `cassandra-analytics-core-example`
subproject.
frankgh added 3 commits July 11, 2023 15:02
The `sidecarClient` field in `SidecarDataTransferApi` is declared as transient,
this is causing NPEs coming from executors while trying to perform an SSTable
upload.

This commit completely avoids serializing the `dataTransferApi` field in the
`CassandraBulkWriterContext`, and lazily initializing it during the `transfer()`
method invocation. We guard the initialization to a single thread by making the
`tranfer()` method synchronized. The `SidecarDataTransferApi` can be recreated
when needed using the already serialized `clusterInfo`, `jobInfo`, and `conf`
fields.
@frankgh
Copy link
Contributor Author

frankgh commented Jul 17, 2023

Closed via 69766bc

@frankgh frankgh closed this Jul 17, 2023
@frankgh frankgh deleted the CASSANDRA-18662 branch July 17, 2023 21:45
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.

1 participant