# Release Notes (1.1.x)

Apache Pekko 1.1.x releases support Java 8 and above.

## 1.1.5

Pekko 1.1.5 is a bug fix release. See [GitHub Milestone for 1.1.5](https://github.com/apache/pekko/milestone/17?closed=1) for a fuller list of changes.

### Bug Fixes

* Fix issue with number deserialization in pekko-cluster-metrics ([PR1899](https://github.com/apache/pekko/pull/1899))

## 1.1.4

Pekko 1.1.4 is a bug fix and dependency upgrade release. See [GitHub Milestone for 1.1.4](https://github.com/apache/pekko/milestone/14?closed=1) for a fuller list of changes.

### Bug Fixes

* Fix occasional ordering issue in FlowWithContext#unsafeOptionalDataVia ([PR1681](https://github.com/apache/pekko/pull/1681))
* Issue forming mixed Akka/Pekko cluster when classic remoting with SSL/TLS is used ([PR1857](https://github.com/apache/pekko/pull/1857))
* Join cluster check adjusted to support Akka nodes ([PR1866](https://github.com/apache/pekko/pull/1866), [PR1877](https://github.com/apache/pekko/pull/1877))
    * If you are attempting to mix Akka and Pekko nodes in a cluster, it is still recommended to disable the join cluster check but these changes may be enough to get it work ([docs](https://cwiki.apache.org/confluence/display/PEKKO/Pekko+Akka+Compatibility)). 

### Changes

* Add the missing EmptySource case to TraversalBuilder ([PR1743](https://github.com/apache/pekko/issues/1743))

### Dependency Changes

* netty 4.1.121.Final

## 1.1.3

Pekko 1.1.3 is a bug fix and dependency upgrade release. See [GitHub Milestone for 1.1.3](https://github.com/apache/pekko/milestone/13?closed=1) for a fuller list of changes.

### Bug Fixes

* Revert zipWithIndex changes ([PR1526](https://github.com/apache/pekko/pull/1526))
* Fix occasional ordering issue in result in unsafeOptionalDataVia ([PR1611](https://github.com/apache/pekko/pull/1611))

### Changes

* Extra changes needed for our [experimental support](https://cwiki.apache.org/confluence/display/PEKKO/Pekko+Akka+Compatibility) for mixed clusters with Pekko and Akka nodes ([PR1462](https://github.com/apache/pekko/issues/1462), [PR1594](https://github.com/apache/pekko/issues/1594))
* Configuring persistence plugins at runtime for EventSourcedBehavior ([PR1518](https://github.com/apache/pekko/pull/1518))
* Implement EventsByTagQuery in PersistenceTestKitReadJournal ([PR1533](https://github.com/apache/pekko/pull/1533))
* Implement EventsBySliceQuery in PersistenceTestKitReadJournal ([PR1533](https://github.com/apache/pekko/pull/1533))
* Tidy up implementation of PhasedFusingActorMaterializer ([PR1617](https://github.com/apache/pekko/pull/1617))
* Remove unused SupervisedGraphStageLogic ([PR1619](https://github.com/apache/pekko/pull/1619))

### Dependency Changes

* jackson 2.17.3
* netty 4.1.116.Final

## 1.1.2

Pekko 1.1.2 is a bug fix and dependency upgrade release. See [GitHub Milestone for 1.1.2](https://github.com/apache/pekko/milestone/11?closed=1) for a fuller list of changes.

### Bug Fixes

* Fix version issue in OSGi metadata ([PR1464](https://github.com/apache/pekko/pull/1464))
* Support primitives in Flow#collectType ([PR1490](https://github.com/apache/pekko/pull/1490))

### Changes

* Some updates to fix issues seen by Kamon users ([#1484](https://github.com/apache/pekko/issues/1484))

### Dependency Changes

* pekko-protobuf-v3 is now based on protobuf-java 3.25.5
* netty 4.1.114.Final

## 1.1.1

Pekko 1.1.1 is a bug fix release.

### Bug Fixes

* Cluster sharding delivers message to the wrong entity ([PR1464](https://github.com/apache/pekko/pull/1464))

## 1.1.0

Release notes for Apache Pekko 1.1.0. See [GitHub Milestone for 1.1.0-M1](https://github.com/apache/pekko/milestone/2?closed=1) and [GitHub Milestone for 1.1.0](https://github.com/apache/pekko/milestone/7?closed=1) for a fuller list of changes.

Pekko Remote and/or Cluster users who use Netty instead of Aeron should note that we now support Netty 4 instead of Netty 3. It is recommended that you run some tests before you go into production with this new release.

Please review the Known Issues below.

### 1.0.x changes

Apache Pekko 1.1.0 contains all of the changes that have been released in the @ref:[1.0.x releases](releases-1.0.md) up to and including v1.0.3.

### Bug Fixes

* in TlsActor, flush data to user only after handshake has finished ([PR1128](https://github.com/apache/pekko/pull/1128))
* proper path when promise actor terminated quickly ([PR1156](https://github.com/apache/pekko/pull/1156))
* TcpDnsClient cannot recover if registration on TcpConnection times out ([PR1183](https://github.com/apache/pekko/pull/1183))
* Fix uncaught decider exception in Split with Supervision.resumingDecider ([PR1207](https://github.com/apache/pekko/pull/1207))
* Pull instead of throw exception in groupBy operator ([PR1210](https://github.com/apache/pekko/pull/1210))
* Fix ByteIterator indexWhere method ([PR1282](https://github.com/apache/pekko/pull/1282))
* Assertion failure caused by exception during pre-start ([#1384](https://github.com/apache/pekko/issues/1384)) (not in v1.1.0-M1)

### Additional APIs

* Add create method to PFBuilder ([PR947](https://github.com/apache/pekko/pull/947))
* Add asInputStream to ByteString ([PR1085](https://github.com/apache/pekko/pull/1085))
* Add additional mailbox selector for typed props ([PR1096](https://github.com/apache/pekko/pull/1096)) (not in v1.1.0-M1)
* Add missing create method to javadsl Graph ([PR1230](https://github.com/apache/pekko/pull/1230))
* Add new indexOf functions to ByteString for byte lookups ([PR1247](https://github.com/apache/pekko/pull/1247))
* Add UntypedAbstractActorWithTimers ([#1360](https://github.com/apache/pekko/issues/1360)) (not in v1.1.0-M1)
* Add isCompleted method to BoundedSourceQueue ([PR1374](https://github.com/apache/pekko/pull/1374)) (not in v1.1.0-M1)
* Add Behaviors.receiveMessageWithSame ([#1444](https://github.com/apache/pekko/issues/1444)) (not in v1.1.0-M1)

The Stream API has been updated to add some extra functions. 

* add collectFirst stream operator ([PR984](https://github.com/apache/pekko/pull/984))
* add collectWhile stream operator ([PR964](https://github.com/apache/pekko/pull/964))
* add dimap stream operator ([PR942](https://github.com/apache/pekko/pull/942))
* add flatten stream operator ([PR937](https://github.com/apache/pekko/pull/937))
* add flattenMerge stream operator ([PR1045](https://github.com/apache/pekko/pull/1045))
* add foldWhile stream operator ([PR1012](https://github.com/apache/pekko/pull/1012))
* add mapAsyncPartitioned / mapAsyncPartitionedUnordered stream operators ([PR561](https://github.com/apache/pekko/pull/561), [PR676](https://github.com/apache/pekko/pull/676))
* add mapWithResource stream operator ([PR931](https://github.com/apache/pekko/pull/931), [PR1053](https://github.com/apache/pekko/pull/1053))
* add onErrorComplete stream operator ([PR913](https://github.com/apache/pekko/pull/913))
* add support for `for` comprehensions ([PR935](https://github.com/apache/pekko/pull/935))
* add Sink.exists operator ([PR990](https://github.com/apache/pekko/pull/990))
* add Sink.forall operator ([PR989](https://github.com/apache/pekko/pull/989))
* add Source.iterate operator ([PR1244](https://github.com/apache/pekko/pull/1244))
* added extra retry operators that allow users to provide a predicate to decide whether to retry based on the exception ([PR1269](https://github.com/apache/pekko/pull/1269))
* add QueueOfferResult.closed() method for Java DSL users ([PR1377](https://github.com/apache/pekko/pull/1377)) (not in v1.1.0-M1)
* add optionalVia/unsafeOptionalDataVia operators ([PR1422](https://github.com/apache/pekko/pull/1422)) (not in v1.1.0-M1)
* add alsoTo/alsoToContext operators to `SourceWithContext`/`FlowWithContext` ([PR1443](https://github.com/apache/pekko/pull/1443)) (not in v1.1.0-M1)
* add wireTap/wireTapContext operators to `SourceWithContext`/`FlowWithContext` ([PR1446](https://github.com/apache/pekko/pull/1446)) (not in v1.1.0-M1)

The Stream Testkit Java DSL has some extra functions.

* Add more Java DSL functions to StreamTestKit to better match the Scala DSL ([PR1186](https://github.com/apache/pekko/pull/1186))
* Add expectNextN to StreamTestKit for javadsl ([PR962](https://github.com/apache/pekko/pull/962))

### Removed

* The pekko-protobuf jar is no longer published. The pekko-protobuf-v3 jar is still published ([PR489](https://github.com/apache/pekko/pull/489))

### Other Changes

* Scala 2 inline optimizer has been enabled
* Support `fork-join-executor.maximum-pool-size` config ([PR485](https://github.com/apache/pekko/pull/485))
* Classic Remoting was updated to use Netty 4 instead of Netty 3 ([PR643](https://github.com/apache/pekko/pull/643))
* Replace SubstreamCancelStrategy with SupervisionDecider for Split ([PR252](https://github.com/apache/pekko/pull/252))
* Support Jackson StreamReadConstraints and StreamWriteConstraints ([PR564](https://github.com/apache/pekko/pull/564))
* Support configuration for Jackson Recycler Pool ([PR1192](https://github.com/apache/pekko/pull/1192))
* pekko-multi-node-testkit was changed to use Netty 4 instead of Netty 3 ([PR539](https://github.com/apache/pekko/pull/539))
* add junit5 support to pekko-testkit-typed ([PR751](https://github.com/apache/pekko/pull/751))
* Fix maybe throw for MinimalStage (Stream Unfold). ([PR822](https://github.com/apache/pekko/pull/822))
* Add dedicated stream timeout exceptions for timeout related operators ([PR861](https://github.com/apache/pekko/pull/861))
* Reimplement MapConcat operator without statefulMapConcat ([PR902](https://github.com/apache/pekko/pull/902))
* Make SingleConsumerMultiProducer the default mailbox for stream ([PR917](https://github.com/apache/pekko/pull/917))
* Rework PhiAccrualFailureDetector to enable monitoring of interval ([PR1137](https://github.com/apache/pekko/pull/1137))
* Remove the deprecation of statefulMapConcat operator ([PR1147](https://github.com/apache/pekko/pull/1147))
* Add AbruptStreamTerminationException as super class of some related exceptions ([PR1201](https://github.com/apache/pekko/pull/1201))
* For Pekko Persistence DurableState API, a new DeleteRevisionException has been added and the aim is to have implementations fail with that exception if a deleteObject does not delete exactly one record for that revision ([PR1271](https://github.com/apache/pekko/pull/1271))
* Support for a dispatcher that uses Virtual Threads ([PR1299](https://github.com/apache/pekko/pull/1299)) (not in v1.1.0-M1)
* Avoid unnecessary shard updates while shutting down ([PR1342](https://github.com/apache/pekko/pull/1342)) (not in v1.1.0-M1)
* Support just warning instead of error when pekko.scheduler.tick-duration < 10ms on Windows ([#1364](https://github.com/apache/pekko/issues/1364)) (not in v1.1.0-M1)
* Support the flattening syntax for supervising ([PR1386](https://github.com/apache/pekko/pull/1386)) (not in v1.1.0-M1)
* Fix uncurried Pekko Stream ops in javadsl ([PR1406](https://github.com/apache/pekko/pull/1406)) (not in v1.1.0-M1)
* A new config has been added to support users of Pekko Persistence snapshots to choose not to modify the persisted data to include Pekko serializer names ([PR1423](https://github.com/apache/pekko/pull/1423)) (not in v1.1.0-M1)
* Some performance changes in the Stream code ([PR48](https://github.com/apache/pekko/pull/48), [PR49](https://github.com/apache/pekko/pull/49), [PR278](https://github.com/apache/pekko/pull/278), [PR363](https://github.com/apache/pekko/pull/363), [PR408](https://github.com/apache/pekko/pull/408), [PR872](https://github.com/apache/pekko/pull/872), [PR923](https://github.com/apache/pekko/pull/923), [PR983](https://github.com/apache/pekko/pull/983), [PR1001](https://github.com/apache/pekko/pull/1001), [PR1027](https://github.com/apache/pekko/pull/1027), [PR1249](https://github.com/apache/pekko/pull/1249), [PR1250](https://github.com/apache/pekko/pull/1250))

### Dependency Changes

Most of the dependency changes are small patch level upgrades. Some exceptions include:

* The protobuf-java code that is shaded and released as pekko-protobuf-v3 has been upgraded to protobuf-java 3.25.3
* slf4j was updated to v2 ([PR748](https://github.com/apache/pekko/pull/748))
* upgrade from netty 3 to netty 4 (pekko-remote and pekko-multi-node-testkit)
* Jackson 2.17.2
* Aeron 1.45.0 and Agrona 1.22.0 (newer versions of these libs require Java 17)

### Known Issues

* A race condition has been introduced into pekko-cluster-sharding which needs to be fixed in a Pekko 1.1.1 release. Users who use Cluster Sharding should skip this release. The problem does not appear in v1.1.0-M1. ([#1463](https://github.com/apache/pekko/pull/1463))
* For Scala 2.12 users, we have run into an issue with stream-testkit function `expectNextWithTimeoutPF` ([#1393](https://github.com/apache/pekko/issues/1393)).
    * For now, the consensus is not to change this as it appears to be more of a Scala 2.12 compiler issue.
    * Affected Scala 2.12 users can stick with Pekko 1.0 or change their code to get it to compile. The most reliable code change is to move the PartialFunction code and declare it as a `val`.
    * If you feel strongly that Apache Pekko should try to fix this, please get in touch. 
