Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kafka-to-nexus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ecdc
ess-dmsc
kafka-to-nexus
Commits
eae78c5d
Commit
eae78c5d
authored
2 months ago
by
Jonas Petersson
Browse files
Options
Downloads
Patches
Plain Diff
add back the removal of the threads
parent
49ecd176
Loading
Loading
1 merge request
!895
add back the removal of the threads
Pipeline
#213164
passed
2 months ago
Stage: check
Stage: build
Stage: archive
Stage: domain
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Stream/Topic.cpp
+5
-5
5 additions, 5 deletions
src/Stream/Topic.cpp
with
5 additions
and
5 deletions
src/Stream/Topic.cpp
+
5
−
5
View file @
eae78c5d
...
...
@@ -176,11 +176,11 @@ void Topic::createStreams(
}
void
Topic
::
checkIfDone
()
{
auto
const
is_done
=
std
::
all_o
f
(
ConsumerThreads
.
begin
(),
ConsumerThreads
.
end
(),
[](
auto
const
&
thread
)
{
return
thread
->
has_finished
();
})
;
if
(
is_done
)
{
Logger
::
Info
(
"Topic {} has finished consuming."
,
TopicName
);
ConsumerThreads
.
erase
(
std
::
remove_i
f
(
ConsumerThreads
.
begin
(),
ConsumerThreads
.
end
(),
[](
auto
const
&
Elem
)
{
return
Elem
->
has_finished
();
})
,
ConsumerThreads
.
end
());
if
(
ConsumerThreads
.
empty
())
{
IsDone
.
store
(
true
);
}
std
::
this_thread
::
sleep_for
(
50ms
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment