Rare NullReferenceExceptions when adding stuff to index

Hello,

This is really hard to reproduce, so our wish is: Please take a look at the callstack and try to find out whether you know what the problematic method is and why something can be null there.

Repro:

  • Manually extract lots of files
  • In one step, call index.Add() and put all the ExtractedData into the index

Consequences when this happens:

  • Nothing will be added to the index

We have been getting the exception once, with this event:

index.Events.ErrorOccurred += (_, e) => Console.WriteLine($"Error (index): {e.Message}");

The call stack method calls look quite unique…

grafik.png (66.0 KB)

@jamsharp
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SEARCHNET-3416

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@jamsharp

We are unable to replicate the issue on our end. But based on our findings, if this error occurred only once, it is likely that the temporary file was not created in the file system due to a one-time issue. We have improved the code and the fix will be available in next release of the API. You’ll be notified as the release is available to download.