alshabib

Merge branch 'master' of ssh://gerrit.onlab.us:29418/onos-next

...@@ -58,10 +58,6 @@ ...@@ -58,10 +58,6 @@
58 <groupId>org.osgi</groupId> 58 <groupId>org.osgi</groupId>
59 <artifactId>org.osgi.core</artifactId> 59 <artifactId>org.osgi.core</artifactId>
60 </dependency> 60 </dependency>
61 - <dependency>
62 - <groupId>org.apache.felix</groupId>
63 - <artifactId>org.apache.felix.scr.annotations</artifactId>
64 - </dependency>
65 </dependencies> 61 </dependencies>
66 62
67 <build> 63 <build>
......
...@@ -152,6 +152,16 @@ public class GossipLinkStore ...@@ -152,6 +152,16 @@ public class GossipLinkStore
152 152
153 @Deactivate 153 @Deactivate
154 public void deactivate() { 154 public void deactivate() {
155 +
156 + executor.shutdownNow();
157 + try {
158 + if (!executor.awaitTermination(5, TimeUnit.SECONDS)) {
159 + log.error("Timeout during executor shutdown");
160 + }
161 + } catch (InterruptedException e) {
162 + log.error("Error during executor shutdown", e);
163 + }
164 +
155 linkDescs.clear(); 165 linkDescs.clear();
156 links.clear(); 166 links.clear();
157 srcLinks.clear(); 167 srcLinks.clear();
......
...@@ -20,7 +20,7 @@ export PATH="$PATH:." ...@@ -20,7 +20,7 @@ export PATH="$PATH:."
20 # Convenience utility to warp to various ONOS source projects 20 # Convenience utility to warp to various ONOS source projects
21 # e.g. 'o api', 'o dev', 'o' 21 # e.g. 'o api', 'o dev', 'o'
22 function o { 22 function o {
23 - cd $(find $ONOS_ROOT/ -type d | egrep -v '\.git|target' | \ 23 + cd $(find $ONOS_ROOT/ -type d | egrep -v '\.git|target|gen-src' | \
24 egrep "${1:-$ONOS_ROOT}" | egrep -v "$ONOS_ROOT/.+/src/" | head -n 1) 24 egrep "${1:-$ONOS_ROOT}" | egrep -v "$ONOS_ROOT/.+/src/" | head -n 1)
25 } 25 }
26 26
......
...@@ -17,5 +17,9 @@ nodes=$(env | sort | egrep "OC[0-9]+" | cut -d= -f2) ...@@ -17,5 +17,9 @@ nodes=$(env | sort | egrep "OC[0-9]+" | cut -d= -f2)
17 for node in $nodes; do 17 for node in $nodes; do
18 scp -q $jar $ONOS_USER@$node:.m2/repository/$jar 18 scp -q $jar $ONOS_USER@$node:.m2/repository/$jar
19 scp -q $jar $ONOS_USER@$node:$ONOS_INSTALL_DIR/$KARAF_DIST/system/$jar 19 scp -q $jar $ONOS_USER@$node:$ONOS_INSTALL_DIR/$KARAF_DIST/system/$jar
20 - ssh $ONOS_USER@$node "$ONOS_INSTALL_DIR/bin/onos \"bundle:update -f $bundle\"" 2>/dev/null 20 + ssh $ONOS_USER@$node "
21 + $ONOS_INSTALL_DIR/bin/onos \"bundle:stop -f $bundle\"
22 + $ONOS_INSTALL_DIR/bin/onos \"bundle:update -f $bundle\"
23 + $ONOS_INSTALL_DIR/bin/onos \"bundle:start -f $bundle\"
24 + " 2>/dev/null
21 done 25 done
......
1 +Copyright (c) 2010-2014, Michael Bostock
2 +All rights reserved.
3 +
4 +Redistribution and use in source and binary forms, with or without
5 +modification, are permitted provided that the following conditions are met:
6 +
7 +* Redistributions of source code must retain the above copyright notice, this
8 + list of conditions and the following disclaimer.
9 +
10 +* Redistributions in binary form must reproduce the above copyright notice,
11 + this list of conditions and the following disclaimer in the documentation
12 + and/or other materials provided with the distribution.
13 +
14 +* The name Michael Bostock may not be used to endorse or promote products
15 + derived from this software without specific prior written permission.
16 +
17 +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18 +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20 +DISCLAIMED. IN NO EVENT SHALL MICHAEL BOSTOCK BE LIABLE FOR ANY DIRECT,
21 +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22 +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
24 +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26 +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.