dynamic-tp/adapter
yanhom cac1a88866 fix(virtual-thread): correct VT detection, task accounting and refresh
- DtpPostProcessor: resolve the internal virtualThreadDelegate field once and trust
  the executor instance whenever it exists, so a SimpleAsyncTaskExecutor running on
  platform threads is no longer taken over just because spring.threads.virtual.enabled
  is on. The global property is only used as a fallback on Spring < 6.1, where the
  field does not exist.
- DtpPostProcessor: skip TaskScheduler beans (SimpleAsyncTaskScheduler extends
  SimpleAsyncTaskExecutor), and honor @DynamicTp for pool naming on the virtual path.
- VirtualThreadExecutorProxy: register task statistics and the aware execute hook when
  a task starts running instead of when it is submitted. decorate() is installed as the
  TaskDecorator of the Spring bean and Spring may reject a task after decorating it
  (closed executor, concurrency limit, thread creation failure), which used to leak the
  active count and the performance stopwatch entry of a task that never ran. The reject
  path therefore no longer rolls counters back, which also fixes a negative drift when
  an already enhanced task was re-submitted.
- VirtualThreadExecutorProxy: keep the task wrapper adapted from the bean's TaskDecorator
  in a dedicated field and merge it back in setTaskWrappers, so a config refresh that
  resets the wrappers to taskWrapperNames cannot silently drop the user's decorator.
- AbstractDtpAdapter: skip pool-size validation and keepAlive tuning for virtual thread
  executors, otherwise a tomcatTp config without core/max sizes made the whole refresh
  (notify / taskWrapper / aware included) bail out when Tomcat runs on virtual threads.
- DtpRegistry: warn instead of silently ignoring a thread pool name conflict, the caller
  would otherwise keep using an executor that is not managed at all.
- TomcatDtpAdapter: set the pool name on the virtual thread proxy.
- ReflectionUtil: add getFieldValue(Field, Object).
- Tests: cover platform-thread / TaskScheduler exclusion, decorate having no side effect
  until the task starts, rejection after decoration not leaking counters, and the user
  TaskDecorator surviving a config refresh.
2026-08-04 11:51:34 +08:00
..
adapter-brpc fix: resolve minor issues across the project 2026-04-24 16:46:07 +08:00
adapter-common fix(virtual-thread): correct VT detection, task accounting and refresh 2026-08-04 11:51:34 +08:00
adapter-dubbo optimize hystrix adapter 2025-05-25 21:50:25 +08:00
adapter-grpc merge master and fix conflicts 2025-02-13 19:26:46 +08:00
adapter-hystrix optimize hystrix adapter 2025-05-25 21:50:25 +08:00
adapter-liteflow optimize package structure 2024-11-06 23:08:30 +08:00
adapter-motan adapter-motan add spring context dependency 2024-11-06 23:34:41 +08:00
adapter-okhttp3 [ISSUE #524] optimize code and fix could not get thread pool for higher version okhttp3 2025-02-07 19:50:11 +08:00
adapter-rabbitmq refactor:基本完成spring模块化 2024-07-19 15:39:15 +08:00
adapter-rocketmq optimize package structure 2024-11-06 23:08:30 +08:00
adapter-sofa fix conflicts and optimize cloud refresher 2023-12-16 13:16:35 +08:00
adapter-tars optimize adapter 2023-09-16 13:36:02 +08:00
adapter-thrift fix: resolve minor issues across the project 2026-04-24 16:46:07 +08:00
pom.xml Add Thrift adapter module with support for multiple server types 2025-05-23 06:12:39 +00:00