[jboss-jira] [JBoss JIRA] (HIBERNATE-102) DirectoryProviderFactory configuration problem

Steve Ebersole (JIRA) issues at jboss.org
Thu Nov 19 10:16:08 EST 2015


    [ https://issues.jboss.org/browse/HIBERNATE-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13130884#comment-13130884 ] 

Steve Ebersole commented on HIBERNATE-102:
------------------------------------------

This is not the correct project to report Hibernate issues under. This Jira project is for reporting issues in the integration between Hibernate and WildFly. To report issues in Hibernate, please use https://hibernate.atlassian.net. Thanks.

> DirectoryProviderFactory configuration problem
> ----------------------------------------------
>
>                 Key: HIBERNATE-102
>                 URL: https://issues.jboss.org/browse/HIBERNATE-102
>             Project: Hibernate Integration
>          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 was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list