Skip to content

Commit

Permalink
3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Kurilov committed Dec 25, 2016
1 parent 5c3d2c8 commit 6a308ba
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions config/logging.json
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@
]
}
},
{
/*{
"name" : "extResultsFile",
"type": "file",
"fileName": "result.xml",
Expand All @@ -395,7 +395,7 @@
}
]
}
},
},*/
{
"name": "async",
"type": "Async",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ public MetricsSvcTask(
@Override

public final void run() {
final Thread currThread = Thread.currentThread();
currThread.setName(jobName);
long nextNanoTimeStamp;
while(true) {
while(!currThread.isInterrupted()) {
refreshStats();
nextNanoTimeStamp = System.nanoTime();
if(nextNanoTimeStamp - prevNanoTimeStamp > metricsPeriodNanoSec) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private static void formatSingleSnapshot(
final IoStats.Snapshot snapshot, final int concurrency, final int driversCount
) {
buffer
.append(runId).append("\n\t")
.append("\n\t")
.append(IoType.values()[ioTypeCode]).append('-')
.append(concurrency).append('x').append(driversCount)
.append(": n=(").append(snapshot.getSuccCount()).append('/')
Expand All @@ -79,7 +79,7 @@ private static void formatSingleSnapshot(
}

private void formatMultiSnapshot(final StringBuilder buffer) {
final StrBuilder strb = new StrBuilder(jobName).append(" metrics:");
final StrBuilder strb = new StrBuilder("metrics:");
if(snapshots.size() > 0) {
strb.appendNewLine();
for(final String tableHeaderLine : TABLE_HEADER_LINES) {
Expand Down
7 changes: 4 additions & 3 deletions run/src/main/java/com/emc/mongoose/run/scenario/LoadJob.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public final void run() {

final LoadConfig loadConfig = localConfig.getLoadConfig();
final String jobName = loadConfig.getJobConfig().getName();
LOG.info(Markers.MSG, "Run the load job \"{}\"", jobName);
loadConfig.getMetricsConfig().setPrecondition(preconditionFlag);

final ItemConfig itemConfig = localConfig.getItemConfig();
Expand Down Expand Up @@ -209,16 +210,16 @@ public final void run() {
}
monitor.start();
if(monitor.await(timeLimitSec, TimeUnit.SECONDS)) {
LOG.info(Markers.MSG, "Load monitor done");
LOG.info(Markers.MSG, "Load job \"{}\" done", jobName);
} else {
LOG.info(Markers.MSG, "Load monitor timeout");
LOG.info(Markers.MSG, "Load job \"{}\" timeout", jobName);
}
} catch(final RemoteException e) {
LogUtil.exception(LOG, Level.ERROR, e, "Unexpected failure");
} catch(final IOException e) {
LogUtil.exception(LOG, Level.WARN, e, "Failed to open the item output file");
} catch(final InterruptedException e) {
LOG.debug(Markers.MSG, "Load monitor interrupted");
LOG.debug(Markers.MSG, "Load job \"{}\" interrupted", jobName);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public final void run() {

final LoadConfig localLoadConfig = localConfig.getLoadConfig();
final String jobName = localLoadConfig.getJobConfig().getName();
LOG.info(Markers.MSG, "Run the mixed load job \"{}\"", jobName);
final LimitConfig limitConfig = localLoadConfig.getLimitConfig();

final long t = limitConfig.getTime();
Expand Down

0 comments on commit 6a308ba

Please sign in to comment.