skoppu22 commented on code in PR #205:
URL:
https://github.com/apache/cassandra-analytics/pull/205#discussion_r3210255867
##########
cassandra-analytics-core/src/main/java/org/apache/cassandra/spark/bulkwriter/cloudstorage/coordinated/CassandraCoordinatedBulkWriterContext.java:
##########
@@ -115,4 +120,31 @@ protected CassandraClusterInfoGroup clusterInfoGroup()
{
return (CassandraClusterInfoGroup) cluster();
}
+
+ @Override
+ public BulkWriterConfig toBulkWriterConfigForBroadcasting(JavaSparkContext
sparkContext)
+ {
+ ClusterInfo originalClusterInfo = cluster();
+
+ // Extract only broadcast-safe cluster metadata
+
+ // ClusterInfo has transient fields (CassandraContext, token mappings)
that are not serializable
Review Comment:
Removed these comments. In CassandraClusterInfo, grouped fields by
serializable state and added comments
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]