5 commented on code in PR #15:
URL: 
https://github.com/apache/cassandra-analytics/pull/15#discussion_r1332236438


##########
cassandra-analytics-core/src/main/java/org/apache/cassandra/spark/bulkwriter/CassandraContext.java:
##########
@@ -96,4 +100,14 @@ protected BulkSparkConf conf()
     {
         return conf;
     }
+
+    // Startup Validation
+
+    @Override
+    public void startupValidate()
+    {
+        StartupValidator.instance().register(new 
SidecarValidation(sidecarClient));
+        StartupValidator.instance().register(new 
CassandraValidation(sidecarClient));
+        StartupValidator.instance().perform();

Review Comment:
   Also, very easy to switch to parallel execution of validations, if ever feel 
need to do so in the future…



##########
cassandra-analytics-core/src/main/java/org/apache/cassandra/spark/bulkwriter/CassandraContext.java:
##########
@@ -96,4 +100,14 @@ protected BulkSparkConf conf()
     {
         return conf;
     }
+
+    // Startup Validation
+
+    @Override
+    public void startupValidate()
+    {
+        StartupValidator.instance().register(new 
SidecarValidation(sidecarClient));
+        StartupValidator.instance().register(new 
CassandraValidation(sidecarClient));
+        StartupValidator.instance().perform();

Review Comment:
   Also, very easy to switch to parallel execution of validations, if ever feel 
need to do so in the future…



-- 
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]

Reply via email to