Commit graph

1997 commits

Author SHA1 Message Date
Arnout Engelen
01a496efd5 Allow more time for docker bind startup (#25855) 2018-11-12 09:11:15 +01:00
kerr
e847ce016a +act add getEventStream to ActorSystem #25870 2018-11-09 12:29:05 +01:00
Philippus Baalman
90bf989630 Replace scalactic deprecations (#25886) 2018-11-09 09:07:21 +01:00
Tim Moore
8247c8df50 Fix typo in lookup of ResolverConfiguration (#25826)
* Fix typo in lookup of ResolverConfiguration

* Set a longer timeout for launching bind
2018-11-05 15:05:16 +01:00
Christopher Batey
f51c8d8506 Read port/weight/priority as unsigned shorts for SRVRecords (#25842)
* Read port/weight/priority as unsigned shorts for SRVRecords

* Delete writing code for resource records. Isn't used/tested.

* Mima and review feedback
2018-11-05 09:41:47 +01:00
kerr
fafc59b19d update headers to regular comment (#25807) 2018-10-29 05:19:37 -04:00
Arnout Engelen
23b7f86a06
Async DNS over TCP (#25690) 2018-10-16 15:35:55 +02:00
Patrik Nordwall
b89a7e5df5 Use Props factory methods in getting started tutorial (#25713)
* Use Props factory methods in getting started tutorial

* deprecate Props.create without actorClass parameter, #25718
2018-10-15 17:12:41 +01:00
Patrik Nordwall
272cceb12b
Merge pull request #25593 from akka/wip-25592-terminated-patriknw
hardening of CoordinatedShutdown init, #25592
2018-10-03 16:54:55 +02:00
Arnout Engelen
0101740825 Fix parsing truncated DNS messages (#25691)
* Fix parsing truncated DNS messages

* Additional validations
2018-10-02 16:52:28 +02:00
Arnout Engelen
9a54ae92d5 Support IPv6 in async-dns (#25687)
* Support IPv6 in async-dns

* Expect AAAA records for IPv6
2018-09-28 06:41:07 +01:00
Patrik Nordwall
f2ad055c77 Improve AskTimeoutException message, #25644 2018-09-26 08:00:11 +02:00
Christopher Batey
d7c463e033
Only treat nameservers as a StringList in config if getting as String… (#25636)
* Only treat nameservers as a StringList in config if getting as String fails
2018-09-25 13:36:01 +01:00
Patrik Nordwall
c9ea0309c9
Merge pull request #25563 from akka/wip-manifest-version-patriknw
Utility to check that same version of all modules is used
2018-09-18 19:50:35 +02:00
Patrik Nordwall
e20b0287fd Utility to check that same version of all modules is used
* Stolen from Cinnamon
* Can be used from outside of Akka, e.g. Akka HTTP or Lagom
2018-09-18 13:50:39 +02:00
Saleh Khazaei
176b718b2a Adding maximum restart attempts to BackoffSupervisor #24769 2018-09-14 14:22:52 +02:00
Patrik Nordwall
260ad313e2 hardening of CoordinatedShutdown init, #25592 2018-09-11 11:30:42 +02:00
Guy Youansi
eb5885e94e add java.time.Duration support for javadsl #24646
* add java.time.Duration support for askWithReplyto methods and add deprecated to method with akka Timeout as parameter type
2018-08-23 12:09:21 +02:00
Christopher Batey
b72d3090af Additional records support for async dns (#25492)
* Additional records support for async dns

- Currently just used for SRV A/AAAA records
- Cache SRV records
- Rename Resolved.results to Resolved.records

* Review feedback
2018-08-21 12:00:29 +09:00
Kazuhiro Sera
482eaea122 Fix several minor typos detected by github.com/client9/misspell (#25448)
* Fix several minor typos detected by github.com/client9/misspell

* Revert s/erminater/erminator/ in /ActorSystemSpec
2018-08-21 11:02:37 +09:00
Konrad Malawski
9f60497a28 =dns #25454 must adapt new dns protocol to old when replying to old req
follow up review comments

avoid double checking if is IP address

review followup
2018-08-10 13:45:53 +09:00
Konrad Malawski
fd59579790 =dns #25451 resolve raw IP addresses in async-dns 2018-08-10 13:45:53 +09:00
Roman Niukhalov
6a1a09de17
Merge branch 'master' into fix-receive-timeout 2018-07-27 13:57:55 +07:00
kenji yoshida
5b3b191bac Remove procedure syntax (#25362) 2018-07-25 13:38:27 +02:00
Roman Niukhalov
929ce71372 Fixed scheduling and cancelling receive timeout #25340
- The issue occurs when setReceiveTimeout is called during processing a message marked as NotInfluenceReceiveTimeout
2018-07-13 01:22:27 +07:00
Johan Andrén
29cf96b90c
Concurrency fix for BoundedBlockingQueueSpec #24991 2018-07-03 13:19:04 +02:00
Christopher Batey
2dad7a4c08 Complete async DNS that uses the name servers top to botom 2018-06-28 15:20:23 +01:00
Guy Youansi
a4951e0ce7 Java time duration support for javadsl #24646
java.time.Duration support in all jdocs java file, the persistence module and the distributed-data
2018-06-26 15:41:30 +02:00
Andrew Koerner
028937f52f
Fix NotInfluenceReceiveTimeout behavior when used with Timers trait (#24989) 2018-06-25 22:52:13 +09:00
Ignasi Marimon-Clos
9f6fc2d6da Configure exit code and Coordinated Shutdown per-reason overrides (#25186)
* Enable exit code configurability

* Rollback first approach. Implement override

* Support overriding exit-jvm and terminate-actor-sys

* Simplifies code handling overrides
2018-06-06 08:45:55 +01:00
Doug Roper
b6d6d543a8 Optimize ByteString.grouped(size) (#25153)
* Add ByteString.grouped() benchmark & tests.

* Implement ByteString.grouped().

* PR comments.
2018-05-30 23:31:35 +09:00
Doug Roper
034f6c5c96 Remove unnecesary drop() from ByteString1.writeToBuffer(ByteBuffer) (#25151)
I found a strange call to `drop()` in `ByteString1.writeToBuffer(ByteBuffer)`. `drop()` instantiates a new `ByteString1` which is immediately discarded to GC. Appears unnecessary.

Removing it makes the `ByteString1` implementation match the one `ByteString1C`.
2018-05-29 20:13:07 +09:00
Doug Roper
8286ecffc5 Fix MultiByteArrayIterator.copyToArray silently drops bytes. #16303 (#25141)
I just got burned by #16303.

Answering https://github.com/akka/akka/issues/16303#issuecomment-62957914, it looks like `copyToArray[B >: Byte](Array[B])` can't call `getBytes(Array[Byte], Int, Int)` due to the type constraint (defined by `GenTraversableOnce`).

Instead, I'm going with the simple `isEmpty` solution proposed in the description of #16303 by @kpatrick-kixeye.
2018-05-24 16:11:50 +09:00
Olivier ROLAND
00f07c2429 Fix ReceiveTimeout issue with NotInfluenceReceiveTimeout #24770 2018-05-22 11:42:35 +03:00
Patrik Nordwall
e6633f17fa
Make sure Serialization.currentTransportInformation is always set, #25067
* The ThreadLocal Serialization.currentTransportInformation is used for serializing local
  actor refs, but it's also useful when a serializer library e.g. custom serializer/deserializer
  in Jackson need access to the current ActorSystem.
* We set this in a rather ad-hoc way from remoting and in some persistence plugins, but it's only
  set for serialization and not deserialization, and it's easy for Persistence plugins or other
  libraries to forget this when using Akka serialization directly.
* This change is automatically setting the info when using the ordinary serialize and deserialize
  methods.
* It's also set when LocalActorRefProvider, which wasn't always the case previously.
* Keep a cached instance of Serialization.Information in the provider to avoid
  creating new instances all the time.
* Added optional Persistence TCK tests to verify that the plugin is setting this
  if it's using some custom calls to the serializer.
2018-05-21 16:59:04 +02:00
Thomas Smith
3401a1bd21 Fix BoundedBlockingQueueSpec against spurious wakeups (#25025) 2018-05-21 17:09:25 +03:00
Patrik Nordwall
da5cc33b92 Java API for AsyncSerializer, #25078 2018-05-14 18:20:59 +02:00
Song Kun
f976f8d793 Add unit tests and polish Javadocs with lambdas for PatternsCS. #24881 (#24998)
* Add unit tests and polish Javadocs with lambdas for PatternsCS. #24881

* remove blocking from StopActor
2018-05-10 14:32:28 +02:00
Christopher Batey
90c2ce9f13
Async serializer marker trait (#24981)
This adds the possibility for akka persistence plugins to check
whether a serializer is asynchronous.

Not used for remoting.
2018-04-25 13:43:54 +01:00
Thomas Smith
80eff85527 Add tests for BoundedBlockingQueue (#24850) 2018-04-24 14:30:34 +02:00
Christopher Batey
4d20b2a660 Reduce size of jenkins logs
Each build is now over 40mb logs.

A lot of DEBUG logging was left on for test failures that have been
fixed. Added an issue # for ones that are still valid or if if it on
as the test verifies debug
2018-04-24 08:49:41 +01:00
Patrik Nordwall
1590cd40e1
Merge pull request #24882 from johanandren/wip-24609-continued-johanandren
#24609 continued johanandren
2018-04-12 21:41:33 +02:00
Johan Andrén
e1885093bf Cont. fix broken explicit ask pattern for Java, #24587
* Some cleanup and fixes
* All 6 overloads fixed and covered with tests
* rename in some Scaladoc samples
2018-04-12 20:05:42 +02:00
Kirill Yankov
3ebb9fa9c1 Fix serialization in TypedActor (#24851)
* fixed serialization in TypedActor
* generalized duplicates via Serialization.manifestFor
2018-04-12 18:58:13 +02:00
Heiko Seeberger
44862d13c1 Fix broken explicit ask pattern for Java (closes #24587)
Add mima filter

Cleanup mima filter
2018-04-12 18:49:31 +02:00
mucahitkantepe
e495dab941 AutoReceivedMessage with Timers bug fixed (#24080)
AutoReceivedMessage with FSM schedule bug fixed (#24080)

Tests added for both FSM and Timers trait for (#24080)

AutoReceivedMessage with PersistentFSM bug fixed and test added (#24080)
2018-04-12 22:21:12 +09:00
Patrik Nordwall
6a9fa1946d
Add java.time.Duration support in the JavaDSL in akka-actor module #24646 (#24883)
* Add java.time.Duration support in the JavaDSL in akka-actor module #24646
* add deprecation and change retry
2018-04-11 16:47:36 +02:00
Daniel Kalman
86e44167f3 Added retry pattern #22276 (#23997) 2018-03-26 13:56:20 +02:00
Jimin Hsieh
2c2b8ba001 Remove some of Unused import warning (#24650) 2018-03-16 12:08:29 +01:00
Konrad `ktoso` Malawski
563c7fbcf0 Issue 24594: Integration with sbt-headers and initial header population 2018-03-13 15:45:55 +01:00