You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -289,7 +289,8 @@ public void commit(Offset end) {
289
289
290
290
if(!offsetToCommit.isEmpty()) {
291
291
currentCheckpoint = offsetToCommit;
292
-
log.trace("SolaceSparkConnector - Final checkpoint publishing to LVQ {}", newGson().toJson(offsetToCommit));
292
+
log.info("SolaceSparkConnector - Final checkpoint published to LVQ on topic {}", properties.getOrDefault(SolaceSparkStreamingProperties.SOLACE_SPARK_CONNECTOR_LVQ_TOPIC, SolaceSparkStreamingProperties.SOLACE_SPARK_CONNECTOR_LVQ_DEFAULT_TOPIC));
293
+
log.trace("SolaceSparkConnector - Final checkpoint publishing to LVQ {} on topic {}", newGson().toJson(offsetToCommit), properties.getOrDefault(SolaceSparkStreamingProperties.SOLACE_SPARK_CONNECTOR_LVQ_TOPIC, SolaceSparkStreamingProperties.SOLACE_SPARK_CONNECTOR_LVQ_DEFAULT_TOPIC));
@@ -96,7 +96,7 @@ public SolaceInputPartitionReader(SolaceInputPartition inputPartition, boolean i
96
96
log.info("SolaceSparkConnector - Acknowledging any processed messages to Solace as commit is successful");
97
97
longstartTime = System.currentTimeMillis();
98
98
SolaceMessageTracker.ackMessages(uniqueId);
99
-
log.trace("SolaceSparkConnector - Total time taken to acknowledge messages {} ms", (System.currentTimeMillis() - startTime));
99
+
log.info("SolaceSparkConnector - Total time taken to acknowledge messages {} ms", (System.currentTimeMillis() - startTime));
100
100
} else {
101
101
log.info("SolaceSparkConnector - Spark Batch with id {} is requesting data again. It may be because of multiple operations on same dataframe.", currentBatchId);
102
102
isCommitTriggered = false;
@@ -185,7 +185,7 @@ public InternalRow get() {
185
185
}
186
186
// No need to add message to tracker as the call is from same dataframe operation.
187
187
if (shouldTrackMessage) {
188
-
if (solaceRecord.getPartitionKey() != null && !solaceRecord.getPartitionKey().isEmpty()) {
188
+
if (solaceRecord.getPartitionKey() != null && !solaceRecord.getPartitionKey().isEmpty() && isPartitionQueue) {
log.info("SolaceSparkConnector - File path {} to store checkpoint processed in worker node {}", path.toString(), this.solaceInputPartition.getPreferredLocation());
log.trace("SolaceSparkConnector - File path {} to store checkpoint processed in worker node {}", path.toString(), this.solaceInputPartition.getPreferredLocation());
346
346
PathparentDir = path.getParent();
347
347
if (parentDir != null) {
348
348
// Create the directory and all nonexistent parent directories
349
349
Files.createDirectories(parentDir);
350
-
log.trace("SolaceSparkConnector - Created parent directory {} for file path {}", parentDir.toString(), path.toString());
350
+
log.info("SolaceSparkConnector - Created parent directory {} for file path {}", parentDir.toString(), path.toString());
log.info("SolaceSparkConnector - No processed message id's available for input partition {} and nothing is written to checkpoint {}", this.solaceInputPartition.getId(), this.checkpointLocation);
371
373
}
372
374
373
-
374
375
log.info("SolaceSparkConnector - Total time taken by executor is {} ms for Task {}", context.taskMetrics().executorRunTime(), uniqueId);
0 commit comments