Commit graph

25 commits

Author SHA1 Message Date
PJ Fanning
ef628ea320
add asInputStream to ByteString (#1085)
* add getInputStream to ByteString

* scala 2 updates

* rename as asInputStream

* make methods final

* use different asInputStream implementations on different subclasses

Co-Authored-By: João Ferreira <943051+jtjeferreira@users.noreply.github.com>

* Update ByteBufferBackedInputStream.scala

scalafmt

* remove default asInputStream impl

* add some tests - more needed

* Create bytestring-inputstream.excludes

* scalafmt

* Update bytestring-inputstream.excludes

* Update ByteStringInputStreamSpec.scala

* Update ByteStringInputStreamSpec.scala

* Update ByteStringInputStreamSpec.scala

* add benchmark

* Update ByteString_asInputStream_Benchmark.scala

* change to iterator earlier in chain

---------

Co-authored-by: João Ferreira <943051+jtjeferreira@users.noreply.github.com>
2024-02-05 16:09:56 +01:00
He-Pin(kerr)
db4f57396d
chore: Make use of pattern matching on singleton type instead. (#1026)
More info: @som-snytt point out in https://scala-lang.org/files/archive/spec/2.13/08-pattern-matching.html#type-patterns see singleton.
2024-01-27 23:33:06 +08:00
He-Pin(kerr)
8e7ae52a06
perf: Make use of System.arraycopy directly. (#1001) 2024-01-26 19:54:46 +08:00
AndyChen
27b86bef11
chore: clarify the JMH Readme (#1025)
* chore: clarify the JMH Readme

* chore: typo fix

* follow the real-world execution

* add jmh links

* change the command prefix

* migrate to new syntax
2024-01-23 21:00:54 +08:00
He-Pin(kerr)
cd70ae8a6a
perf: Micro optimization for collect* operator. (#983) 2024-01-20 19:31:16 +08:00
He-Pin(kerr)
9bf2566c13
chore: Fix incorrectly prefixed config names (#992) 2024-01-20 18:39:11 +08:00
PJ Fanning
8c688dad2e
use more of StandardCharsets (#952)
* use more of StandardCharsets

* scalafmt
2024-01-14 23:50:50 +01:00
Laglangyue
6872f9c8b7
Fix some non-standard comments (#939)
* Fix some non-standard comments

* revert

---------

Co-authored-by: Jiafu Tang <jiafu.tang@qq.com>
2024-01-14 12:47:51 +01:00
PJ Fanning
6883d15576
use StandardCharsets (#934) 2024-01-13 12:40:16 +01:00
He-Pin
8d2141a5c9 =str Deprecate statefulMapConcat operator. 2023-09-02 00:50:10 +08:00
He-Pin
a855e58bfc =str Make use of statefulMap to implement zipWithIndex.
Signed-off-by: He-Pin <hepin1989@gmail.com>
2023-08-28 18:03:00 +08:00
He-Pin
725dbb5893 =jmh Add LazyFutureSourceBenchmark for #525.
Signed-off-by: He-Pin <hepin1989@gmail.com>
2023-08-12 04:45:45 +08:00
Matthew de Detrich
bd9ff4da5b Fix new sources so that they use the Apache standard header 2023-07-12 16:04:47 +02:00
PJ Fanning
b0fdac259b
adjust ASF header (#450) 2023-06-22 14:19:26 +01:00
Matthew de Detrich
f6930d93da Add enchanced-double-hash-random for id-generator-policy
Co-authored-by: Claude Warren <claude.warren@aiven.io>
Co-authored-by: PJ Fanning <pjfanning@users.noreply.github.com>
2023-06-16 12:48:37 +02:00
Iain Hull
c56edca78f
CVE-2023-31442 Address DNS poisoning vulnerability (#385)
* CVE-2023-31442 Address DNS poisoning vulnerability (and DNS concurrency bug)

* Remove sequential dns id generator

* fix scalafmt

* Fix bug in isSameQuestion
And ensure that DnsClient only removes inflight messages when the
questions match

* fix up exception message to remove reference to 'sequence' generator

* Add tests to failed commands and drop requests

---------

Co-authored-by: PJ Fanning <pjfanning@users.noreply.github.com>
2023-06-14 19:38:20 +01:00
PJ Fanning
1612950702
fix up refs to Akka in source code (#374)
* fix up refs to Akka in source code

* Update distributed-data.md
2023-06-07 14:51:57 +01:00
Matthew de Detrich
def5d6e388 Rename akka files and folders to pekko 2023-06-01 19:25:55 +02:00
Matthew de Detrich
480f516398
Unwrap single string interpolation syntax 2023-05-24 16:28:02 +02:00
PJ Fanning
785369030d change default port number to 7355 2023-03-09 05:00:01 +08:00
PJ Fanning
7e653454a9
use pekko: in urls and fix other branding issues (#184)
* use pekko: in urls and fix other branding issues

* update comments

* fix artery test

* test changes

* scalafmt

* try to fix some tests and fixing more akka refs

* more akka refs

* more changes

* more akka refs

* Update LeaseMajoritySpec.scala

* Update docs/src/main/paradox/testing.md

Co-authored-by: Johannes Rudolph <johannes.rudolph@gmail.com>

* Update docs/src/main/paradox/project/migration-guides.md

Co-authored-by: Johannes Rudolph <johannes.rudolph@gmail.com>

* Update actor/src/main/scala/org/apache/pekko/serialization/Serialization.scala

Co-authored-by: Johannes Rudolph <johannes.rudolph@gmail.com>

* Update scripts/release-train-issue-template.md

Co-authored-by: Johannes Rudolph <johannes.rudolph@gmail.com>

* revert link-validation change

* Update JacksonModule.scala

* revert key name changes to fix 2 tests

* fix one test

* more test trouble

* more test issues

* fix hashing test

* Update RouterTest.java

* update code comment

---------

Co-authored-by: Johannes Rudolph <johannes.rudolph@gmail.com>
2023-02-22 12:48:15 +01:00
PJ Fanning
c32fcf1f0a
update more akka refs to use pekko name (#200) 2023-02-17 10:49:40 +01:00
PJ Fanning
3ee028f915
update some random akka refs (#196) 2023-02-16 10:39:18 +01:00
He-Pin
4ac0f00a47 Update headers with The Apache header annotated. 2023-01-12 10:59:28 +08:00
Matthew de Detrich
24c03cde19
Rename sbt akka modules
Co-authored-by: Sean Glover <sean@seanglover.com>
2023-01-05 11:10:50 +01:00