Commit graph

9216 commits

Author SHA1 Message Date
patriknw
6427663fdc Merge pull request #310 from jboner/wip-executor-patriknw
PinnedDispatcher config and docs for dispatcher executor.
2012-02-07 04:36:37 -08:00
Patrik Nordwall
ac38686593 System.exit on fatal error and removed actor null check. See #1799 and #1768
* Config property jvmExitOnFatalError
* System.exit in case of fatal error, such as OutOfMemoryError
* Adjusted NonFatal extractor, ok with StackOverflowError, not ok with LinkageError
* Removed the actor null check in ActorCell
2012-02-07 12:00:50 +01:00
Viktor Klang
3f06758142 Adding link to config for application.conf 2012-02-07 11:14:09 +01:00
Viktor Klang
e12804660f Fixing doc error in remoting 2012-02-07 11:02:01 +01:00
Patrik Nordwall
2a167acd92 Some cleanup and additional tests for Serializable. See #1786
* Tried to add @SerialVersionUID(1L) but that removed static forwarders, due to https://issues.scala-lang.org/browse/SI-4804
* Added Serializable to UntypedActorFactory
* Removed some unecessary Serializable
2012-02-07 10:28:42 +01:00
Patrik Nordwall
9c8c0d42c5 Add @SerialVersionUID to Serializable classes. See #1786
* @SerialVersionUID(1L)
* UntypedActorFactory serialization, and test
* Removed Serializable from Serializers
2012-02-07 10:05:54 +01:00
Patrik Nordwall
0bd4663c91 PinnedDispatcher config and docs for dispatcher executor.
* Update PinnedDispatcher config in tests and docs. See #1796
* Update dispatchers doc with info about executor. See #1795
2012-02-07 09:50:03 +01:00
Patrik Nordwall
239df9d5fb Improvements after review 2012-02-06 22:20:38 +01:00
Patrik Nordwall
1dbce49359 Configure serializer with class as key. See #1789 2012-02-06 21:15:17 +01:00
Viktor Klang
d7435547ff Revert "Commenting out Akka Cluster because it shouldn't be Released, have fun Jonas ;)"
This reverts commit 4b56e754bc.
2012-02-06 17:29:17 +01:00
Viktor Klang
4b56e754bc Commenting out Akka Cluster because it shouldn't be Released, have fun Jonas ;) 2012-02-06 17:06:08 +01:00
Viktor Klang
73fce52235 Fixing returns to return in ScalaDoc 2012-02-06 16:59:09 +01:00
Viktor Klang
2acce5b17f Switching to using the internalClassLoader for loading the Serializers 2012-02-06 16:42:42 +01:00
viktorklang
fe3e46d137 Merge pull request #303 from jboner/wip-a-better-future-√
Adding type parameter to onComplete for better type inference. Making co...
2012-02-06 07:12:45 -08:00
viktorklang
4e886827bb Merge pull request #308 from jboner/wip-1751-1769-fj-uhe-√
Creating our own FJTask and escalate exceptions to UHE
2012-02-06 07:12:05 -08:00
Viktor Klang
66c1e2d835 Sprinkling some finals and adding return types 2012-02-06 15:42:28 +01:00
Viktor Klang
09c44289d4 Creating our own FJTask and escalate exceptions to UHE 2012-02-06 15:19:05 +01:00
Roland
15fa414d46 also add configurability section to eclipse example 2012-02-06 14:11:46 +01:00
Roland Kuhn
809000f9af Merge pull request #304 from jboner/wip-DOCS-∂π
Wip docs ∂π
2012-02-06 04:01:01 -08:00
Roland
4e12b72959 move Java code snippet into compiled class 2012-02-06 12:59:03 +01:00
Roland
96486428e1 add conf override to Pi sample, see #1763 2012-02-06 12:49:22 +01:00
Viktor Klang
fac0d2e509 Improving the imports of Future 2012-02-06 12:48:03 +01:00
Roland
9ba5043539 add router design rationale, see #1772 2012-02-06 12:18:08 +01:00
Viktor Klang
a607fbd517 Adding type parameter to onComplete for better type inference. Making complete throw exception on race. Minor code improvements inside Future 2012-02-06 12:10:37 +01:00
Peter Vlugter
34df500c92 Add comment about ssh config for release script 2012-02-06 12:06:36 +13:00
Peter Vlugter
3fbd18f0fa Update to ScalaSTM 0.5 (which includes Java API) 2012-02-06 11:34:47 +13:00
Viktor Klang
59d6e93af4 Making Akka more Android compliant :-) 2012-02-05 21:09:33 +01:00
Jonas Bonér
67d0b0807c Merge pull request #297 from jboner/wip-fix-multi-jvm-test-jboner
Fix running multi jvm test in parallel with other remoting tests. Fixes bug in RandomRouter.
2012-02-05 00:35:01 -08:00
Jonas Bonér
42f5af7fb0 fixes review comments 2012-02-05 09:19:57 +01:00
patriknw
1d6f350799 Merge pull request #300 from jboner/wip-1776-ser-patriknw
Find serializer by looking at interfaces and super classes. See #1766
2012-02-04 10:19:07 -08:00
Jonas Bonér
f855ff2add Fixed misc stuff after review.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-02-04 17:50:11 +01:00
Patrik Nordwall
bd3766d8a7 Performance improvement 2012-02-04 17:35:39 +01:00
Patrik Nordwall
d6d9446dd3 Improvements 2012-02-03 21:42:33 +01:00
Jonas Bonér
ff62a1cf2a Removed unnecessary config options.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-02-03 18:10:50 +01:00
Jonas Bonér
6abc3b33e3 Fixed bug in ScatterGatherFirstCompletedRouterSpec.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-02-03 18:09:13 +01:00
Jonas Bonér
c01ed6b436 Switched to ThreadLocalRandom.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-02-03 18:08:43 +01:00
Patrik Nordwall
612e909c48 Find serializer by looking at interfaces and super classes. See #1766 2012-02-03 17:32:32 +01:00
Jonas Bonér
2ec15db091 Merge branch 'master' into wip-fix-multi-jvm-test-jboner 2012-02-03 16:38:28 +01:00
Jonas Bonér
2ea6e97a41 Merge branch 'master' of github.com:jboner/akka 2012-02-03 16:31:56 +01:00
Jonas Bonér
a221722c41 Fixed minor typos in the futures docs.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-02-03 16:31:31 +01:00
Roland Kuhn
c7de179276 Merge pull request #298 from jboner/wip-1783-latest-HOCON-∂π
Viktor said: “just push!”
2012-02-03 06:37:29 -08:00
Roland Kuhn
4ded156bd0 Merge pull request #299 from jboner/wip-1782-timing-in-test-for-all-of-us
Wip 1782 timing in test for all of us
2012-02-03 06:36:15 -08:00
Viktor Klang
1e4d643183 Merge branch 'master' of github.com:jboner/akka 2012-02-03 15:30:11 +01:00
Viktor Klang
df67b92f63 Embedding ThreadLocalRandom from jsr166y 2012-02-03 15:29:58 +01:00
Roland Kuhn
3a5c20e228 Merge pull request #296 from jboner/wip-1779-slf4j-docs-∂π
update docs for SLF4J, see #1779
2012-02-03 06:03:38 -08:00
Roland
1758a50789 update to Havoc’s latest config lib from the serializable branch 2012-02-03 15:02:21 +01:00
Jonas Bonér
278658e031 Merge branch 'wip-fix-multi-jvm-test-jboner' of github.com:jboner/akka into wip-fix-multi-jvm-test-jboner 2012-02-03 15:00:55 +01:00
Viktor Klang
3267ce51a0 Merge branch 'master' of github.com:jboner/akka 2012-02-03 15:00:38 +01:00
Jonas Bonér
ec7772b786 Fixes bug in RandomRouter.
Fixes an interesting "bug" in RandomRouter. Tests failed on my 12 core Linux box. After some investigation I found that it hanged randomly inside the SecureRandom seed generator.

