sarankk commented on code in PR #111:
URL: https://github.com/apache/cassandra-sidecar/pull/111#discussion_r1568033908
##########
src/main/java/org/apache/cassandra/sidecar/routes/sstableuploads/SSTableImportHandler.java:
##########
@@ -162,18 +164,20 @@ protected SSTableImportRequest
extractParamsOrThrow(RoutingContext context)
* @param importOptions the import options
* @return a future for the import
*/
- private Future<Void> importSSTablesAsync(SSTableImporter.ImportOptions
importOptions)
+ private Future<Void> importSSTablesAsync(SSTableImporter.ImportOptions
importOptions, SSTableImportMetrics metrics)
{
CassandraAdapterDelegate cassandra =
metadataFetcher.delegate(importOptions.host());
if (cassandra == null)
{
+ metrics.cassandraUnavailable.metric.setValue(1);
return Future.failedFuture(cassandraServiceUnavailable());
}
TableOperations tableOperations = cassandra.tableOperations();
if (tableOperations == null)
{
+ metrics.cassandraUnavailable.metric.setValue(1);
Review Comment:
Removed `cassandraUnavailable`
--
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]