Skip to content
Snippets Groups Projects
Commit e13c773e authored by unknown's avatar unknown
Browse files

Using Stopwatch

parent a4c5210d
No related branches found
No related tags found
1 merge request!283Added Logs to Debug Partition Latency Issue
Pipeline #140995 failed
......@@ -72,9 +72,10 @@ public class PartitionTableStore {
public Map<String, Property> getPartition(String partitionId) {
Map<String, Property> out = new HashMap<>();
long startTime = System.currentTimeMillis();
Stopwatch stopwatch = Stopwatch.createStarted();
List<PartitionEntity> partitionEntities = this.getAllByPartitionId(partitionId);
log.info(String.format("getAllByPartitionId Method Time: %d", System.currentTimeMillis() - startTime));
stopwatch.stop();
log.info(String.format("Total time taken by Get Partition Method based on PartitionId: %d", stopwatch.elapsed(TimeUnit.MILLISECONDS)));
if (partitionEntities.isEmpty()) {
return out;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment