[JBoss JIRA] (JGRP-1660) LockService hangs during concurrent access (tryLock/tryLock(timeout)/lock/unlock)
by Manuel Dominguez Sarmiento (JIRA)
[ https://issues.jboss.org/browse/JGRP-1660?page=com.atlassian.jira.plugin.... ]
Manuel Dominguez Sarmiento commented on JGRP-1660:
--------------------------------------------------
I can confirm that we've randomly seen this behaviour in our production servers, and the diagnosis was similar: threads hanged as a consequence of tryLock() usage.
We found out from code inspection that we could avoid this by using tryLock(timeout) which was sufficient for our needs. Unfortunately we forgot to file the bug report then, so we cannot give any more details (we lost track of which JGroups version we were using, configuration, etc.)
At the time we thought it might have been related to JGRP-1610 which apparently was solved in 3.3. However at the time we could not confirm this, since we had resorted to tryLock(timeout) by then.
> LockService hangs during concurrent access (tryLock/tryLock(timeout)/lock/unlock)
> ---------------------------------------------------------------------------------
>
> Key: JGRP-1660
> URL: https://issues.jboss.org/browse/JGRP-1660
> Project: JGroups
> Issue Type: Bug
> Affects Versions: 3.2.4, 3.3.3
> Environment: Intel(R) Core(TM) i5-2310 CPU @ 2.90GHz
> 6GB RAM
> Windows 7
> JRE 1.6.31
> Reporter: Architect SoftWeb.ISD
> Assignee: Bela Ban
> Fix For: 3.3.4, 3.4
>
> Attachments: lockservice_stability_testcase.jar
>
>
> We have rather simple test that starts some amount of threads which in turn simultaneously obtain lock through LockService#getLock then perform lock and unlock.
> Each thread works during some time.
> After couple of seconds of work some threads just hang up in Locking$ClientLock(Object).wait() called indirectly from LockService$LockImpl.tryLock().
> Here is stack trace:
> Thread [Thread-ClientImitation-1] (Suspended)
> Object.wait(long) line: not available [native method]
> Locking$ClientLock(Object).wait() line: 485
> Locking$ClientLock.acquireTryLock(long, boolean) line: 1010
> Locking$ClientLock.tryLock() line: 896
> CENTRAL_LOCK(Locking).down(Event) line: 152
> ProtocolStack.down(Event) line: 1025
> JChannel.down(Event) line: 718
> LockService$LockImpl.tryLock() line: 102
> LockServiceStabilityTestCase$ClientImitation.run() line: 167
> Thread.run() line: 662
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 12 months
[JBoss JIRA] (WFLY-1722) Validation of method params is not internationalized
by Juergen Zimmermann (JIRA)
[ https://issues.jboss.org/browse/WFLY-1722?page=com.atlassian.jira.plugin.... ]
Juergen Zimmermann updated WFLY-1722:
-------------------------------------
Description:
When a method of a JAX-RS resource class is invoked due to e.g. a GET or a POST request, then the method's parameters are validated via bean validation.
However, the language of violation messages is always the default Locale, and not calculated using the header parameter accept-language, e.g. accept-language=de.
http://beanvalidation.org/1.1/spec contains an example for a class LocaleSpecificMessageInterpolator so that validation happens with a dedicated locale.
> Validation of method params is not internationalized
> ----------------------------------------------------
>
> Key: WFLY-1722
> URL: https://issues.jboss.org/browse/WFLY-1722
> Project: WildFly
> Issue Type: Bug
> Components: REST
> Affects Versions: 8.0.0.Alpha3
> Reporter: Juergen Zimmermann
> Assignee: Stuart Douglas
>
> When a method of a JAX-RS resource class is invoked due to e.g. a GET or a POST request, then the method's parameters are validated via bean validation.
> However, the language of violation messages is always the default Locale, and not calculated using the header parameter accept-language, e.g. accept-language=de.
> http://beanvalidation.org/1.1/spec contains an example for a class LocaleSpecificMessageInterpolator so that validation happens with a dedicated locale.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 12 months
[JBoss JIRA] (WFLY-1722) Validation of method params is not internationalized
by Juergen Zimmermann (JIRA)
Juergen Zimmermann created WFLY-1722:
----------------------------------------
Summary: Validation of method params is not internationalized
Key: WFLY-1722
URL: https://issues.jboss.org/browse/WFLY-1722
Project: WildFly
Issue Type: Bug
Components: REST
Affects Versions: 8.0.0.Alpha3
Environment: When a method of a JAX-RS resource class is invoked due to e.g. a GET or a POST request, then the method's parameters are validated via bean validation.
However, the language of violation messages is always the default Locale, and not calculated using the header parameter accept-language, e.g. accept-language=de.
http://beanvalidation.org/1.1/spec contains an example for a class LocaleSpecificMessageInterpolator so that validation happens with a dedicated locale.
Reporter: Juergen Zimmermann
Assignee: Stuart Douglas
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 12 months