Commit graph

1478 commits

Author SHA1 Message Date
Felix Satyaputra
4d9268214d +rem Support serialization of scala Some and None (#20801) 2016-06-19 17:55:10 +02:00
Björn Antonsson
c66ce62d63 Update to a working version of Scalariform 2016-06-02 22:12:36 +02:00
Patrik Nordwall
48212778a5 keep the refuseUid along association state transitions, #20531
* keep the refuseUid (old quarantined) when transitioning
  Pass -> Gated -> Pass
* introduced new state WasGated to keep track of the refuseUid
2016-06-02 13:17:31 +02:00
Patrik Nordwall
abb9a1fd9b gating should not overwrite quarantine, #20531
* Reproduced with cluster sample.
  * auto-down=45s
  * node1 and node2 joins
  * suspend node2 (kill -STOP)
  * node1 removes and quarantines node2
  * resume node2 (kill -CONT)
  * node2 receives heartbeat response from node1, which
    is not expected since node2 is supposed to be quarantined
  * the reason is that the quarantine is overwritten by gating
2016-06-02 13:17:31 +02:00
qian miao
b8128991d5 fix-rds-leak-bug 2016-05-24 15:49:35 +08:00
2beaucoup
bc7cd17bee =htc Various minor cleanups (#20451)
* minor fixes

* remove now superfluous buffer from MultipartUnmarshaller

* remove unused TokenSourceActor

* remove FIXME: add tests, see #16437

* removed unused param remoteAddress (comment: TODO: remove after #16168 is cleared)

* convert FIXME to TODO (#18709)

* reenable tests in {Request|Response}RendererSpec due to fixed #15981

* remove logging workaround in StreamTestDefaultMailbox due to fixed #15947
2016-05-06 10:32:06 +02:00
Felix Satyaputra
c4aec5e8a2 Support Protobuf serialization/deserialization of akka.actor.Identify and akka.actor.ActorIdentity (#20380)
This is to ensure Akka Cluster Client will work with Java Serialization turned off.

However for the sake of backward compatibility, the protobuf serialization for `akka.actor.Identify`
and `akka.actor.ActorIdentity` is turned off.
2016-04-28 15:33:59 +02:00
Andrea Peruffo
088bf1b842 =act Locale unaware method in Helpers. (#20412) 2016-04-28 15:32:46 +02:00
Patrik Nordwall
770c216ceb harden ActorLeakSpec, #20221
* on local it took 8 seconds for the expected

  TimeoutException to occur in the last

  EventFilter[TimeoutException](occurrences = 1).intercept {}

  Therefore I assume that the 10 seconds timeout was too short
2016-04-05 17:37:12 +02:00
Patrik Nordwall
9f659cf9b1 remove JUnitRunner annotation, #16112
* it was used for running tests from inside Eclipse,

  but since it caused some trouble we remove it
2016-04-05 17:06:58 +02:00
Patrik Nordwall
3e7cd4d98c Merge pull request #20093 from akka/wip-19780-ack-takeover-patriknw
rem #19780: Skip acks during connection handoff
2016-03-22 14:01:29 +01:00
Konrad Malawski
f34ef537f7 Merge pull request #20100 from akka/wip-18650-DNS-config-patriknw
make DNS actor work with RemoteActorRefProvider, #18650
2016-03-22 12:59:59 +01:00
Konrad Malawski
a049b2b606 Merge pull request #20062 from akka/wip-remote-cause-patriknw
include cause in remote init failure logging, #20061
2016-03-21 17:13:19 +01:00
Patrik Nordwall
fcd7561b2f make DNS actor work with RemoteActorRefProvider, #18650
* The configuration of the pool of the SimpleDnsManager
  is configured in deployment section "/IO-DNS/inet-address"
* We don't really support deployment configuration of system actors
  but here it's used and I don't think we can change that.
* It didn't work when using RemoteActorRefProvider/ClusterActorRefProvider,
  so I fixed it so that the behavior is consistent with the
  LocalActorRefProvider (verified by tests)
2016-03-21 14:39:00 +01:00
Patrik Nordwall
96b68f6437 rem #19780: Skip acks during connection handoff
* The problem: ACK that was targeted to an old incarnation
  was sent to the new, restarted, system with same host:port, and
  therefore resulting issues noticed as
  "Error encountered while processing system message acknowledgement buffer: [-1 {}] ack: ACK[0, {}]"
  when restarting actor system

* The reason:

  1. The endpoint reader was about to send OutgoingAck to parent reader,
     targeted to the old system.
  2. At the same time there is an incoming connection from new system
     that triggered TakeOver in the endpoint writer, i.e. replacing
     the handle to the connection of the new system.
  3. The OutgoingAck is received by the writer, which happily sends it
     to the new handle, the new system.

* The solution: Ignore OutgoingAck during the handoff (TakeOver) process.
2016-03-21 08:55:19 +01:00
Patrik Nordwall
ed6acd63ec Merge pull request #20036 from akka/wip-19322-bufferWasInUse-patriknw
=rem #19322 reset bufferWasInUse
2016-03-21 08:50:05 +01:00
Patrik Nordwall
0f5ae47dc4 include cause in remote init failure logging, #20061 2016-03-17 08:29:19 +01:00
Patrik Nordwall
7e924a8c75 =rem #19322 reset bufferWasInUse 2016-03-15 18:57:11 +01:00
Kirill Plyashkevich
9503c1f588 When RARP is being shutdown, it pipes result of the shutdown of transport to self.
remote's shutdown is using `ask` pattern, so it can produce `Status.Failure`, which is not handled in RARP's state `WaitTransportShutdown`.
For fixing it added matching for `Status.Failure` and changed `RemoteTransport`'s shutdown signature to use `akka.Done`, which looks more consistent with other shutdown's and `akka.Done` is more verbose than previously used `Unit`.
2016-02-29 13:02:24 +01:00
Johannes Rudolph
b6cbc7f13a =all remove unused imports 2016-02-23 20:29:22 +01:00
Johan Andrén
62e30b3c08 Update copyrights and links to the new company name #19851 2016-02-23 12:58:39 +01:00
Prayag Verma
b7783968a0 =pro #19068 All copyrights ranges and single years updated to a range ending in 2016 2016-01-25 10:20:30 +01:00
2beaucoup
f7a5151bbb #19447 remove compatibility fallbacks for Java < 8 2016-01-14 15:52:13 +01:00
Konrad Malawski
6ecab411b8 Revert "=act,rem #17911 handle IPv6 Addresses better" 2016-01-07 11:03:18 +01:00
Johan Andrén
711c407a8f =act,rem #17911 handle IPv6 Addresses better
* NettyTransport will autowrap IPv6 addresses in brackets if needed
* Address asserts that IPv6 addresses are wrapped in brackets
2016-01-05 21:47:45 +01:00
Roland Kuhn
377748bb0e Merge pull request #19107 from jdevelop/jdevelop-quarantined-event-propagation-18758
#18758 Send appropriate events on remote actor system shutdown and quarantine
2015-12-20 20:31:04 +01:00
Eugene Dzhurinsky
fb763040f2 Add named exception to detect when a cluster node has been quarantined by others #18758
Publish appropriate events to the current ActorSystem event stream upon remote ActorSystem shutdown or when current ActorSystem is quarantined by the remote ActorSystem.
2015-12-20 13:02:19 -05:00
Konrad Malawski
ea4616c281 =rem #19228 make the default TLS version 1.2
TLS 1.2 should be preferred and we always have it available by virtue of requiring JDK8 for Akka 2.4.x.
See also https://blogs.oracle.com/java-platform-group/entry/java_8_will_use_tls
2015-12-18 13:11:12 +01:00
Patrik Nordwall
b6b498bd2c =rem #19133 avoid DeathPactException race condition
* DeathPactException could occur if the ReliableDeliverySupervisor
  was gated but not yet received Terminated and got an Ungate message
  from the EndpointManager and thereby entered idle state, followed by
  receiving the Terminated message, which is not handled in idle
2015-12-16 14:20:30 +01:00
Endre Sándor Varga
c4e326c9dd +rem #18353: Prune reliable deliver actors
(cherry picked from commit 6643f56)
2015-11-13 10:15:31 +01:00
Roland Kuhn
f1abaa1c5e Merge pull request #18875 from ktoso/wip-akka.js-cherries-ktoso
Akka.js cherries to master
2015-11-07 18:01:24 +01:00
Patrik Nordwall
1e36e5e187 Merge pull request #18746 from akka/wip-18554-singleton-startup-patriknw
=clu #18554 Make oldest assignment deterministic when joining
2015-11-06 14:48:57 +01:00
Patrik Nordwall
c7c187f6b7 =clu replace Set -- with diff and ++ with union
* better performance according to
  https://docs.google.com/presentation/d/1Qjryxoe-fYEM8ZPhM-98LKfbhnRcn5eAEMNlVVnixsA/pub
2015-11-06 14:48:17 +01:00
Andrea
cd3d68a77c =act switch to java std lib ThreadLocalRandom 2015-11-06 14:04:33 +01:00
Martynas Mickevičius
fb664c54a5 =doc fix URL to "The ϕ Accrual Failure Detector" paper 2015-11-04 16:26:45 +02:00
Patrik Nordwall
94896e8e75 =rem #18339 Use explicit handshake timeout
* instead of using transport failure detector
* add a new config property akka.remote.handshake-timeout, but
  for netty.tcp and netty.ssl the existing netty.tcp.connection-timeout
  setting will be used
* add test of the timeouts
* mima filter for internal ProtocolStateActor
2015-10-19 14:34:52 +02:00
Patrik Nordwall
233ea96690 cleanup some test configuration 2015-10-05 10:29:09 +02:00
Patrik Nordwall
1d186cbf0a =rem Improve the TimeoutReason error message 2015-09-17 14:01:21 +02:00
Patrik Nordwall
f8c1671903 =rem #13783 Make ProtobufSerializer independent of protobuf version
* well, as long as they provide the parseFrom and toByteArray
* it is using reflection to find the `parseFrom` and `toByteArray` methods to avoid
  dependency to `com.google.protobuf`.
* also special case com.google.protobuf when loading serialization binding
* migration guide
* mima filters for the serializers (all types changed)
* add real test for ProtobufSerializer
2015-09-04 09:12:34 +02:00
Roland Kuhn
c3ecb87a65 =all #13783 replace protobuf dependency by embedded version
- created new subproject akka-protobuf (and added COPYING and LICENSE)
- renamed com.google.protobuf -> akka.protobuf everywhere
- also added such renaming step to the results of protoc compilation in
  project/Protobuf.scala
- had to include transcriptions of Netty’s ProtobufEncoder/Decoder to
  make multi-node-testkit compile again
2015-09-04 09:06:50 +02:00
Endre Sándor Varga
cbd4fc7d66 =rem #17555: Quarantine should clear pending connections
(cherry picked from commit 010074d)
2015-09-03 10:46:44 +02:00
Patrik Nordwall
a0bee97f26 Merge pull request #18263 from akka/wip-17750-expected-response-after-patriknw
=rem,clu #17750 Decrease default expected-response-after
2015-08-19 15:35:23 +02:00
Patrik Nordwall
e8a41fac81 Merge pull request #18254 from akka/wip-18252-reduce-noise-resolveActorRef-patriknw
=rem #18252 Change loglevel for failing resolveActorRef
2015-08-19 15:30:31 +02:00
Patrik Nordwall
f72b1bea9f =rem,clu #17750 Decrease default expected-response-after 2015-08-19 07:34:24 +02:00
Patrik Nordwall
987a4253a6 =rem #18252 Change loglevel for failing resolveActorRef 2015-08-18 19:36:29 +02:00
Patrik Nordwall
e66a7fadfd =rem #15779 Deprecate InternetSeedGenerator 2015-08-18 12:19:02 +02:00
Patrik Nordwall
5c6304e2eb Merge pull request #18113 from rsujak/tcpNoDelayFix
akka-remote - TcpNoDelay should have been set on child channels in NettyTransport
2015-08-14 13:40:09 +02:00
Patrik Nordwall
edc0b819f3 =rem #18158 Harden RemotingSpec 2015-08-10 16:31:28 +02:00
rsujak
bbce8e54ee Set tcpNoDelay on child channels 2015-07-16 20:19:01 +02:00
Konrad Malawski
49e6e7f38c Merge pull request #17876 from akka/wip-17729-Implicits.global-patriknw
=rem #17729 Don't use Implicits.global in remoting shutdown
2015-07-03 11:47:28 +02:00