Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cu-dev] TCK test ContextServiceDefinitionServlet.testContextualFunction randomly failing
  • From: Nathan Rauh <nathan.rauh@xxxxxxxxxx>
  • Date: Thu, 7 Jul 2022 18:18:19 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=us.ibm.com; dmarc=pass action=none header.from=us.ibm.com; dkim=pass header.d=us.ibm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1apGEhDldPwtGmd0eUhO4g6hGnm+4vAx1QuD5UyD7LU=; b=iHOEshyEMzkN/eXz9Cr+2LDBnWFxtdtKIF4wePYKuvHk6vTkSmL8g3PJaLUVEPpcUvMsN5orOhuBCIgVZ3dmLQuXz9wx2iVYSr8MFGCwNT4etkRH2TVWEMf+kC63qDfObZVdHkVdbRoTa/72Z7ppNTV80eONDBXHU5NvfespDU44901qE0CsYy9KIgTuDwUt87zOIMvpy2jlFKcn7inTM2aL8JWHa5uIdVP+57Ws3P4BFjf81ip3pTJpvHWxLZpHdA1OTggJ9thnfQ4JxYokC0j+J84ctjqy1oVOZCpMA7ABSTOmP0+iNrLRxXWnEkHGxllozUpdJZXauWLK+OHNYg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dElDr8rj4ovw38BD+yNMdCzHiKYAP7b6wKRasSPhZMJuXOR8wQMKlbYwNKkyk/iW3nZpRvA3fMpBD5nWIlypBR+WPfy6GnQGFo1bYgCksLcboREMu6KLx8FlMW2DeokRxMTnsAchw/lc1U6idXb9jtee6ihGK+Lf47ilz3mPqElhnG+MwLQ4ysCw1cqNhm5uNSU9vzfxzdv8kNfNxXmrNFIeKi+6097NxQsRaLYz8PZdXpRlvQ9MXfOoRX0BW95Lv8cspbLVSrGBmCvcfvxaZIcuBBwna1rsstkU7FYHih3fXAoPDAT2q6fQPLhrtIIDPpG1XebeoFk52nK363gyxA==
  • Delivered-to: cu-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/cu-dev/>
  • List-help: <mailto:cu-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/cu-dev>, <mailto:cu-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/cu-dev>, <mailto:cu-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHYkiTAkrVMF92uVkmVD7xt4FrbWq1zNXVb
  • Thread-topic: [EXTERNAL] [cu-dev] TCK test ContextServiceDefinitionServlet.testContextualFunction randomly failing

Petr,

 

Yes, you should challenge that test.  Its assertions on results[0] and results[1] are both invalid because treating those two UNCHANGED context types as though they were CLEARED.

 

 

From: cu-dev <cu-dev-bounces@xxxxxxxxxxx> on behalf of Petr Aubrecht <aubrecht@xxxxxxxxxxxx>
Date: Thursday, July 7, 2022 at 12:12 PM
To: cu developer discussions <cu-dev@xxxxxxxxxxx>
Subject: [EXTERNAL] [cu-dev] TCK test ContextServiceDefinitionServlet.testContextualFunction randomly failing

Hi,

I have a question for the developers of Glassfish-based servers and Nathan.

It seems, that there is one more test to challenge --
ContextServiceDefinitionServlet.testContextualFunction.

This test expects, that a thread with unchanged APPLICATION will have
JNDI disconnected from the app, e.g. java:module lookup will fail.

I already created a challenge for a similar issue:
https://github.com/jakartaee/concurrency/issues/224 . The test would work
best with APPLICATION in cleared.


Glassfish implements invocations in InvocationManagerImpl and stores
them in InheritableThreadLocal<InvocationArray<ComponentInvocation>>
frames. This means, that any thread created from an http thread will
have a context.


The current problem is, that RANDOMLY, some ForkJoinPool thread are
created from the http threads. Then the context is available and the
test fails.

Should I create another challenge?

Petr

_______________________________________________
cu-dev mailing list
cu-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cu-dev


Back to the top