Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL commits jumbled when running two crawlers at the same time #9

Closed
hardreddata opened this issue Nov 4, 2020 · 2 comments
Closed

Comments

@hardreddata
Copy link

Hi,

I am using the filesystem crawler with SQL committer. It works great!

Today I tried running two crawlers at the same time.

consider crawl-one.variables which has an associated crawl-one.xml

path = \\storage\path_one 
workdir = ./crawl-one

And also the same for crawl-two

path = \\storage\path_two
workdir = ./crawl-two

These are configured to commit to different tables in the same database.

Oddly the database table for crawl-one contains results from crawl-two, and so forth.

The 32_Crawler.log within the working directories is pure

I tried naming the fscollector id and crawler id uniquely in each configuration file but still have a problem.

I am running the 2.9.1 Snapshot of the collector filesystem.

Thinking aloud, the committer-queue folder is perhaps common to both of my processes? I will try running two completely separate 2.9.1 snapshot folders. Regardless I thought worth mentioning this.

Norconex/committer-core#9 looks related.

Any advice is invited.

@essiembre
Copy link
Contributor

This issue happens when two committers point to the same directory used for queueing documents. You can avoid this issue by adding a distinct <queueDir>(optional path where to queue files)</queueDir> to each of your committers.

@hardreddata
Copy link
Author

That did it. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants