Commit graph

20397 commits

Author SHA1 Message Date
Patrik Nordwall
233e784154 Use delta in direct write also, #22188
* Follow up on the causal delivery of deltas.
* The first implementation used full state for the direct
  Write messages, i.e. updates with WriteConsistency != LocalWrite
* This is an optimization so that delatas are tried first and if
  they can't be applied it falls back to full state.
* For simultanious updates the messages may be reordered because we
  create separate WriteAggregator actor and such, but normally they
  will be sent in order so the deltas will typically be received in
  order, otherwise we fall back to retrying with full state in the
  second round in the WriteAggregator.
2017-03-15 11:38:44 +01:00
Patrik Nordwall
b2759ab56a Merge pull request #22369 from akka/wip-22366-DaemonMsgCreateSerializer-patriknw
fix byte order issue in DaemonMsgCreateSerializer, #22366
2017-02-22 18:36:56 +01:00
Patrik Nordwall
40b883cda7 Merge pull request #22331 from akka/wip-orset-delta-patriknw
causal delivery of deltas and ORSet deltas, #22188
2017-02-22 15:21:03 +01:00
gosubpl
3d51111b3c proper implementation of mergeRemoveDelta, #22188 2017-02-22 14:27:36 +01:00
Patrik Nordwall
b700b840d1 causal delivery of deltas, #22188
* keep track of delta interval versions and skip deltas
  that are not consequtive, i.e. when some delta message was lost
* send the delta versions in the full state gossip to sync up the
  expected versions after dropped deltas
* implementation of deltas for ORSet
* refactoring of the delta types to allow for different type for the
  delta and the full state
* extensive tests
* mima filter
* performance optimizations
* simple pruning of deltas
* Java API
* update documentation
* KeyId type alias
* Use InternalApi annotation
2017-02-22 14:27:36 +01:00
Patrik Nordwall
20e43ccd40 fix byte order issue in DaemonMsgCreateSerializer, #22366
* We used the Array based toBinary but the ByteBuffer based fromBinary.
  and IntSerializer is only using the same format for those when the byte order
  is  LITTLE_ENDIAN, which we didn't get from protbuf's asReadOnlyByteBuffer
* We can use the Array based methods in DaemonMsgCreateSerializer,
  performance is not important here
