Ticket #29 (defect)

Opened 5 years ago

Referencing object_ in log messages causes errors

Status: new

Reported by: krys Assigned to: krys
Priority: major Milestone: Release 0.3
Component: TurboLucene Version: 0.2.2
Keywords: Cc:

This discussion raised the issue.

The problem is that the transaction is completing before the log message is output, creating a reference to an invalid model object under SQLObject.

This is a threading issue. I don't like threads. :(

The solution is to not reference object_ in the other threads. Move Document creation and loggins out to the outter API functions so that the indexer and searcher threads only deal with Document, Hits, etc. objects.