Skip to content
This repository was archived by the owner on Mar 23, 2022. It is now read-only.

Commit

Permalink
Force use of IPv4 instead of IPv6 (-Djava.net.preferIPv4Stack=true)
Browse files Browse the repository at this point in the history
Notably, this prevents tests to fail on Mac OS X because of timeouts caused
by resolution of localhost and IPv6.  Storm uses a hardcoded test timeout of
5 seconds (see `TEST-TIMEOUT-MS` in `backtype.storm.testing.clj`), which is
often exceeded because of the long duration of resolution on Mac OS X
when IPv6 is enabled.

For more details on the timeout issue see:
https://issues.apache.org/jira/browse/STORM-70
https://issues.apache.org/jira/browse/ZOOKEEPER-1476
  • Loading branch information
miguno committed Jun 30, 2014
1 parent 306aa33 commit a70c4dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .sbtopts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
-J-Xmx512m
-Djava.awt.headless=true
-Djava.net.preferIPv4Stack=true

0 comments on commit a70c4dd

Please sign in to comment.