[JVM-Node4] "main" prio=10 tid=0x0000000001701000 nid=0x1942 runnable [0x00007fee631dc000]
[JVM-Node4]    java.lang.Thread.State: RUNNABLE
[JVM-Node4]   at java.io.FileInputStream.readBytes(Native Method)
[JVM-Node4]   at java.io.FileInputStream.read(FileInputStream.java:236)
[JVM-Node4]   at sun.security.provider.SeedGenerator$URLSeedGenerator.getSeedBytes(SeedGenerator.java:509)
[JVM-Node4]   at sun.security.provider.SeedGenerator.generateSeed(SeedGenerator.java:135)
[JVM-Node4]   at sun.security.provider.SecureRandom.engineGenerateSeed(SecureRandom.java:131)
[JVM-Node4]   at sun.security.provider.SecureRandom.engineNextBytes(SecureRandom.java:188)
[JVM-Node4]   - locked <0x00000007c3d84130> (a sun.security.provider.SecureRandom)
[JVM-Node4]   at java.security.SecureRandom.nextBytes(SecureRandom.java:450)
[JVM-Node4]   - locked <0x00000007c3d843d0> (a java.security.SecureRandom)
[JVM-Node4]   at java.security.SecureRandom.next(SecureRandom.java:472)
[JVM-Node4]   at java.util.Random.nextInt(Random.java:272)
[JVM-Node4]   at akka.routing.RandomLike$class.getNext$2(Routing.scala:466)

Puzzled at first I Googled the problem and found this bug report: http://bugs.sun.com/view_bug.do?bug_id=6521844

In short it is designed to block on /dev/random (on Linux) when the entropy pool is empty until some "environmental noise is gathered".

From the Linux manual:
"Hanging at generateSeed is not a bug, since that's what was designed:
    When the entropy pool is empty, reads from /dev/random will block until
    additional environmental noise is gathered.
    (Source: Linux Programmer's Manual, section 4)"

Fix was to switch to java.util.Random.

Fun one

Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-02-03 14:56:50 +01:00
Roland
93a506db5f fix SchedulerSpec, this time for real. 2012-02-03 14:52:10 +01:00