* Added some more testing in PrimitivesSerializationSpec
2017-02-22 13:41:24 +01:00
Johan Andrén
94afbee179 Don't close over TestConductorExt with an actor sent remotely 2017-02-22 09:56:21 +01:00
Johan Andrén
734c31fa4f Fix DaemonMsgCreateSerializer #22225 2017-02-21 16:08:16 +01:00
Patrik Nordwall
ad4164d5e3 Merge pull request #22357 from akka/wip-21678-patriknw
Doc - Modify Dispatcher to use simplified thread-pool-config values, …
2017-02-21 15:51:45 +01:00
hhimanshu
c5858da2b8 Doc - Modify Dispatcher to use simplified thread-pool-config values, as described by @ktoso in the the issue (#21572)
Added another example to configure thread-pool-executor based on number of cores. Also removed comment that is not needed anymore.
2017-02-21 15:51:18 +01:00
Patrik Nordwall
ed765f612c Merge pull request #22022 from IanGrima/patch-1
PersistentFSMBase - matchEvent API bug fix
2017-02-21 14:51:08 +01:00
Patrik Nordwall
bf775298f6 Merge pull request #22268 from akka/wip-22113-iter-patriknw
use index access instad of iterator in Broadcast, #22113
2017-02-21 14:45:43 +01:00
Kirill Plyashkevich
c5ba0a3565 #21725 cluster-sharding doesn't delete snapshots and messages (#21777)
* #21725 cluster-sharding doesn't delete snapshots and messages
Fixes #21725
Without deleting messages those pollute persistence with not needed anymore messages. Naive and bullet proof flow is snapshot -> delete messges -> delete snapshots.

# Пожалуйста, введите сообщение коммита для ваших изменений. Строки,
# начинающиеся с «#» будут оставлены; вы можете удалить их вручную,
# если хотите. Пустое сообщение отменяет процесс коммита.
#
# Дата:      Mon Oct 31 23:24:37 2016 +0300
#
# интерактивное перемещение в процессе; над 432b53c
# Последняя команда выполнена (1 команда выполнена):
#    edit f86b015 21725 cluster-sharding doesn't delete snapshots and messages Fixes #21725 Without deleting messages those pollute persistence with not needed anymore messages. Naive and bullet proof flow is snapshot -> delete messges -> delete snapshots.
# Следующая команда для выполнения (1 команда осталась):
#    pick 56adb40 #21725 keeping N number of batches (messages and snapshot) using N from configuration
# Вы сейчас редактируете коммит при перемещении ветки  «fix-21725-delete-messages-after-snapshot» над «432b53c».
#
# Изменения, которые будут включены в коммит:
#	изменено:      akka-cluster-sharding/src/main/scala/akka/cluster/sharding/Shard.scala
#	изменено:      akka-cluster-sharding/src/main/scala/akka/cluster/sharding/ShardCoordinator.scala
#

* #21725 keeping N number of batches (messages and snapshot) using N from configuration
2017-02-21 14:17:19 +01:00
sebbes
59a3596360 Adding debug message when passivate method cannot identify entity (#21886)
* Adding debug message when passivate method cannot identify entity

* Include entity in log message

* Include debug for Some where entity already being processed
2017-02-21 14:08:43 +01:00
Patrik Nordwall
a17cb060ec Merge pull request #22039 from ortigali/wip-21996-RecipeGlobalRateLimit
make maxAllowedWait timeout be dilated
2017-02-21 14:06:07 +01:00
Patrik Nordwall
aa9d4d7706 Merge pull request #22354 from 2m/wip-fix-mbean-spec-2m
#22353 fix mbean expected json format
2017-02-21 13:30:07 +01:00
Patrik Nordwall
37f4436a39 Merge pull request #22349 from hseeberger/22342-dependency-configurations
Fix configuration for persistence-query test deps (fix #22342)
2017-02-21 13:23:53 +01:00
Patrik Nordwall
b3b6dc37fc Merge pull request #22232 from ortigali/wip-22052-PersistentActorSpec-2
customise test for race between GetState and persistAsync handler
2017-02-21 12:58:12 +01:00
Heiko Seeberger
78022732b9 Fix configuration for persistence-query test deps (fix #22342) 2017-02-21 12:24:26 +01:00
Martynas Mickevičius
1754625202 #22353 fix mbean expected json format 2017-02-21 13:05:36 +02:00
Patrik Nordwall
6564961d06 Merge pull request #22344 from akka/wip-score-master-patriknw
Adjust the score for the serialization vulnerability (for validation)
2017-02-21 10:44:04 +01:00
drewhk
0f764f5b43 #21965: Modify CompressionIntegrationSpec to not assume ordering in compression advertisements 2017-02-21 09:26:55 +01:00
Richard Imaoka
6936c09e4e Fix JSON formatting of the jmx-cluster/akka-cluster tool #21250 2017-02-20 14:55:43 +01:00
Johan Andrén
8b5018ba21 Fix AbstractPersistentActor ambiguity with Scala 2.12 #22218 2017-02-20 14:50:25 +01:00
Johan Andrén
64b35cf1f1 Replace "experimental" with "may change" (#22326)
* Replacing "experimental" with "may change" #22305

* Right syntax for links

* Correct annotation name

* Final small changes
2017-02-20 12:05:21 +01:00
Patrik Nordwall
adae12ff95 Adjust the score for the serialization vulnerability
* and some additional clarifications
* and some cleanup of wrong rst format

(cherry picked from commit a79bfbf941e5129fcf21d8a9e29d1ae1c55e39a0)
2017-02-20 11:30:28 +01:00
Patrik Nordwall
a7dfaf00a4 Merge pull request #22328 from prettynatty/death-pact-doc
add case for DeathPactException stopping actor
2017-02-20 10:57:09 +01:00
Andrey Kuznetsov
62cf0c3f43 add case for DeathPactException stopping actor 2017-02-18 02:30:43 +03:00
Johan Andrén
cf6d5a4e8a Deprecation of ExtensionKey #22208 2017-02-17 17:07:15 +01:00
Johan Andrén
8f9b4f203a Pass the deserialized message on when serialize-messages on #13751 2017-02-17 16:41:25 +01:00
Patrik Nordwall
2f7c6ace2e Merge pull request #22338 from hseeberger/fix-persistence-docs
Fix typos in persistence docs
2017-02-17 14:14:34 +01:00
Earl St Sauver
7d8dfdd1e3 Fix grammer in cluster documentation
"too long time." -> "too long of a time."

Alternatively, this could be just "too long."
2017-02-17 12:49:55 +01:00
Heiko Seeberger
cdd00f4ae2 Fix typos in persistence docs 2017-02-16 17:23:50 +01:00
Johannes Rudolph
2d9de06edd =pro add missing mima filters for #21854/#22320 when checking against 2.4.17 2017-02-16 16:45:52 +01:00
Johannes Rudolph
e7b095af89 =pro #22306 add missing mima filter rules for 2.4.16/17 changes 2017-02-16 16:45:52 +01:00
Johannes Rudolph
888d10cb86 =pro move some MiMa filters to the release-2.4 list 2017-02-16 16:45:52 +01:00
Johannes Rudolph
ea9f3d775f =pro #22306 add missing mima entries for 2.4.16 / 2.4.17, filter 2.4.15
(cherry picked from commit 17fce0fdaaa1c807201e44d1d8ce18780aefe08d)

Conflicts:
	project/MiMa.scala
2017-02-16 16:45:52 +01:00
Johannes Rudolph
ec0e81c0f4 =pro update to mima 0.1.14
(cherry picked from commit 3f789da965064e42304992645fdefd4d044b15b7)
2017-02-16 16:45:52 +01:00
Johannes Rudolph
0672cf3ab4 =pro organize filters a bit differently to prevent merge conflicts with release-2.4 2017-02-16 16:45:52 +01:00
Patrik Nordwall
96652d38b4 Merge pull request #22269 from gosubpl/wip/22187-delta-crdt-gset
GSet ported to delta-CRDT (#22187)
2017-02-16 15:45:28 +01:00
Konrad `ktoso` Malawski
d306700feb =doc Make it easier to disable Java serialization, #22283 (#22315)
* one single config option to disable it completely
* improve security documentation

Co-authored-by: Patrik Nordwall <patrik.nordwall@gmail.com>
2017-02-16 14:09:04 +01:00
gosubpl
d470321051 GSet ported to delta-CRDT (#22187) 2017-02-16 13:06:57 +01:00
Alexander Golubev
552481b511 #22030 Lazy sink wait for init 2017-02-16 09:19:25 +01:00
ortigali
021829e21e =str Remove manual hostname verifier support, used to be included only because Java 6 (#22320)
* Remove manual hostname verifier support, used to be included only because Java 6 #21854

* Remove manual hostname verifier support, used to be included only because Java 6 #21854
2017-02-15 20:40:42 +01:00
Ikrom
b2f7c7a037 Update remoting-artery.rst (#22321) 2017-02-15 17:46:16 +01:00
Roland Kuhn
2d41b5efbb Merge pull request #22279 from akka/wip-typed-process-DSL
allow named adapters and add receptionist to system
2017-02-15 16:55:54 +01:00
Johan Andrén
cf6cb5f2d9 Eliminate race in connection closed tcp test case #21903 2017-02-15 14:15:51 +01:00
Roland Kuhn
21ffb68cdf fix #21653 2017-02-15 10:47:02 +01:00
Roland Kuhn
5766cd701d allow named adapters and add receptionist to system 2017-02-15 10:47:02 +01:00
Hawstein
873e87fb33 =str refine built-in Take and TakeWhile stages (#21871)
* refine build-in stages:

* change InHandler to avoid unnecessary condition check
* remove unnecessary local variable
* fix typo

* revert the drop stage change and remove timer
2017-02-14 12:24:28 +01:00