You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by nakomis <gi...@git.apache.org> on 2014/11/13 14:41:01 UTC

[GitHub] incubator-brooklyn pull request: Minor changes to help downstream ...

GitHub user nakomis opened a pull request:

    https://github.com/apache/incubator-brooklyn/pull/327

    Minor changes to help downstream Riak project

    

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

    $ git pull https://github.com/nakomis/incubator-brooklyn riak-minor-changes

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

    https://github.com/apache/incubator-brooklyn/pull/327.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 #327
    
----
commit 11502df794cfa6e22f5ec68450e07220bee3962e
Author: Martin Harris <gi...@nakomis.com>
Date:   2014-11-13T13:40:17Z

    Minor changes to help downstream Riak project

----


---
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] incubator-brooklyn pull request: Minor changes to help downstream ...

Posted by alasdairhodge <gi...@git.apache.org>.
Github user alasdairhodge commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/327#discussion_r20369296
  
    --- Diff: locations/jclouds/src/main/java/brooklyn/location/jclouds/JcloudsLocation.java ---
    @@ -718,7 +718,19 @@ protected JcloudsSshMachineLocation obtainOnce(ConfigBag setup) throws NoMachine
                         
                         List<String> iptablesRules = createIptablesRulesForNetworkInterface((Iterable<Integer>) setup.get(INBOUND_PORTS));
                         iptablesRules.add(IptablesCommands.saveIptablesRules());
    -                    sshMachineLocation.execCommands("Inserting iptables rules", iptablesRules);
    +                    List<String> batch = Lists.newArrayList();
    +                    // Some entities, such as Riak (erlang based) have a huge range of ports, which leads to a script that
    +                    // is too large to run (fails with a broken pipe). Batch the rules into batches of 50
    +                    for (int i = 0; i < iptablesRules.size(); i++) {
    --- End diff --
    
    Niggle: now that the end-of-batch check doesn't reference `i`, we could use the neater `for` syntax.


---
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] incubator-brooklyn pull request: Minor changes to help downstream ...

Posted by nakomis <gi...@git.apache.org>.
Github user nakomis commented on the pull request:

    https://github.com/apache/incubator-brooklyn/pull/327#issuecomment-63091856
  
    PR comments addressed


---
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] incubator-brooklyn pull request: Minor changes to help downstream ...

Posted by alasdairhodge <gi...@git.apache.org>.
Github user alasdairhodge commented on the pull request:

    https://github.com/apache/incubator-brooklyn/pull/327#issuecomment-63091143
  
    This looks straightforward. Can we merge, @aledsage? Need these changes for downstream project.


---
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] incubator-brooklyn pull request: Minor changes to help downstream ...

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

    https://github.com/apache/incubator-brooklyn/pull/327


---
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.
---