HDDS-1174. Freon tests are failing with null pointer exception.
Contributed by Shashikant Banerjee.
This commit is contained in:
parent
a106d2dc9d
commit
a5a751b418
|
@ -215,8 +215,10 @@ public final class RandomKeyGenerator implements Callable<Void> {
|
||||||
for (FreonOps ops : FreonOps.values()) {
|
for (FreonOps ops : FreonOps.values()) {
|
||||||
histograms.add(ops.ordinal(), new Histogram(new UniformReservoir()));
|
histograms.add(ops.ordinal(), new Histogram(new UniformReservoir()));
|
||||||
}
|
}
|
||||||
|
if (freon != null) {
|
||||||
freon.startHttpServer();
|
freon.startHttpServer();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Void call() throws Exception {
|
public Void call() throws Exception {
|
||||||
|
@ -296,7 +298,9 @@ public final class RandomKeyGenerator implements Callable<Void> {
|
||||||
Runtime.getRuntime().addShutdownHook(
|
Runtime.getRuntime().addShutdownHook(
|
||||||
new Thread(() -> {
|
new Thread(() -> {
|
||||||
printStats(System.out);
|
printStats(System.out);
|
||||||
|
if (freon != null) {
|
||||||
freon.stopHttpServer();
|
freon.stopHttpServer();
|
||||||
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue