DataONE-indexer can handle the RabbitMQ messages with system metadata

Open
#357 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
java, python, rabbitmq

Research direction

Start at the RabbitMQ message-consumption entry point in dataone-indexer and review how the Python controller assembles system metadata. Trace the existing system-metadata lookup and Solr-document comparison; done means optional metadata is accepted, modifiedDate prevents older data overwriting newer data, and the production timeout path is avoided.

Written by the indexing model from the issue text.

Description

When we use a temporary cn python client (controller)/Dataone-indexer to replace d1-cn-index-generator/producer, it works well on cn-sandbox and cn-stage. However, we have an issue in the production cns - it frequently gets the timeout issue when dataone-indexer use the cn API call to get systemmetadata. We still haven't figured out the reason.

So I am thinking another approach - Dataone-indexer will use the system metadata directly (no need to read hashstore and send an API call to get system metadata) if the RabbitMQ messages have the system metadata. The system metadata part in the message is optional. We need to compare the modifiedDate field in the system metadata with the solr document before process it. So we can avoid the older one overwriting the newer one.

Our python client (controller) already has the db connection and it can assembly the system metadata easily.

Dominant language
Java
Stars
0
Forks
2
Avg merge
6d 6h
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DataONEorg/dataone-indexer

All issues in DataONEorg/dataone-indexer

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.