[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-512) Associate with two open session issue and subsequent hang
Marc Schipperheyn (JIRA)
noreply at atlassian.com
Wed Apr 21 20:28:34 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=36613#action_36613 ]
Marc Schipperheyn commented on HSEARCH-512:
-------------------------------------------
Sorry, no test available. No eagerly loaded collections either All collections are lazy. I could share the entire class on email if you like.
I do have an eagerly loaded entity which is also part of a lazily loaded collection:
@ManyToOne(optional = true, cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@JoinColumn(name = "FK_PhotoID", nullable = true, updatable = true)
@IndexedEmbedded
public Photo getPhoto() {
return photo;
}
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumn(name="FK_OfferId",referencedColumnName="offerId")
@BatchSize(size=5)
public Set<Photo> getPhotos() {
return photos;
}
@ManyToOne(optional = false, cascade = CascadeType.MERGE, fetch = FetchType.EAGER)
@JoinColumn(name = "FK_CategoryID", nullable = true, updatable = true)
@IndexedEmbedded(depth = 2)
public Category getCategory() {
return category;
}
@OneToOne(optional = false, cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@JoinColumn(name = "FK_VisibilityID",nullable=false,updatable=false)
@IndexedEmbedded
public Visibility getVisibility() {
return visibility;
}
> Associate with two open session issue and subsequent hang
> ---------------------------------------------------------
>
> Key: HSEARCH-512
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-512
> Project: Hibernate Search
> Issue Type: Bug
> Components: engine
> Affects Versions: 3.2.0.CR1
> Environment: Hibernate 3.5.1, MySQL 5.1.44, Lucene 2.9.2
> Reporter: Marc Schipperheyn
> Assignee: Sanne Grinovero
> Fix For: 3.2.0
>
>
> I've noticed the issue described in http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-490. It seems to happen sometimes, especially when threads pause for a debugging break and I don't immediately continue them.
> But I also notice that then the MassIndexer just doesn't finish and hangs with all the threads still in running state. Nothing seems to be happening or completing. I think that HSEARCH-490 has prevented the threads from completing at this point.
> The system/website then becomes completely unresponsive.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list