Commit graph

516 commits

Author SHA1 Message Date
Johan Andrén
e43f2be6cd
Byte array allocation/copy hunt (#30266)
* Loads of byte array copy/allocations squashed
* Use a central place for the proto unsafe instead of ad hoc
* Extra docs on serializer toBinary about not mutating bytes after returned
* Found some more toArray:s that can potentially benefit from being unsafe
* Array handed to user callback so extra docs needed
* Unsafe reading of underlying bytes of strings fixed
2021-06-02 17:28:37 +02:00
Johan Andrén
d4fdf5639e
Deprecate LevelDB (#30213)
* Deprecate LevelDB

In preparation of moving into the testing infra (or deleting it completely) at some distant future point in time

* Remove leveldb tests where there also is an inmem one

* More details in deprecation text, recommend inmem + journal proxy for testing etc.
2021-06-02 13:37:52 +02:00
Patrik Nordwall
e09de4fc84
Possibility to make snapshot load failures non-fatal, #30234 (#30238)
Co-authored-by: Renato Cavalcanti <renato@cavalcanti.be>
2021-05-31 21:50:28 +02:00
Johan Andrén
c5655a9ce6
Upgrade to Scala 2.13.5 (#30072) 2021-03-30 20:57:23 +02:00
Nicolas Vollmar
278a36d036
Adds explicit ! method (#30004)
Needed for Scala 3
2021-02-10 13:20:29 +01:00
Andrea Peruffo
da70e0ccd4
Scala 3 cross compatible akka-actor / akka-testkit / akka-actor-tests (#29956)
* Remove @switch when it doesn't take effect
* Use ActorRef.noSender
* Minor tweaks to SchedulerSpec
* Disambiguate TypedActor for Scala 3
* Bump ScalaTest to a version compatible with Scala 3
* Bump ScalaCheck
* Disambiguate Event in SupervisorHierarchySpec
* Scala 3 compatible EventBusSpec
* Prevent private unused variables to be erased by Scala 3
* Bump mockito
* Explicit actorRef2Scala import
* restore original .scalafix.conf
* Scala 3 compatible tailrec
* Reminder to re add switch annotation in case
* Move to nowarn instead of silencer
* Bump to Scala 2.12.13
* Cross compatible annotations
* fix docs generation
* adapt the build for Scala 3
* fix errors but bus
* remove more SerialVersion from trait
* scalacheck only from scalatest
* cross-compile akka-actor-tests
* restore cross-compilation
* early initializers workaround
* scalacheck switch
* cross compatible FSM.State class
* cross compatible LARS spec
* Change results to pass LineNumberSpec
* fix stackoverflow in AsyncDnsResolverIntegrationSpec
* FSM.State unapply
* fix Scala 2.13 mima
* SerialVersionRemover compiler plugin
* removed unused nowarns
2021-02-01 16:38:29 +01:00
Arnout Engelen
31f654768f
Update copyright to 2021 2021-01-08 17:55:38 +01:00
ohze.net
9416dedad7
Use scalafix to update scala 2.13.3, silencer 1.7.0 (#29367) 2020-12-09 09:20:13 +01:00
Josep Prat
12513ec7df
Normalize Event Sourcing wording #29577 (#29856) 2020-12-07 08:41:43 +01:00
Patrik Nordwall
6becd8e0ee
Merge pull request #29539 from akka/wip-27786-setDeliverySnapshot-patriknw
Fix time in AtLeastOnce.setDeliverySnapshot, #27786
2020-09-07 15:15:47 +02:00
Patrik Nordwall
cd8d5c5d08 Fix time in AtLeastOnce.setDeliverySnapshot, #27786
* to be consistent with internalDeliver when recoveryRunning
2020-09-01 12:08:05 +02:00
Christopher Batey
9ba9571b4a Ignore java warnins in persistence typed and mima
Warnings are from protobuf
2020-08-17 09:32:22 +01:00
Johan Andrén
b03412d5b2 Rename active active to replicated event sourcing (#29435)
* Move active active internals into the internal package

* Renaming active active to Replicated Event Sourcing

* Rename of Active Active to Replicated Event Sourcing

* Revert changes to testkit

* Java test formatting...

* Gave up on getting apidoc to link to EventSourcedBehavior and made code snippets of it

Co-authored-by: Christopher Batey <christopher.batey@gmail.com>
2020-08-17 07:37:59 +01:00
Christopher Batey
0b11ae362c PersistentRepr serializer support for metadata (#29434)
And fixing the warnings for the 2.13 build, not sure why PR
validation passes for these

The write side of the JDBC plugin works now as it
persists the PR
2020-08-17 07:37:58 +01:00
Johan Andrén
b8a1584e10 Active active journal support changes (#29421)
* Add missing serializers (and rename classes because metadata is a word)
* Add test instances for journal and snapshot support
* Method to add metadata to existing snapshotmetadata
* Better error message if replicated stream does not have metadata
* Snapshot store tck support for metadata
* Docs for tck coverage of AA metadata
2020-08-17 07:37:58 +01:00
Johan Andrén
f63ca66e56 Active active docs mention plugin support (#29418)
* Mention specific support for active active is needed in plugins
* Align metadata name journal vs snapshot
2020-08-17 07:37:58 +01:00
Christopher Batey
7e91428428 Metadata for snapshots for active active (#29362) 2020-08-17 07:37:58 +01:00
Christopher Batey
e98f1311f3 Alternative approach for storing metadata (#29309) 2020-08-17 07:30:12 +01:00
Christopher Batey
08182bbdeb ActiveActive: Events with metadata and events by persistence id for (#29287) 2020-08-17 07:27:57 +01:00
Arnout Engelen
c41c0420ad
Update scala to 2.13.3 and silencer to 1.7.0 (#28991)
* Update scala to 2.13.3 and silencer to 1.7.0
* Also travis
* Fix various warnings
2020-08-10 12:54:38 +02:00
Arnout Engelen
327e16980d
Make warnings in Java code fatal (#28402) 2020-08-04 13:47:38 +02:00
Patrik Nordwall
d2afff6bfc
update protobuf 3.11.4
* supposed to be more native image friendly for Cloudstate
2020-05-06 11:05:30 +02:00
kerr
0e4d41ad33
+build Add sort imports support. (#28780)
* Add scalafix plugin for jdk 9.
* Add command alias sortImports.
* Excludes some sources from SortImports.
* Update SortImports to 0.4.0
* Sort imports with `sortImports` command.
2020-04-27 14:32:18 +02:00
ohze.net
ea7205eaf7
dotty phase 2: scalafix ExplicitNonNullaryApply (#28949)
* scalafix ExplicitNonNullaryApply prepare

+ Temporarily use com.sandinh:sbt-scalafix because scalacenter/scalafix#1098
+ Add ExplicitNonNullaryApply rule to .scalafix.conf
+ Manually fix a NonNullaryApply case in DeathWatchSpec that cause
  `fixall` fail because ExplicitNonNullaryApply rule incorrectly rewrite
  `context unbecome` to `context unbecome()` instead of `context.unbecome()`

* scalafix ExplicitNonNullaryApply

fix by enabling only ExplicitNonNullaryApply rule in .scalafix.conf then:
```
% sbt -Dakka.build.scalaVersion=2.13.1
> fixall
```

* scalafmtAll

* Revert to ch.epfl.scala:sbt-scalafix

Co-authored-by: Bùi Việt Thành <thanhbv@sandinh.net>
2020-04-27 12:31:16 +02:00
Bùi Việt Thành
02b9b30354 scalafix ExplicitResultTypes - for implicit members 2020-04-20 17:59:50 +07:00
Bùi Việt Thành
4df76d6bce scalafix FinalObject 2020-04-20 17:59:49 +07:00
Bùi Việt Thành
46a310e2cc scalafix ConstructorProcedureSyntax
fix by:
+ enabling only ConstructorProcedureSyntax rule in .scalafix.conf
+ then:
```
% sbt -Dakka.build.scalaVersion=2.13.1
> fixall
> scalafmtAll
```
2020-04-20 17:59:49 +07:00
RibleStrype
96639c537e
fix premature reset of the 'writeInProgress' flag in case of persistence failure #28629 2020-03-19 15:59:46 +01:00
Patrik Nordwall
5bde02380a Don't include event in PersistentRepr.toString
* Logging of toString of unknown classes should be avoided, since it could be huge
* Logging for EventSourcedBehaviorImpl includes the PersistentRepr,
  for example:

```
Received Journal response: WriteMessageSuccess(PersistentImpl(Confirmed(2,q1,1583924066958),6,pid-6),,false,null,831cd256-9bc5-40e3-b84c-4a2d34dde643,0),9)
```
2020-03-17 11:56:14 +01:00
Patrik Nordwall
98f8179376
Mark journalFor and OptionVal InternalStableApi (#28716)
* journalFor is used by akka-persistence-cassandra
2020-03-13 17:51:50 +01:00
Renato Cavalcanti
b02ac89caa
Merge pull request #28598 from akka/wip-PluginHolder-patriknw
Don't start journal when accessing event adapters, #28597
2020-03-02 22:48:19 +01:00
Renato Cavalcanti
86bfcd6e74
Fixed typo
Co-Authored-By: Arnout Engelen <arnout@bzzt.net>
2020-03-02 14:34:03 +01:00
Renato Cavalcanti
ec3d67df7e
Merge pull request #28542 from fredfp/issue-28541
Shield unsafe journal plugins from corner case, #28541
2020-02-13 13:46:21 +01:00
Patrik Nordwall
21bbae8c46 Fix LeveldbEndToEndEventAdapterSpec, it's not logging because journal not started 2020-02-12 16:50:18 +01:00
Renato Cavalcanti
77e1bfbc1b
Merge pull request #28594 from akka/wip-persistence-view-patriknw
remove obsolete PersistenceSettings.view
2020-02-12 15:43:50 +01:00
Patrik Nordwall
01b95c50ec Don't start journal when accessing event adapters, #28597 2020-02-11 19:36:14 +01:00
Patrik Nordwall
670a937d98 remove obsolete PersistenceSettings.view
* removing without deprecation because this can't be used anywhere
* persistence view has been removed years ago, and those config properties
  doesn't even exist in reference.conf so accessing this would throw exception
2020-02-11 14:51:57 +01:00
Arnaud Burlet
6c4aca1657
Add comment 2020-02-11 13:30:51 +01:00
Odd Möller
b0b05ecda8 Unwrap tagged events on addition (#28552) 2020-01-31 21:47:11 +01:00
Arnaud Burlet
6b23195385
Shield unsafe journal plugins from corner case, #28541 2020-01-30 09:14:02 +01:00
Yury Gribkov
004581a399 Rename RecoveryPermitter.pending for telemetry (#28503) 2020-01-21 09:15:30 +01:00
Johannes Rudolph
ec208cad08
Merge branch 'master' into scalatest310 2020-01-14 12:03:32 +01:00
Patrik Nordwall
856c4ff6f6
Rename Start message in HelloWorld (#28469)
* Rename more Start to SayHello

* fix copyright year in InmemJournalSpec
2020-01-13 14:48:31 +01:00
Mikhail Limansky
3f6a92aecf Merge remote-tracking branch 'akka/master' into scalatest310
# Conflicts:
#	akka-cluster-sharding-typed/src/test/java/jdocs/akka/cluster/sharding/typed/AccountExampleDocTest.java
2020-01-13 13:22:54 +03:00
Patrik Nordwall
cdc45c128d
Publish operations from InmemJournal (#28332)
* small feature that is useful for verifying that expected events were persisted
* doc example
* also enable serialization test config
2020-01-13 09:46:43 +01:00
Mike Limansky
d9ed927df0 Update to ScalaTest 3.1.0, fix #28289. 2020-01-11 15:15:10 +03:00
Patrik Nordwall
44cac83d0f
Use MessageBuffer in RecoveryPermitter, #28417 (#28418)
* Use MessageBuffer in RecoveryPermitter, #28417

* to propagate trace context

* feedback, while instead of zipWithIndex
2020-01-08 14:31:38 +01:00
Patrik Nordwall
efa856bc17 Timestamp in EventEnvelope, #28331 (#28383)
* added to EventEnvolope and therefore include case class stuff
  for binary compatibility
* also added in PersistentRepr, which for example is the serialized format in
  LeveldbJournal
2020-01-07 11:32:15 +01:00
Helena Edelson
6bf20f4117 Update all copyright headers to 2020 after new year's #27881 (#28434) 2020-01-02 13:24:59 +01:00
Brian Wignall
fd41299943 Fix typos, via a Levenshtein-style corrector 2019-12-19 01:57:55 -05:00