Commit graph

2268 commits

Author SHA1 Message Date
Patrik Nordwall
4bd6b7aab1 improve AbstractActor, #21717
* Receive class that wraps PartialFunction, to avoid
  scary scala types
* move AbstractActorContext to AbstractActor.ActorContext
* converting docs, many, many UntypedActor
* removing UntypedActor docs
* add unit test for ReceiveBuilder
* MiMa filters
* consistent use of getContext(), self(), sender()
* rename cross references
* migration guide
* skip samples for now
* improve match type safetyi, add matchUnchecked
  * the `? extends P` caused code like this to compile:
    `match(String.class, (Integer i) -> {})`
  * added matchUnchecked, since it can still be useful (um, convenient)
    to be able to do:
    `matchUnchecked(List.class, (List<String> list) -> {})`
* eleminate some scala.Option
  * preRestart
  * findChild
  * ActorIdentity.getActorRef
2017-01-23 18:30:52 +01:00
Patrik Nordwall
952be31a7d make pruning of CRDT garbage work, #21647
* fix merge issues of DataEnvelope and its pruning
* simplify by removing the tombstones, which didn't work in all cases anyway
* keep the PruningPerformed markers in the DataEnvelope until configured
  TTL has elapsed (wall clock)
* simplify PruningState structure
* also store the pruning markers in durable data
* collect removed nodes from the data, listing on MemberRemoved is not enough
* possibility to disable pruning altogether
* documented caveat for durable data
2017-01-23 16:54:02 +01:00
Patrik Nordwall
37679d307e rememberingEntities with ddata mode, #22154
* one Replicator per configured role
* log LMDB directory at startup
* clarify the imporantce of the LMDB directory
* use more than one key to support many entities
2017-01-23 11:57:52 +01:00
Patrik Nordwall
b72ca92799 serialize Scala 2.12 functions for when used in remote deployment, #22041 2017-01-20 14:09:21 +01:00
Patrik Nordwall
452b3f1406 remove old deprecated cluster metrics, #21423
* corresponding was moved to akka-cluster-metrics, see
  http://doc.akka.io/docs/akka/2.4/project/migration-guide-2.3.x-2.4.x.html#New_Cluster_Metrics_Extension
2017-01-20 13:48:36 +01:00
inakov
e043a9fffe Add minimum cap for ReadMajority/WriteMajority #21618 2017-01-18 14:13:40 +02:00
Patrik Nordwall
14e0a70b46 Merge pull request #22142 from inakov/wip-distributed-data-delete-api-update-new-inakov
Update DistributedData Delete API to include optional request context. Clear Pull Request
2017-01-17 17:15:15 +01:00
Patrik Nordwall
84ade6fdc3 add CoordinatedShutdown, #21537
* CoordinatedShutdown that can run tasks for configured phases in order (DAG)
* coordinate handover/shutdown of singleton with cluster exiting/shutdown
* phase config obj with depends-on list
* integrate graceful leaving of sharding in coordinated shutdown
* add timeout and recover
* add some missing artery ports to tests
* leave via CoordinatedShutdown.run
* optionally exit-jvm in last phase
* run via jvm shutdown hook
* send ExitingConfirmed to leader before shutdown of Exiting
  to not have to wait for failure detector to mark it as
  unreachable before removing
* the unreachable signal is still kept as a safe guard if
  message is lost or leader dies
* PhaseClusterExiting vs MemberExited in ClusterSingletonManager
* terminate ActorSystem when cluster shutdown (via Down)
* add more predefined and custom phases
* reference documentation
* migration guide
* problem when the leader order was sys2, sys1, sys3,
  then sys3 could not perform it's duties and move Leving sys1 to
  Exiting because it was observing sys1 as unreachable
