You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@accumulo.apache.org by keith-turner <gi...@git.apache.org> on 2015/06/13 00:03:09 UTC

[GitHub] accumulo pull request: ACCUMULO-2388 Make clients retry in case of...

GitHub user keith-turner opened a pull request:

    https://github.com/apache/accumulo/pull/38

    ACCUMULO-2388 Make clients retry in case of HoldTimeoutException

    To test this patch, I made the following changes and ran the WriteLotsIt and ConditionalWriterIT
    
    ```
    diff --git a/server/tserver/src/main/java/org/apache/accumulo/tserver/TabletServerResourceManager.java b/server/tserver/src/main/java/org/apache/accumulo/tserver/TabletServerResourceManager.java
    index 7c0eedc..4483fe8 100644
    --- a/server/tserver/src/main/java/org/apache/accumulo/tserver/TabletServerResourceManager.java
    +++ b/server/tserver/src/main/java/org/apache/accumulo/tserver/TabletServerResourceManager.java
    @@ -469,6 +469,9 @@ public class TabletServerResourceManager {
       }
     
       void waitUntilCommitsAreEnabled() {
    +    if(Math.random() < .1)
    +      throw new HoldTimeoutException("test");
    +
         if (holdCommits) {
           long timeout = System.currentTimeMillis() + conf.getConfiguration().getTimeInMillis(Property.GENERAL_RPC_TIMEOUT);
           synchronized (commitHold) {
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/keith-turner/accumulo ACCUMULO-2388

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/accumulo/pull/38.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #38
    
----
commit 6965fb07c97cd752d6f5415a39e87b9ff3c1ba7e
Author: Keith Turner <kt...@apache.org>
Date:   2015-06-12T21:47:18Z

    ACCUMULO-2388 Make clients retry in case of HoldTimeoutException

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] accumulo pull request: ACCUMULO-2388 Make clients retry in case of...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/accumulo/pull/38


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---