You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@asterixdb.apache.org by mb...@apache.org on 2019/08/22 16:44:31 UTC
[asterixdb] branch master updated: [NO ISSUE][FAIL] Drop fractional
seconds when reporting response timeout
This is an automated email from the ASF dual-hosted git repository.
mblow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/asterixdb.git
The following commit(s) were added to refs/heads/master by this push:
new cf549cb [NO ISSUE][FAIL] Drop fractional seconds when reporting response timeout
cf549cb is described below
commit cf549cbf1d57cd97802163b4ab9a8c9f27865413
Author: Michael Blow <mb...@apache.org>
AuthorDate: Tue Aug 20 23:39:11 2019 -0400
[NO ISSUE][FAIL] Drop fractional seconds when reporting response timeout
Change-Id: Ia628b5607cdd69a65b4e08daf1c47ecf95b851bb
Reviewed-on: https://asterix-gerrit.ics.uci.edu/3527
Sonar-Qube: Jenkins <je...@fulliautomatix.ics.uci.edu>
Contrib: Jenkins <je...@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
Reviewed-by: Murtadha Hubail <mh...@apache.org>
---
.../src/main/java/org/apache/asterix/messaging/CCMessageBroker.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/asterixdb/asterix-app/src/main/java/org/apache/asterix/messaging/CCMessageBroker.java b/asterixdb/asterix-app/src/main/java/org/apache/asterix/messaging/CCMessageBroker.java
index e775598..1f9ec32 100644
--- a/asterixdb/asterix-app/src/main/java/org/apache/asterix/messaging/CCMessageBroker.java
+++ b/asterixdb/asterix-app/src/main/java/org/apache/asterix/messaging/CCMessageBroker.java
@@ -112,7 +112,7 @@ public class CCMessageBroker implements ICCMessageBroker {
throw HyracksDataException.create(e);
}
if (System.currentTimeMillis() - time > timeout && pair.getLeft().getValue() > 0) {
- throw new RuntimeDataException(ErrorCode.NC_REQUEST_TIMEOUT, timeout / 1000.0);
+ throw new RuntimeDataException(ErrorCode.NC_REQUEST_TIMEOUT, timeout / 1000);
}
}
}