* exclude Leaving with exitingConfirmed from convergence condidtion
2017-01-16 09:01:57 +01:00
inakov
65cba329d0 Updated DistributedData Delete API to include optional request context.
#20140
2017-01-14 14:30:58 +02:00
Patrik Nordwall
4a9c753710 Merge pull request #22063 from jgordijn/21648-Prefer_reachable_nodes_in_consistency-jgordijn
#21648 Prefer reachable nodes in consistency writes/reads
2017-01-13 12:32:41 +01:00
gosubpl
c80c3e16c4 remove org.uncommons.maths dependency (#12636)
Also
* add InternalApi annotation to AESCounterBuiltinRNG
* add setDaemon(true) to re-seeder thread
2017-01-13 10:23:06 +01:00
Patrik Nordwall
a8f9ad4775 Merge branch 'master' into 21648-Prefer_reachable_nodes_in_consistency-jgordijn 2017-01-13 10:21:09 +01:00
Jeroen Gordijn
8499ff6faf #22035 Make it possible to use anything as the key in a map
- All Map types are now generic in their key: ORMap, ORMultiMap, LWWMap,
  PNCounterMap
- test for binary compatibility with previous version for serialization
- entries are sorted for deterministic SHA-1 on same value
2017-01-11 21:20:39 +01:00
Jeroen Gordijn
81f081b33c #21648 Prefer reachable nodes in consistency writes/reads 2017-01-09 20:36:54 +01:00
Philippus Baalman
6c7085252a extended copyright into 2017 2017-01-04 17:37:15 +01:00
Johannes Rudolph
2fab199142 Merge pull request #22048 from jrudolph/jr/w/21365-improve-inbound-lanes-performance
Improve performance of inbound lanes by making spinning loops in AeronSource configurable
2017-01-03 17:51:10 +01:00
Konrad `ktoso` Malawski
067b569f85 Merge branch 'master' into wip-query-2.5 2017-01-03 17:04:48 +01:00
gosubpl
83bafb48a2
removing deprecated AESCounterInetRNGs, fixes #22014 (#22015) 2017-01-03 15:39:52 +01:00
Johannes Rudolph
8349a6a25a =pro fix typo 2016-12-30 12:32:12 +01:00
Konrad `ktoso` Malawski
17c4352382 Update Aeron to 1.0.5 2016-12-29 12:48:46 +01:00
Patrik Nordwall
6454c090cc prevent mistake of releasing from wrong branch (#22043)
(cherry picked from commit 566e5a09fa3883f1f70abd80da10fece0ffce0a6)
2016-12-20 17:02:22 +01:00
Dominik Pawlak
2cb912d9ef Fix scala.util.parsing.combinator version for OSGi import #21966 (#21968)
* Fix scala.util.parsing.combinator version for OSGi import #21966

* Update OSGi.scala
2016-12-16 18:08:37 +01:00
Konrad Malawski
fa85bceb57 =pro fix MiMa to survive per-query promotion to stable 2016-12-16 11:20:25 +01:00
Johan "Party Cannon" Andrén
1861ec6756 WIP ActorSystemSettings programatic config #21894 2016-12-15 15:05:13 +01:00
Konrad Malawski
760bed9c59 =act deprecate direct use of BalancingDispatcher (hide as private[akka]) 2016-12-15 12:31:20 +01:00
ortigali
0eeced1732 Add parameterless constructor to LevelDB journals (#22007)
* add parameterless constructor #22002

* add parameterless constructor #22002

* remove the filter in MiMa.scala #22002

* add LeveldbStore.emptyConfig to use default config #22002
2016-12-14 17:32:38 +01:00
Konrad Malawski
926e97e930 =peq mark persistence query as stable 2016-12-14 14:09:11 +01:00
Konrad Malawski
192a9e11b1 +str add more information to generic connection shutdown connection 2016-12-14 12:39:24 +01:00
ortigali
5b5cf4fc7b dynamic config path for levelDBJournal and localSnapshotStore #21394 2016-12-13 14:04:39 +01:00
Richard Imaoka
4dad65cd5a No default OSGi private package to avoid publish build warnings (#21915)
* No default OSGi private package, as it caused warnings in publish build (Fixes #21899)

* Add comment for empty OSGi private-package settings in SBT
2016-12-13 13:37:41 +01:00
Martynas "danger" Mickevičius
98c2adfc98 Update MiMa to 0.1.13 (#21978)
* Update to mima 0.1.13

* Filters when checking v2.4.8 against older

* Filters when checking v2.4.9 against older

* Filters when checking v2.4.10 against older

* Filters when checking v2.4.11 against older

* Filters when checking v2.4.12 against older

* Filters when checking v2.4.14 against older

* Filters when checking master against older

* Remove not used filter
2016-12-13 12:58:59 +01:00
Johan "Party Cannon" Andrén
80daa2f647 Race condition fix for Test{Sink/Source}Stage #20737 2016-12-08 13:18:29 +01:00
Patrik Nordwall
12536a3537 Merge pull request #21835 from rovarga/stream-osgi
Fix #21791 by adding a version override for scala.util.parser
2016-12-06 16:43:08 +01:00
Björn Antonsson
913c166f88 =jmh Clean up Artery CodecBenchmark
* Make decoding release the envelope so it doesn't leak memory
* Create two different configurations, Standard and RemoteInstrument
* Create Serilaizer and RemoteInstrument that doesn't allocate memory
2016-12-06 10:05:27 +01:00
Patrik Nordwall
d6d50a08d0 Add support for durable storage of distributed data, #21645
* using lmdbjava libarary
2016-12-05 12:27:02 +01:00
Patrik Nordwall
446c0545ec member accessor in ReachabilityEvent, #21944 (#21947) 2016-12-05 12:07:18 +01:00
Patrik Nordwall
9cd5046e1f bump version to 2.5-SNAPSHOT (#21946)
* project/scripts/find-replace 2.4-SNAPSHOT 2.5-SNAPSHOT
2016-12-05 10:43:29 +01:00
Konrad Malawski
9647dd61fa =pro no more mima checking with 2.3, we're 2.5 now (#21939) 2016-12-02 15:18:31 +01:00
Konrad Malawski
04ab4ebb9c -str #21423 remove deprecated Stage references (#21919)
* -str #21423 remove deprecated Stage references

* include mima filters for removed classes
2016-12-02 14:23:13 +01:00
Patrik Nordwall
e04444567f Speedup pull request validation
* speedup ActorCreationPerfSpec
* reduce iterations in ConsistencySpec
* tag SupervisorHierarchySpec as LongRunningTest
* various small speedups and tagging in actor-tests
* speedup expectNoMsg in stream-tests
* tag FramingSpec, and reduce iterations
* speedup QueueSourceSpec
* tag some stream-tests
* reduce iterations in persistence.PerformanceSpec
* reduce iterations in some cluster perf tests
* tag RemoteWatcherSpec
* tag InterpreterStressSpec
* remove LongRunning from ClusterConsistentHashingRouterSpec
* sys property to disable multi-jvm tests in test
* actually disable multi-node tests in validatePullRequest
* doc sbt flags in CONTRIBUTING
2016-11-30 14:31:06 +01:00
Kam Kasravi
a47bccbec3 Fixes #20553 Tree flattening should be separate from Fusing 2016-11-22 15:45:02 -08:00
Konrad Malawski
a67b016ac6 =pro #21867 update scala-stm dependency for akka-agent, scala 2.12 (#21868) 2016-11-21 13:03:09 +01:00
Robert Varga
e465f07d94 Fix #21791 by adding exclusions scala packages in external moduls
This patch fixes akka-stream's OSGi manifest by adding
an explicit exclusion for scala.* packages known to have
different versions, so they do not get expanded by scalaImport()
and subsequent "*".

Signed-off-by: Robert Varga <nite@hq.sk>
2016-11-18 14:02:59 +01:00
Konrad Malawski
5ca56a56eb =pro update Aeron to 1.0.4 2016-11-17 17:51:04 +01:00
Johannes Rudolph
97bada7deb =act #21774 fix ByteString.toString to use fixed stringPrefix for all subclasses (#21775)
Otherwise, with 2.12,

ByteString().toString == "ByteString.ByteString1C()"

which would expose implementation details in the string representation.
This can lead to failing tests due to test expecting a particular string
representation of a ByteString which might be bad practice, yes, but is also
convenient.

The change is due to a fix in Scala for SI-9019 for which the string representation
of TraversableLike was changed which ByteString inherits.
See https://github.com/scala/scala/pull/5258/files
2016-11-17 15:51:36 +01:00
drewhk
91b522e186 #21743: FlattenMerge should propagate outer attributes
Added Materializer.materialize() version that takes explicit initial attributes
2016-11-09 20:14:04 +01:00
Martynas Mickevičius
72925ba392 Publish dining hakkers deps to local maven repo (#21793) 2016-11-07 13:28:34 -08:00
Johan Andrén
e9253c7c7d Changes needed to build/test/release for 2.12.0 (#21789) 2016-11-03 16:17:36 +01:00
Konrad Malawski
45d53bd520 fix mima warnings (#21756) 2016-10-28 17:22:36 +02:00
Johannes Rudolph
c9854e4350 =pro merge ssl-config-akka from ssl-config project into akka-stream (#21551)
This will fix the cyclic dependency issue between the ssl-config repo
and akka.

It would have been better if akka-stream would not require
these changes at all but com.typesafe.sslconfig.akka.AkkaSSLConfig is
part of the public interface of akka-stream's TLS stage. So, this
can only be fixed in the next major version.

Source code was copied over from the tree at commit
470fae76f3

See https://github.com/typesafehub/ssl-config/issues/47
2016-10-28 16:41:26 +02:00