pombreda / cdpedia

Automatically exported from code.google.com/p/cdpedia
0 stars 0 forks source link

searcher hangs on repeated term search #140

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

add this method to the SearcherTestCase:

class SearcherTestCase(unittest.TestCase):
    # ....

    def test_hanging_bug(self):
        self.index.ready.set()

        id_ = self.searcher.start_search(['words'])
        results = self.searcher.get_results(id_)

        id_ = self.searcher.start_search(['words'])
        results = self.searcher.get_results(id_)

What is the expected output? 

Test should pass

What do you see instead?

Test blocks "forever"

This use case is very very common so it is a high priority issue.

Original issue reported on code.google.com by gringotu...@gmail.com on 25 Feb 2012 at 2:05

GoogleCodeExporter commented 9 years ago
The test could be simplified to:

    def test_hanging_bug(self):
        self.index.ready.set()

        id_ = self.searcher.start_search(['words'])
        results = self.searcher.get_results(id_)
        results = self.searcher.get_results(id_)

It seems a problem that arises only when there are no results to a search

Original comment by gringotu...@gmail.com on 25 Feb 2012 at 2:13

GoogleCodeExporter commented 9 years ago
Fixed in revno 425.

Original comment by facundob...@gmail.com on 15 Mar 2012 at 12:14