Skip to content

Commit

Permalink
Minor fixes in monitor
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Khoroshavin <[email protected]>
  • Loading branch information
Sergey Khoroshavin committed Apr 4, 2018
1 parent 25f5ef4 commit d4ed1dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plenum/server/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def __init__(self, name: str, Delta: float, Lambda: float, Omega: float,
self.numOrderedRequests = [] # type: List[Tuple[int, int]]

# Utility object for tracking requests order start and end
# TODO: Has very similar cleanup logic to propagator.Requests
self.requestTracker = RequestTimeTracker(instances.count)

# Request latencies for the master protocol instances. Key of the
Expand Down Expand Up @@ -289,8 +290,7 @@ def requestOrdered(self, reqIdrs: List[Tuple[str, int]], instId: int,
for identifier, reqId in reqIdrs:
if (identifier, reqId) not in self.requestTracker:
logger.debug(
"Got ordered request with identifier {} and reqId {} "
"but it was from a previous view".
"Got untracked ordered request with identifier {} and reqId {}".
format(identifier, reqId))
continue
duration = self.requestTracker.order(instId, identifier, reqId, now)
Expand Down

0 comments on commit d4ed1dd

Please sign in to comment.