Code Review
/
nonrtric
/
plt
/
ranpm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Improve Test coverage of pmproducer Issue-ID: NONRTRIC-877"
[nonrtric/plt/ranpm.git]
/
pmproducer
/
src
/
main
/
java
/
org
/
oran
/
pmproducer
/
tasks
/
JobDataDistributor.java
diff --git
a/pmproducer/src/main/java/org/oran/pmproducer/tasks/JobDataDistributor.java
b/pmproducer/src/main/java/org/oran/pmproducer/tasks/JobDataDistributor.java
index
f2d7b53
..
130cbd3
100644
(file)
--- a/
pmproducer/src/main/java/org/oran/pmproducer/tasks/JobDataDistributor.java
+++ b/
pmproducer/src/main/java/org/oran/pmproducer/tasks/JobDataDistributor.java
@@
-79,6
+79,7
@@
public class JobDataDistributor {
this.consumerFaultCounter = 0;
}
this.consumerFaultCounter = 0;
}
+ @SuppressWarnings("java:S1172")
public void handleException(Throwable t) {
++this.consumerFaultCounter;
}
public void handleException(Throwable t) {
++this.consumerFaultCounter;
}
@@
-159,7
+160,7
@@
public class JobDataDistributor {
private void sendLastStoredRecord() {
String data = "{}";
private void sendLastStoredRecord() {
String data = "{}";
- FilteredData output = new FilteredData(this.jobGroup.getType().getId(), null, data.getBytes());
+ FilteredData output = new FilteredData(
"",
this.jobGroup.getType().getId(), null, data.getBytes());
sendToClient(output).subscribe();
}
sendToClient(output).subscribe();
}
@@
-173,7
+174,7
@@
public class JobDataDistributor {
gzip.flush();
gzip.close();
byte[] zipped = out.toByteArray();
gzip.flush();
gzip.close();
byte[] zipped = out.toByteArray();
- return new FilteredData(data.infoTypeId, data.key, zipped, true);
+ return new FilteredData(data.
getSourceName(), data.
infoTypeId, data.key, zipped, true);
} catch (IOException e) {
logger.error("Unexpected exception when zipping: {}", e.getMessage());
return data;
} catch (IOException e) {
logger.error("Unexpected exception when zipping: {}", e.getMessage());
return data;