Exceptions when benchmarking: ERROR NIO1SocketServerGroup
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- backend, networking
Hướng nghiên cứu
Bắt đầu với thiết lập benchmark trong các thư mục pure và jmeter của service được liên kết, sau đó kiểm tra SelectorLoop.scala và NIO1SocketServerGroup.scala tại các vị trí trong stack trace. Nếu có thể, hãy tái hiện các lỗi và theo dõi quá trình tắt selector cũng như việc xử lý các kênh client. Công việc được hoàn tất khi benchmark không còn khiến service tiếp tục phát sinh lỗi hoặc không phản hồi sau các exception này.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hi,
during benchmarking a http4s service implementation I ran into some issues. Occasionally the service errored producing the following kinds of exceptions in the logs.
First kind
After this exception the service continued to reply but errors kept on ramping up.
ERROR NIO1SocketServerGroup - Error handling client channel. Closing.
java.util.concurrent.RejectedExecutionException: This SelectorLoop is closed.
at org.http4s.blaze.channel.nio1.SelectorLoop.enqueueTask(SelectorLoop.scala:118)
at org.http4s.blaze.channel.nio1.SelectorLoop.initChannel(SelectorLoop.scala:139)
at org.http4s.blaze.channel.nio1.NIO1SocketServerGroup.org$http4s$blaze$channel$nio1$NIO1SocketServerGroup$$handleClientChannel(NIO1SocketServerGroup.scala:290)
at org.http4s.blaze.channel.nio1.NIO1SocketServerGroup$SocketAcceptor.acceptNewConnections(NIO1SocketServerGroup.scala:148)
at org.http4s.blaze.channel.nio1.NIO1SocketServerGroup$SocketAcceptor.opsReady(NIO1SocketServerGroup.scala:119)
at org.http4s.blaze.channel.nio1.SelectorLoop.processKeys(SelectorLoop.scala:200)
at org.http4s.blaze.channel.nio1.SelectorLoop.org$http4s$blaze$channel$nio1$SelectorLoop$$runLoop(SelectorLoop.scala:171)
at org.http4s.blaze.channel.nio1.SelectorLoop$$anon$1.run(SelectorLoop.scala:68)
at java.base/java.lang.Thread.run(Thread.java:834)
Second kind
After this exception the service stopped responding.
ERROR SelectorLoop - Unhandled exception in selector loop
java.io.IOException: Connection reset by peer
at java.base/sun.nio.ch.FileDispatcherImpl.close0(Native Method)
at java.base/sun.nio.ch.SocketDispatcher.close(SocketDispatcher.java:55)
at java.base/sun.nio.ch.SocketChannelImpl.kill(SocketChannelImpl.java:907)
at java.base/sun.nio.ch.SelectorImpl.processDeregisterQueue(SelectorImpl.java:267)
at java.base/sun.nio.ch.KQueueSelectorImpl.doSelect(KQueueSelectorImpl.java:116)
at java.base/sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:124)
at java.base/sun.nio.ch.SelectorImpl.select(SelectorImpl.java:141)
at org.http4s.blaze.channel.nio1.SelectorLoop.org$http4s$blaze$channel$nio1$SelectorLoop$$runLoop(
SelectorLoop.scala:163)
at org.http4s.blaze.channel.nio1.SelectorLoop$$anon$1.run(SelectorLoop.scala:68)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR NIO1SocketServerGroup - Listening socket(/0.0.0.0:53248) closed forcibly.
java.nio.channels.ShutdownChannelGroupException: null
at org.http4s.blaze.channel.nio1.SelectorLoop.killSelector(SelectorLoop.scala:225)
at org.http4s.blaze.channel.nio1.SelectorLoop.org$http4s$blaze$channel$nio1$SelectorLoop$$runLoop(
SelectorLoop.scala:186)
at org.http4s.blaze.channel.nio1.SelectorLoop$$anon$1.run(SelectorLoop.scala:68)
at java.base/java.lang.Thread.run(Thread.java:834)
ERROR NIO1HeadStage - Abnormal NIO1HeadStage termination
java.nio.channels.ShutdownChannelGroupException: null
at org.http4s.blaze.channel.nio1.SelectorLoop.killSelector(SelectorLoop.scala:225)
at org.http4s.blaze.channel.nio1.SelectorLoop.org$http4s$blaze$channel$nio1$SelectorLoop$$runLoop(
SelectorLoop.scala:186)
at org.http4s.blaze.channel.nio1.SelectorLoop$$anon$1.run(SelectorLoop.scala:68)
at java.base/java.lang.Thread.run(Thread.java:834)
As mentioned these are hard to reproduce. In general I could observe that once a service started erroring then leaving the JVM running it would continue to produce errors.
System environment
The code for the service can be found in the following repository: https://github.com/jan0sch/pfhais
It is located within the pure folder. The configuration files for the jmeter benchmarks can be found in the jmeter folder.
Service workstation
- CPU : Core i5-9600K, 6 Cores, 3,7 GHz
- RAM : 32 GB
- HDD : 2x Samsung SSD 860 PRO 512GB, SATA
- OS : FreeBSD 12 (HT disabled)
- JDK : 11.0.4+11-2
- DB : PostgreSQL 11.3
Client workstation
- CPU : AMD Ryzen Threadripper 2950X
- RAM : 32 GB
- HDD : 2x Samsung SSD 970 PRO 512GB, M.2
- OS : FreeBSD 12 (HT disabled)
- JDK : 11.0.4+11-2
Apache JMeter 5.1.1 was used to run the benchmark.
- Ngôn ngữ chính
- Scala
- Star
- 371
- Fork
- 63
- Merge trung bình
- 2 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của http4s/blaze
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
-
support
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
Issue tương tự
-
Bound wrong-magic P2P diagnostics to parsed header bytesCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
ergoplatform/ergo#2736 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:shuffle enhancement good first issue performance requires-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/datafusion-comet#7072 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug 🐞 CI/CD ⚒️
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
valkey-io/valkey-glide#7370 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Improve UI text on confirmation page (at registration)Có thể đã có người làm @Arghyann đã nhận hôm nay. Đang mởgood first issue improvement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
lichess-org/lila#22126 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[VL] Remove the unused ShuffleSchema.hCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 2 ngày