Conversation
|
|
||
| @VisibleForTesting | ||
| public static NoopTask create(String id, int priority) | ||
| public static NoopTask withPriority(int priority) |
There was a problem hiding this comment.
withPriority seems a bit misleading as one may think that the other fields' values would be retained
There was a problem hiding this comment.
We could rename it to ofPriority.
| try (Firehose firehose = firehoseFactory != null ? firehoseFactory.connect(null, null) : null) { | ||
|
|
||
| log.info("Running noop task[%s]", getId()); | ||
| log.info("Sleeping for %,d millis.", runTime); |
There was a problem hiding this comment.
Could this logging be useful for understanding test runs better?
There was a problem hiding this comment.
No, I don't see it adding much value. Such messages only fill up the logs and make it difficult to find important things such as warnings and errors.
| @JsonProperty("runTime") long runTime, | ||
| @JsonProperty("runTime") long runTimeMillis, | ||
| @JsonProperty("isReadyTime") long isReadyTime, | ||
| @JsonProperty("isReadyResult") String isReadyResult, |
There was a problem hiding this comment.
Is a non-null value being passed for isReadyResult?
There was a problem hiding this comment.
Not really. I guess we should remove this too.
AmatyaAvadhanula
left a comment
There was a problem hiding this comment.
Thank you for the changes, @kfaraz! +1 after all the checks pass
Changes
createmethods forNoopTaskFirehoseFactoryandIsReadyResultfromNoopTaskas it was not being used anywhereThis PR has: