[JBoss JIRA] Created: (JBMETA-77) DefaultJndiBindingPolicy must be Seralizable
by Andrew Lee Rubinger (JIRA)
DefaultJndiBindingPolicy must be Seralizable
---------------------------------------------
Key: JBMETA-77
URL: https://jira.jboss.org/jira/browse/JBMETA-77
Project: JBoss Metadata
Issue Type: Task
Security Level: Public (Everyone can see)
Reporter: Andrew Lee Rubinger
Assignee: Andrew Lee Rubinger
Because Decorators may associate a DefaultJndiBindingPolicy with JBoss*BeanMetadata objects, and these objects must be Serializable, the DefaultJndiBindingPolicy implementations themselves must also be Serializable.
Else errors, as exhibited by Seam AS TestSuite org.jboss.test.deployers.seam.test.SeamNumberguessExampleUnitTestCase.testExample
java.io.NotSerializableException: org.jboss.metadata.ejb.jboss.jndipolicy.plugins.BasicJndiBindingPolicy
...
at org.jboss.deployers.plugins.attachments.AttachmentsImpl.writeExternal(AttachmentsImpl.java:145)
Targeted for Beta30.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 2 months
[JBoss JIRA] Created: (HIBERNATE-102) DirectoryProviderFactory configuration problem
by Rafal Glowacz (JIRA)
DirectoryProviderFactory configuration problem
----------------------------------------------
Key: HIBERNATE-102
URL: https://jira.jboss.org/jira/browse/HIBERNATE-102
Project: Hibernate
Issue Type: Bug
Reporter: Rafal Glowacz
Assignee: Steve Ebersole
Priority: Critical
Because IdHashShardingStrategy fails after 1.7m ID is reached I decided to use my own version of strategy. I set up property common.hibernate.search.blogentry.sharding_strategy = com. ... .IdShardingStrategy and didn't work for me. As I checked problem exist in DirectoryProviderFactory and the way how properties are created ( new Properties( defaultProperties ) ). This constructor and the way how default properties are stored in this Object this both together doesn't work well. Problem exist:
//define sharding strategy
IndexShardingStrategy shardingStrategy;
Properties shardingProperties = new Properties();
for (Map.Entry entry : indexProps[0].entrySet()) {
if ( ( (String) entry.getKey() ).startsWith( SHARDING_STRATEGY ) ) {
shardingProperties.put( entry.getKey(), entry.getValue() );
}
}
String shardingStrategyName = shardingProperties.getProperty( SHARDING_STRATEGY );
if ( shardingStrategyName == null) {
if ( indexProps.length == 1 ) {
shardingStrategy = new NotShardedStrategy();
}
else {
shardingStrategy = new IdHashShardingStrategy();
}
}
else {
in this loop "for (Map.Entry entry : indexProps[0].entrySet()) {" this set is just empty so custom properties for sharding have been ignored.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 2 months
[JBoss JIRA] Created: (HIBERNATE-101) IdHashShardingStrategy fails after 1.7M id is generated
by Rafal Glowacz (JIRA)
IdHashShardingStrategy fails after 1.7M id is generated
-------------------------------------------------------
Key: HIBERNATE-101
URL: https://jira.jboss.org/jira/browse/HIBERNATE-101
Project: Hibernate
Issue Type: Bug
Reporter: Rafal Glowacz
Assignee: Steve Ebersole
public class IdShardingStrategyTest extends TestCase
{
private IdHashShardingStrategy _defaultIdStrategy;
private IdShardingStrategy _idStrategy;
protected void setUp() throws Exception {
_idStrategy = new IdShardingStrategy();
_idStrategy.initialize(null, createDirectoryProviders());
_defaultIdStrategy = new IdHashShardingStrategy();
_defaultIdStrategy.initialize(null, createDirectoryProviders());
}
private DirectoryProvider[] createDirectoryProviders() {
return new DirectoryProvider[]{new MockDirectoryProvider(),
new MockDirectoryProvider(),
new MockDirectoryProvider()};
}
public void testIdSharding() {
long id = 1;
long limit = 1000 * 1000000 * 1000000L;
try {
while (id < limit) {
generateForAddition(_idStrategy, id);
generateForDeletion(_idStrategy, id);
id += 129653153;
}
} catch (Exception e) {
fail("Couldn't get directory for id " + id);
}
}
public void testIdHashSharding() {
long id = 1;
long limit = 1000 * 1000000 * 1000000L;
try {
while (id < limit) {
generateForAddition(_defaultIdStrategy, id);
generateForDeletion(_defaultIdStrategy, id);
id += 129653153;
}
fail("Should fail with ArrayIndexOutOfBoundsException for long id");
} catch (Exception e) {
}
}
private MockDirectoryProvider generateForAddition(IndexShardingStrategy strategy, long id) {
return (MockDirectoryProvider) strategy.getDirectoryProviderForAddition(null, id, id + "", null);
}
private DirectoryProvider[] generateForDeletion(IndexShardingStrategy strategy, long id) {
return strategy.getDirectoryProvidersForDeletion(null, id, id + "");
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 2 months
[JBoss JIRA] Created: (JGRP-797) Document all protocol properties
by Vladimir Blagojevic (JIRA)
Document all protocol properties
---------------------------------
Key: JGRP-797
URL: http://jira.jboss.com/jira/browse/JGRP-797
Project: JGroups
Issue Type: Task
Reporter: Vladimir Blagojevic
Assigned To: Vladimir Blagojevic
Currently we maintain description of protocol properties in code and documentation separately. We should leverage new Property annotation and describe all properties directly in our code by using description attribute of Property annotation. After we complete describing all properties we should make a Java utility program that traverses all JGroups protocols, extracts properties for all protocols along with the specified description, and finally converts it to a suitable output format.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 2 months
[JBoss JIRA] Created: (JBWEB-96) ATTRIBUTE level replication granularity not replicating session metadata
by Mike Van Noord (JIRA)
ATTRIBUTE level replication granularity not replicating session metadata
------------------------------------------------------------------------
Key: JBWEB-96
URL: http://jira.jboss.com/jira/browse/JBWEB-96
Project: JBoss Web
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Tomcat Module
Environment: JBoss AS 4.2.1, replication-trigger: SET, replication-granularity: ATTRIBUTE
Reporter: Mike Van Noord
Assigned To: Mladen Turk
When setting attributes in a session and using ATTRIBUTE-level replication granularity and the SET replication trigger, I expect certain session meta-data to be replicated along with the attribute being set (namely last access time). This isn't happening.
Since ClusteredSession only flags the metadata as dirty on access when the ACCESS replication trigger is used, the sessionMetadataDirty flag will only be set at the beginning and end of a session's lifecycle thereby preventing any metadata replication between those times.
It seems appropriate to flag the metadata as dirty when using ATTRIBUTE-level replication whenever the replication trigger specifies, in this case when an attribute is set.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 2 months