question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Concurrent document removals

See original GitHub issue

I am testing following scenario: 1- Add concurrently 10 documents 2- Check they are searchable 3- Remove them 4- Check they are not searchable anymore

I am having issues with step 4, where I get the following error:

 Uncaught TypeError: Cannot read property 'test' of undefined
      at node_modules\search-index-searcher\lib\ScoreTopScoringDocsTFIDF.js:34:55
      at Array.forEach (native)
      at node_modules\search-index-searcher\lib\ScoreTopScoringDocsTFIDF.js:33:41
      at dispatchError (node_modules\levelup\lib\util.js:25:35)
      at node_modules\levelup\lib\levelup.js:228:14

Do you know what could be the problem? I get no errors when I add 1 or 2 documents.

Thanks in advance for your help!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
maxime-helen-sbcommented, Jun 16, 2017

Sure! Here it is.

You’ll need to install mocha, should and fs-extra along latest search index iteration using yarn/npm in order to make it run.

0reactions
fergiemcdowallcommented, Jun 19, 2017

I can’t replicate the other issue. The test seems to work when you concurrently index, delete and (try to) search 1000 documents.

Is there something I am missing?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compile-time concurrent marking write barrier removal
Abstract: Garbage collectors incorporating concurrent marking to cope with large live data sets and stringent pause time constraints have become common in ...
Read more >
ConcurrentHashMap (Java Platform SE 8 ) - Oracle Help Center
A hash table supporting full concurrency of retrievals and high expected concurrency for updates. This class obeys the same functional specification as ...
Read more >
Filing Form I-765 with Other Forms - USCIS
Form I‑765 Eligibility Categories Category Description I‑765 may be concurre... (a)(3) Admitted as a refugee No (a)(4) Paroled as a refugee No (a)(5) Granted asylum under...
Read more >
Concurrent Filing of I-140 Petition and I-485 Application
Yes. If you are in removal proceedings either before an immigration judge or the Board of Immigration Appeals, and are filing an I-140...
Read more >
MA46208 - OSP-UNPRED CONCURRENT DISK REMOVAL FROM ...
OSP-UNPRED CONCURRENT DISK REMOVAL FROM ASP1 STUCK ON "REMOVING" ... By furnishing this document, IBM grants no licenses to any related patents or ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found