iamsanjay commented on PR #2876:
URL: https://github.com/apache/solr/pull/2876#issuecomment-2782169134

   https://jakarta.ee/specifications/servlet/6.0/jakarta-servlet-spec-6.0
   > ### 3.14. Lifetime of the Request Object
   > Each request object is valid only within the scope of a servlet’s service 
method, or within the scope of a filter’s doFilter method, unless the 
asynchronous processing is enabled for the component and the startAsync method 
is invoked on the request object. In the case where asynchronous processing 
occurs, the request object remains valid until complete is invoked on the 
AsyncContext. Containers commonly recycle request objects in order to avoid the 
performance overhead of request object creation. The developer must be aware 
that maintaining references to request objects for which startAsync has not 
been called outside the scope described above is not recommended as it may have 
indeterminate results.
   > 
   > In case of upgrade, the above is still true.
   
   I came across another PR that might be related: [Jetty Issue 
#12518](https://github.com/jetty/jetty.project/issues/12518). It seems to align 
with this behavior. I also found similar language in the Servlet 3.0 
specification, which suggests this isn't entirely new — just perhaps enforced 
more strictly now.
   
   That said, it's likely we won't find a single link that fully explains this 
behavior in isolation. Instead, it seems to be the result of multiple changes 
introduced during the Jetty 12 ramp-up, especially with their transition to 
Servlet 6.0 and Jakarta EE 10 compliance.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to