debezium / debezium/dbz

Get rid of dummy value used to parse mongodb CollectionId [DBZ-5575]

Open
#684 0 comments 0 reactions 0 assignees View on GitHub
component/mongodb-connector migrated-from-jira type/task
Dominant language
HTML
Stars
6
Forks
8
Avg merge
2d 19h
Merged PRs (30d)
1

Description

Migrated from [DBZ-5575](https://issues.redhat.com/browse/DBZ-5575)

In MongoDbIncrementalSnapshotChangeEventSource constructor and other places the parsing of the CollectionId is using a dummy value "UNUSED":

this.signallingCollectionId = connectorConfig.getSignalingDataCollectionId() == null ? null
: CollectionId.parse("UNUSED", connectorConfig.getSignalingDataCollectionId());

Find a way to get rid of the dummy value

Contributor guide

Open the contributing guide

Research direction

Locate MongoDbIncrementalSnapshotChangeEventSource and the other places where CollectionId.parse is called with "UNUSED". Read how CollectionId and connectorConfig.getSignalingDataCollectionId() represent collection identifiers, then verify that the dummy value is no longer required and relevant MongoDB snapshot behavior still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
mongodb
Domain
databases
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.