srdo commented on a change in pull request #3055: STORM-3440: client: fix all
checkstyle warnings
URL: https://github.com/apache/storm/pull/3055#discussion_r299140076
##########
File path:
storm-client/src/jvm/org/apache/storm/trident/topology/TridentBoltExecutor.java
##########
@@ -177,43 +177,43 @@ private void checkFinish(TrackedBatch tracked, Tuple
tuple, TupleType type) {
public void execute(Tuple tuple) {
if (TupleUtils.isTick(tuple)) {
long now = System.currentTimeMillis();
- if (now - _lastRotate > _messageTimeoutMs) {
- _batches.rotate();
- _lastRotate = now;
+ if (now - lastRotate > messageTimeoutMs) {
+ batches.rotate();
+ lastRotate = now;
}
return;
}
- String batchGroup =
_batchGroupIds.get(tuple.getSourceGlobalStreamId());
+ String batchGroup = batchGroupIds.get(tuple.getSourceGlobalStreamId());
if (batchGroup == null) {
// this is so we can do things like have simple DRPC that doesn't
need to use batch processing
- _coordCollector.setCurrBatch(null);
- _bolt.execute(null, tuple);
- _collector.ack(tuple);
+ coordCollector.setCurrBatch(null);
+ bolt.execute(null, tuple);
+ collector.ack(tuple);
return;
}
IBatchID id = (IBatchID) tuple.getValue(0);
//get transaction id
//if it already exists and attempt id is greater than the attempt there
- TrackedBatch tracked = (TrackedBatch) _batches.get(id.getId());
- // if(_batches.size() > 10 && _context.getThisTaskIndex() == 0)
{
- // System.out.println("Received in " +
_context.getThisComponentId() + " " + _context.getThisTaskIndex()
- // + " (" + _batches.size() + ")" +
+ TrackedBatch tracked = (TrackedBatch) batches.get(id.getId());
+ // if(batches.size() > 10 && context.getThisTaskIndex() == 0) {
Review comment:
I think we should delete the commented out code here
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services