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

Add generic thread-safe map implementation #116

Merged
merged 3 commits into from
Sep 16, 2024
Merged

Conversation

lovromazgon
Copy link
Member

Description

Generic simple thread-safe map implementation.

Quick checks:

  • I have followed the Code Guidelines.
  • There is no other pull request for the same update/change.
  • I have written unit tests.
  • I have made sure that the PR is of reasonable size and can be easily reviewed.

raulb added a commit to ConduitIO/conduit that referenced this pull request Sep 13, 2024
Uses ConduitIO/conduit-commons#116

Co-Authored-By: Lovro Mažgon <lovro.mazgon@gmail.com>
lovromazgon added a commit to ConduitIO/conduit that referenced this pull request Sep 13, 2024
* wip

* update method calls

* use configuration

* wip refactor

* wip

* move stream

* add lifecycleService to runtime

* fix

* fix imports

* no errors on lifecycle service

* fix wait

* update status through its method

* it compiles

* update interfaces

* more test fixes

* update mocks

* add mocks and update tests

* fix lint

* remove GetInstances

* delete key instead

Co-Authored-By: Lovro Mažgon <lovro.mazgon@gmail.com>

* ignore test files

* delete test files

* ensures runningPipeline is locked

* fix not initialized map

Co-Authored-By: Lovro Mažgon <lovro.mazgon@gmail.com>

* fix tests

* add back the needed test file

* update comment

* add comment

* locks while retrieving the pipeline

* update comment

* unsure about the need for this

* remove backoff from pipeline service

* update method name on lifecycle service

- changes run to init

* lock running pipelines and optimize stopAll

* remove redundant call to update status

* fix typo

* pr feedback

* uses csync Map

Uses ConduitIO/conduit-commons#116

Co-Authored-By: Lovro Mažgon <lovro.mazgon@gmail.com>

* go mod tidy

* update conduit-commons

* go mod tidy

---------

Co-authored-by: Lovro Mažgon <lovro.mazgon@gmail.com>
@lovromazgon lovromazgon merged commit 045c136 into main Sep 16, 2024
3 checks passed
@lovromazgon lovromazgon deleted the lovro/csync-map branch September 16, 2024 16:43
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

Successfully merging this pull request may close these issues.

3 participants