浏览代码

Merge branch 'master' into candidate-6.0.0

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 9 年之前
父节点
当前提交
03192c00bc
共有 2 个文件被更改,包括 7 次插入6 次删除
  1. 1 0
      cmake_modules/FindJNI.cmake
  2. 6 6
      common/thorhelper/thorsoapcall.cpp

+ 1 - 0
cmake_modules/FindJNI.cmake

@@ -195,6 +195,7 @@ JAVA_APPEND_LIBRARY_DIRECTORIES(JAVA_AWT_EXPANDED_INCLUDE_DIRECTORIES
   /usr/lib/jvm/java-6-sun-1.6.0.00/include       # can this one be removed according to #8821 ? Alex
   /usr/lib/jvm/java-6-sun-1.6.0.00/include       # can this one be removed according to #8821 ? Alex
   /usr/lib/jvm/java-7-openjdk-{libarch}/include  # Ubuntu 13.04 location
   /usr/lib/jvm/java-7-openjdk-{libarch}/include  # Ubuntu 13.04 location
   /usr/lib/jvm/java-6-openjdk-{libarch}/jre/lib/{libarch}  # Ubuntu 12.10 location
   /usr/lib/jvm/java-6-openjdk-{libarch}/jre/lib/{libarch}  # Ubuntu 12.10 location
+  /usr/lib/jvm/java-6-openjdk-{libarch}/include
   /usr/lib/jvm/java-6-openjdk/include
   /usr/lib/jvm/java-6-openjdk/include
   /usr/local/share/java/include
   /usr/local/share/java/include
   /usr/lib/j2sdk1.4-sun/include
   /usr/lib/j2sdk1.4-sun/include

+ 6 - 6
common/thorhelper/thorsoapcall.cpp

@@ -1754,7 +1754,7 @@ public:
     {
     {
         StringBuffer request;
         StringBuffer request;
         StringBuffer response;
         StringBuffer response;
-        unsigned attempts = 0;
+        unsigned numRetries = 0;
         unsigned retryInterval = 0;
         unsigned retryInterval = 0;
 
 
         Url &url = master->urlArray.item(idx);
         Url &url = master->urlArray.item(idx);
@@ -1917,17 +1917,17 @@ public:
 
 
                 // other IException ... retry up to maxRetries
                 // other IException ... retry up to maxRetries
                 StringBuffer s;
                 StringBuffer s;
-                master->logctx.CTXLOG("Exception %s - retrying? (%d<%d)", e->errorMessage(s).str(), attempts, master->maxRetries);
+                master->logctx.CTXLOG("Exception %s", e->errorMessage(s).str());
 
 
-                if (attempts > master->maxRetries)
+                if (numRetries >= master->maxRetries)
                 {
                 {
                     // error affects all inputRows
                     // error affects all inputRows
-                    master->logctx.CTXLOG("Exiting: maxRetries exceeded");
+                    master->logctx.CTXLOG("Exiting: maxRetries %d exceeded", master->maxRetries);
                     processException(url, inputRows, e);
                     processException(url, inputRows, e);
                     break;
                     break;
                 }
                 }
-                master->logctx.CTXLOG("Retrying: maxRetries not exceeded");
-                attempts++;
+                numRetries++;
+                master->logctx.CTXLOG("Retrying: attempt %d of %d", numRetries, master->maxRetries);
                 e->Release();
                 e->Release();
             }
             }
             catch (std::exception & es)
             catch (std::exception & es)