Re: svn commit: r1826111 - in /tomcat/trunk: conf/logging.properties java/org/apache/coyote/http2/Http2UpgradeHandler.java webapps/docs/changelog.xml
On Wed, Mar 7, 2018 at 4:39 PM, Mark Thomaswrote: > > The issue (re)started occurring in that test when I added that new > parser. > > IMO, it's simply that it's not as responsive for dealing with the > connector > > pause that the test is testing. > > Sounds about right. I'd still like to understand exactly what is going > on - if only for my own peace of mind. The fix is probably a longer > delay but I'll dig into it some more - I might find another edge case or > two to fix along the way. > Yes, it might be a bug, I have no idea right now although the lower responsiveness to this sort of event is expected. Otherwise, the said parser has been stable in testing for me (like this h2spec test I bothered you with). Rémy
Re: svn commit: r1826111 - in /tomcat/trunk: conf/logging.properties java/org/apache/coyote/http2/Http2UpgradeHandler.java webapps/docs/changelog.xml
On 07/03/18 15:19, Rémy Maucherat wrote: > On Wed, Mar 7, 2018 at 4:09 PM, Mark Thomaswrote: > >> On 07/03/18 14:37, ma...@apache.org wrote: >>> Author: markt >>> Date: Wed Mar 7 14:37:52 2018 >>> New Revision: 1826111 >>> >>> URL: http://svn.apache.org/viewvc?rev=1826111=rev >>> Log: >>> Address intermittent test failure (hopefully) in TestHttp2Section_6_8. >> >> Drat. While this fixed a problem, it did not fix the problem. I'm still >> seeing test failures (as is BuildBot). Still looking... >> > > The issue (re)started occurring in that test when I added that new parser. > IMO, it's simply that it's not as responsive for dealing with the connector > pause that the test is testing. Sounds about right. I'd still like to understand exactly what is going on - if only for my own peace of mind. The fix is probably a longer delay but I'll dig into it some more - I might find another edge case or two to fix along the way. Mark > > Rémy > > >> >> Mark >> >> >>> >>> Modified: >>> tomcat/trunk/conf/logging.properties >>> tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java >>> tomcat/trunk/webapps/docs/changelog.xml >>> >>> Modified: tomcat/trunk/conf/logging.properties >>> URL: http://svn.apache.org/viewvc/tomcat/trunk/conf/logging. >> properties?rev=1826111=1826110=1826111=diff >>> >> == >>> --- tomcat/trunk/conf/logging.properties (original) >>> +++ tomcat/trunk/conf/logging.properties Wed Mar 7 14:37:52 2018 >>> @@ -68,7 +68,7 @@ org.apache.catalina.core.ContainerBase.[ >>> #org.apache.jasper.compiler.TldLocationsCache.level = FINE >>> >>> # To see debug messages for HTTP/2 handling, uncomment the following >> line: >>> -#org.apache.coyote.http2.level = FINE >>> +org.apache.coyote.http2.level = FINE >>> >>> # To see debug messages for WebSocket handling, uncomment the following >> line: >>> #org.apache.tomcat.websocket.level = FINE >>> >>> Modified: tomcat/trunk/java/org/apache/coyote/http2/ >> Http2UpgradeHandler.java >>> URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/ >> coyote/http2/Http2UpgradeHandler.java?rev=1826111=1826110=1826111& >> view=diff >>> >> == >>> --- tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java >> (original) >>> +++ tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java >> Wed Mar 7 14:37:52 2018 >>> @@ -1299,11 +1299,13 @@ class Http2UpgradeHandler extends Abstra >>> >>> @Override >>> public void headersEnd(int streamId) throws ConnectionException { >>> -setMaxProcessedStream(streamId); >>> Stream stream = getStream(streamId, connectionState.get(). >> isNewStreamAllowed()); >>> -if (stream != null && stream.isActive()) { >>> -if (stream.receivedEndOfHeaders()) { >>> -processStreamOnContainerThread(stream); >>> +if (stream != null) { >>> +setMaxProcessedStream(streamId); >>> +if (stream.isActive()) { >>> +if (stream.receivedEndOfHeaders()) { >>> +processStreamOnContainerThread(stream); >>> +} >>> } >>> } >>> } >>> >>> Modified: tomcat/trunk/webapps/docs/changelog.xml >>> URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/ >> changelog.xml?rev=1826111=1826110=1826111=diff >>> >> == >>> --- tomcat/trunk/webapps/docs/changelog.xml (original) >>> +++ tomcat/trunk/webapps/docs/changelog.xml Wed Mar 7 14:37:52 2018 >>> @@ -59,6 +59,10 @@ >>> >>> Avoid potential loop in APR/Native poller. (markt) >>> >>> + >>> +Ensure streams that are received but not processed are excluded >> from the >>> +tracking of maximum ID of processed streams. (markt) >>> + >>> >>> >>> >>> >>> >>> >>> - >>> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org >>> For additional commands, e-mail: dev-h...@tomcat.apache.org >>> >> >> >> - >> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: dev-h...@tomcat.apache.org >> >> > - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Re: svn commit: r1826111 - in /tomcat/trunk: conf/logging.properties java/org/apache/coyote/http2/Http2UpgradeHandler.java webapps/docs/changelog.xml
On Wed, Mar 7, 2018 at 4:09 PM, Mark Thomaswrote: > On 07/03/18 14:37, ma...@apache.org wrote: > > Author: markt > > Date: Wed Mar 7 14:37:52 2018 > > New Revision: 1826111 > > > > URL: http://svn.apache.org/viewvc?rev=1826111=rev > > Log: > > Address intermittent test failure (hopefully) in TestHttp2Section_6_8. > > Drat. While this fixed a problem, it did not fix the problem. I'm still > seeing test failures (as is BuildBot). Still looking... > The issue (re)started occurring in that test when I added that new parser. IMO, it's simply that it's not as responsive for dealing with the connector pause that the test is testing. Rémy > > Mark > > > > > > Modified: > > tomcat/trunk/conf/logging.properties > > tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java > > tomcat/trunk/webapps/docs/changelog.xml > > > > Modified: tomcat/trunk/conf/logging.properties > > URL: http://svn.apache.org/viewvc/tomcat/trunk/conf/logging. > properties?rev=1826111=1826110=1826111=diff > > > == > > --- tomcat/trunk/conf/logging.properties (original) > > +++ tomcat/trunk/conf/logging.properties Wed Mar 7 14:37:52 2018 > > @@ -68,7 +68,7 @@ org.apache.catalina.core.ContainerBase.[ > > #org.apache.jasper.compiler.TldLocationsCache.level = FINE > > > > # To see debug messages for HTTP/2 handling, uncomment the following > line: > > -#org.apache.coyote.http2.level = FINE > > +org.apache.coyote.http2.level = FINE > > > > # To see debug messages for WebSocket handling, uncomment the following > line: > > #org.apache.tomcat.websocket.level = FINE > > > > Modified: tomcat/trunk/java/org/apache/coyote/http2/ > Http2UpgradeHandler.java > > URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/ > coyote/http2/Http2UpgradeHandler.java?rev=1826111=1826110=1826111& > view=diff > > > == > > --- tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java > (original) > > +++ tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java > Wed Mar 7 14:37:52 2018 > > @@ -1299,11 +1299,13 @@ class Http2UpgradeHandler extends Abstra > > > > @Override > > public void headersEnd(int streamId) throws ConnectionException { > > -setMaxProcessedStream(streamId); > > Stream stream = getStream(streamId, connectionState.get(). > isNewStreamAllowed()); > > -if (stream != null && stream.isActive()) { > > -if (stream.receivedEndOfHeaders()) { > > -processStreamOnContainerThread(stream); > > +if (stream != null) { > > +setMaxProcessedStream(streamId); > > +if (stream.isActive()) { > > +if (stream.receivedEndOfHeaders()) { > > +processStreamOnContainerThread(stream); > > +} > > } > > } > > } > > > > Modified: tomcat/trunk/webapps/docs/changelog.xml > > URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/ > changelog.xml?rev=1826111=1826110=1826111=diff > > > == > > --- tomcat/trunk/webapps/docs/changelog.xml (original) > > +++ tomcat/trunk/webapps/docs/changelog.xml Wed Mar 7 14:37:52 2018 > > @@ -59,6 +59,10 @@ > > > > Avoid potential loop in APR/Native poller. (markt) > > > > + > > +Ensure streams that are received but not processed are excluded > from the > > +tracking of maximum ID of processed streams. (markt) > > + > > > > > > > > > > > > > > - > > To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org > > For additional commands, e-mail: dev-h...@tomcat.apache.org > > > > > - > To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org > For additional commands, e-mail: dev-h...@tomcat.apache.org > >
Re: svn commit: r1826111 - in /tomcat/trunk: conf/logging.properties java/org/apache/coyote/http2/Http2UpgradeHandler.java webapps/docs/changelog.xml
On 07/03/18 14:37, ma...@apache.org wrote: > Author: markt > Date: Wed Mar 7 14:37:52 2018 > New Revision: 1826111 > > URL: http://svn.apache.org/viewvc?rev=1826111=rev > Log: > Address intermittent test failure (hopefully) in TestHttp2Section_6_8. Drat. While this fixed a problem, it did not fix the problem. I'm still seeing test failures (as is BuildBot). Still looking... Mark > > Modified: > tomcat/trunk/conf/logging.properties > tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java > tomcat/trunk/webapps/docs/changelog.xml > > Modified: tomcat/trunk/conf/logging.properties > URL: > http://svn.apache.org/viewvc/tomcat/trunk/conf/logging.properties?rev=1826111=1826110=1826111=diff > == > --- tomcat/trunk/conf/logging.properties (original) > +++ tomcat/trunk/conf/logging.properties Wed Mar 7 14:37:52 2018 > @@ -68,7 +68,7 @@ org.apache.catalina.core.ContainerBase.[ > #org.apache.jasper.compiler.TldLocationsCache.level = FINE > > # To see debug messages for HTTP/2 handling, uncomment the following line: > -#org.apache.coyote.http2.level = FINE > +org.apache.coyote.http2.level = FINE > > # To see debug messages for WebSocket handling, uncomment the following line: > #org.apache.tomcat.websocket.level = FINE > > Modified: tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java > URL: > http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java?rev=1826111=1826110=1826111=diff > == > --- tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java > (original) > +++ tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java Wed > Mar 7 14:37:52 2018 > @@ -1299,11 +1299,13 @@ class Http2UpgradeHandler extends Abstra > > @Override > public void headersEnd(int streamId) throws ConnectionException { > -setMaxProcessedStream(streamId); > Stream stream = getStream(streamId, > connectionState.get().isNewStreamAllowed()); > -if (stream != null && stream.isActive()) { > -if (stream.receivedEndOfHeaders()) { > -processStreamOnContainerThread(stream); > +if (stream != null) { > +setMaxProcessedStream(streamId); > +if (stream.isActive()) { > +if (stream.receivedEndOfHeaders()) { > +processStreamOnContainerThread(stream); > +} > } > } > } > > Modified: tomcat/trunk/webapps/docs/changelog.xml > URL: > http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1826111=1826110=1826111=diff > == > --- tomcat/trunk/webapps/docs/changelog.xml (original) > +++ tomcat/trunk/webapps/docs/changelog.xml Wed Mar 7 14:37:52 2018 > @@ -59,6 +59,10 @@ > > Avoid potential loop in APR/Native poller. (markt) > > + > +Ensure streams that are received but not processed are excluded from > the > +tracking of maximum ID of processed streams. (markt) > + > > > > > > > - > To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org > For additional commands, e-mail: dev-h...@tomcat.apache.org > - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Re: svn commit: r1826111 - in /tomcat/trunk: conf/logging.properties java/org/apache/coyote/http2/Http2UpgradeHandler.java webapps/docs/changelog.xml
On 07/03/18 14:44, Konstantin Kolinko wrote: > 2018-03-07 17:37 GMT+03:00: >> Author: markt >> Date: Wed Mar 7 14:37:52 2018 >> New Revision: 1826111 >> >> URL: http://svn.apache.org/viewvc?rev=1826111=rev >> Log: >> Address intermittent test failure (hopefully) in TestHttp2Section_6_8. >> >> Modified: >> tomcat/trunk/conf/logging.properties >> tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java >> tomcat/trunk/webapps/docs/changelog.xml >> >> Modified: tomcat/trunk/conf/logging.properties >> URL: >> http://svn.apache.org/viewvc/tomcat/trunk/conf/logging.properties?rev=1826111=1826110=1826111=diff >> == >> --- tomcat/trunk/conf/logging.properties (original) >> +++ tomcat/trunk/conf/logging.properties Wed Mar 7 14:37:52 2018 >> @@ -68,7 +68,7 @@ org.apache.catalina.core.ContainerBase.[ >> #org.apache.jasper.compiler.TldLocationsCache.level = FINE >> >> # To see debug messages for HTTP/2 handling, uncomment the following line: >> -#org.apache.coyote.http2.level = FINE >> +org.apache.coyote.http2.level = FINE >> >> # To see debug messages for WebSocket handling, uncomment the following >> line: >> #org.apache.tomcat.websocket.level = FINE > > I am sure that you did not want to commit the above. As educational as it may be for our users, you are correct. Thanks for catching that. I'll fix it now. Mark > > >> Modified: tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java >> URL: >> http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java?rev=1826111=1826110=1826111=diff >> == >> --- tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java >> (original) >> +++ tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java Wed >> Mar 7 14:37:52 2018 >> @@ -1299,11 +1299,13 @@ class Http2UpgradeHandler extends Abstra >> >> @Override >> public void headersEnd(int streamId) throws ConnectionException { >> -setMaxProcessedStream(streamId); >> Stream stream = getStream(streamId, >> connectionState.get().isNewStreamAllowed()); >> -if (stream != null && stream.isActive()) { >> -if (stream.receivedEndOfHeaders()) { >> -processStreamOnContainerThread(stream); >> +if (stream != null) { >> +setMaxProcessedStream(streamId); >> +if (stream.isActive()) { >> +if (stream.receivedEndOfHeaders()) { >> +processStreamOnContainerThread(stream); >> +} >> } >> } >> } >> >> Modified: tomcat/trunk/webapps/docs/changelog.xml >> URL: >> http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1826111=1826110=1826111=diff >> == >> --- tomcat/trunk/webapps/docs/changelog.xml (original) >> +++ tomcat/trunk/webapps/docs/changelog.xml Wed Mar 7 14:37:52 2018 >> @@ -59,6 +59,10 @@ >> >> Avoid potential loop in APR/Native poller. (markt) >> >> + >> +Ensure streams that are received but not processed are excluded >> from the >> +tracking of maximum ID of processed streams. (markt) > > I hope that you understand better, > but from a quick look (not knowing the details) it looks like the > opposite of the above description, the streams are "included" into > tracking -- a call to setMaxProcessedStream(streamId); was added. > >> + >> >> > > Best regards, > Konstantin Kolinko > > - > To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org > For additional commands, e-mail: dev-h...@tomcat.apache.org > - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Re: svn commit: r1826111 - in /tomcat/trunk: conf/logging.properties java/org/apache/coyote/http2/Http2UpgradeHandler.java webapps/docs/changelog.xml
2018-03-07 17:37 GMT+03:00: > Author: markt > Date: Wed Mar 7 14:37:52 2018 > New Revision: 1826111 > > URL: http://svn.apache.org/viewvc?rev=1826111=rev > Log: > Address intermittent test failure (hopefully) in TestHttp2Section_6_8. > > Modified: > tomcat/trunk/conf/logging.properties > tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java > tomcat/trunk/webapps/docs/changelog.xml > > Modified: tomcat/trunk/conf/logging.properties > URL: > http://svn.apache.org/viewvc/tomcat/trunk/conf/logging.properties?rev=1826111=1826110=1826111=diff > == > --- tomcat/trunk/conf/logging.properties (original) > +++ tomcat/trunk/conf/logging.properties Wed Mar 7 14:37:52 2018 > @@ -68,7 +68,7 @@ org.apache.catalina.core.ContainerBase.[ > #org.apache.jasper.compiler.TldLocationsCache.level = FINE > > # To see debug messages for HTTP/2 handling, uncomment the following line: > -#org.apache.coyote.http2.level = FINE > +org.apache.coyote.http2.level = FINE > > # To see debug messages for WebSocket handling, uncomment the following line: > #org.apache.tomcat.websocket.level = FINE I am sure that you did not want to commit the above. > Modified: tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java > URL: > http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java?rev=1826111=1826110=1826111=diff > == > --- tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java > (original) > +++ tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java Wed > Mar 7 14:37:52 2018 > @@ -1299,11 +1299,13 @@ class Http2UpgradeHandler extends Abstra > > @Override > public void headersEnd(int streamId) throws ConnectionException { > -setMaxProcessedStream(streamId); > Stream stream = getStream(streamId, > connectionState.get().isNewStreamAllowed()); > -if (stream != null && stream.isActive()) { > -if (stream.receivedEndOfHeaders()) { > -processStreamOnContainerThread(stream); > +if (stream != null) { > +setMaxProcessedStream(streamId); > +if (stream.isActive()) { > +if (stream.receivedEndOfHeaders()) { > +processStreamOnContainerThread(stream); > +} > } > } > } > > Modified: tomcat/trunk/webapps/docs/changelog.xml > URL: > http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1826111=1826110=1826111=diff > == > --- tomcat/trunk/webapps/docs/changelog.xml (original) > +++ tomcat/trunk/webapps/docs/changelog.xml Wed Mar 7 14:37:52 2018 > @@ -59,6 +59,10 @@ > > Avoid potential loop in APR/Native poller. (markt) > > + > +Ensure streams that are received but not processed are excluded from > the > +tracking of maximum ID of processed streams. (markt) I hope that you understand better, but from a quick look (not knowing the details) it looks like the opposite of the above description, the streams are "included" into tracking -- a call to setMaxProcessedStream(streamId); was added. > + > > Best regards, Konstantin Kolinko - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
svn commit: r1826111 - in /tomcat/trunk: conf/logging.properties java/org/apache/coyote/http2/Http2UpgradeHandler.java webapps/docs/changelog.xml
Author: markt Date: Wed Mar 7 14:37:52 2018 New Revision: 1826111 URL: http://svn.apache.org/viewvc?rev=1826111=rev Log: Address intermittent test failure (hopefully) in TestHttp2Section_6_8. Modified: tomcat/trunk/conf/logging.properties tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java tomcat/trunk/webapps/docs/changelog.xml Modified: tomcat/trunk/conf/logging.properties URL: http://svn.apache.org/viewvc/tomcat/trunk/conf/logging.properties?rev=1826111=1826110=1826111=diff == --- tomcat/trunk/conf/logging.properties (original) +++ tomcat/trunk/conf/logging.properties Wed Mar 7 14:37:52 2018 @@ -68,7 +68,7 @@ org.apache.catalina.core.ContainerBase.[ #org.apache.jasper.compiler.TldLocationsCache.level = FINE # To see debug messages for HTTP/2 handling, uncomment the following line: -#org.apache.coyote.http2.level = FINE +org.apache.coyote.http2.level = FINE # To see debug messages for WebSocket handling, uncomment the following line: #org.apache.tomcat.websocket.level = FINE Modified: tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java?rev=1826111=1826110=1826111=diff == --- tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java (original) +++ tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java Wed Mar 7 14:37:52 2018 @@ -1299,11 +1299,13 @@ class Http2UpgradeHandler extends Abstra @Override public void headersEnd(int streamId) throws ConnectionException { -setMaxProcessedStream(streamId); Stream stream = getStream(streamId, connectionState.get().isNewStreamAllowed()); -if (stream != null && stream.isActive()) { -if (stream.receivedEndOfHeaders()) { -processStreamOnContainerThread(stream); +if (stream != null) { +setMaxProcessedStream(streamId); +if (stream.isActive()) { +if (stream.receivedEndOfHeaders()) { +processStreamOnContainerThread(stream); +} } } } Modified: tomcat/trunk/webapps/docs/changelog.xml URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1826111=1826110=1826111=diff == --- tomcat/trunk/webapps/docs/changelog.xml (original) +++ tomcat/trunk/webapps/docs/changelog.xml Wed Mar 7 14:37:52 2018 @@ -59,6 +59,10 @@ Avoid potential loop in APR/Native poller. (markt) + +Ensure streams that are received but not processed are excluded from the +tracking of maximum ID of processed streams. (markt) + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org