Integrate Dataone-indexer to Dataone CN

Open
#189 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
java

Research direction

Start with d1-index-generator and its Hazelcast systemmetadata-map event path, then review how DataONE CN components such as harvest, replication, and log aggregation depend on Metacat 2.19.0. Define a workaround that enables dataone-indexer without broad CN changes and prevents database-loading events from overwhelming index generation.

Written by the indexing model from the issue text.

Description

While dataone-indexer is working well with Metacat 3 series, Dataone CN has some difficulties to take the high scalability of Dataone-indexer. The reason is we can't upgrade the Metacat instance from 2.19.0 to 3 series without big changes on other CN components such as harvest, replication and log aggregation services. Metacat 3 series removed the hazelcast component, on which those CN components rely.

We need to figure a work-around to use dataone-indexer without big changes on other CN components.

Also we need to keep in mind that there is a design flaw in our current d1-index-generator. D1-index-generator is listening to events of the hazecast systemmetadata map. Besides the events triggered by the systemmetadata db table rows' creation/updating, which we really care about, uploading data from the database systemmetadata table to the hazelcast map will trigger the events as well. Those events generated by loading data are not needed at all since there is no data change. And the worse scenario is hazelcast keeps constantly loading data from the db table to the hazelcast map. Those events generated by the constant loading overwhelm the index generator and it will take a long time to generate the real needed index tasks (e.g., a new object creation). So we need a new mechanism to trigger the index generator.

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.