Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Deletion Components
Import Process Delete
Commits
6b811c95
Unverified
Commit
6b811c95
authored
Feb 24, 2021
by
Sebastian Schüpbach
Browse files
log length of hashset
Signed-off-by:
Sebastian Schüpbach
<
sebastian.schuepbach@unibas.ch
>
parent
7d06da03
Pipeline
#22258
passed with stages
in 5 minutes and 38 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/scala/ch/memobase/App.scala
View file @
6b811c95
/*
* Import Process Delete
* Copyright (C) 202
0
Memoriav
* Copyright (C) 202
1
Memoriav
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
...
...
@@ -54,7 +54,13 @@ object App
}
}
.
filter
(
record
=>
filters
.
forall
(
f
=>
f
(
record
)))
.
foldLeft
(
HashSet
[
DeleteMessage
]())((
agg
,
record
)
=>
agg
+
DeleteMessage
(
record
,
sessionId
))
.
foldLeft
(
HashSet
[
DeleteMessage
]())((
agg
,
record
)
=>
{
logger
.
info
(
s
"Length of delete messages: ${agg.size}"
)
agg
+
DeleteMessage
(
record
,
sessionId
)
}
)
)
.
foreach
(
id
=>
sendDelete
(
id
,
dryRun
))
}
catch
{
...
...
src/main/scala/ch/memobase/AppSettings.scala
View file @
6b811c95
...
...
@@ -44,7 +44,7 @@ trait AppSettings {
props
.
put
(
"group.id"
,
clientId
)
props
.
put
(
"allow.auto.create.topics"
,
"false"
)
props
.
put
(
"auto.offset.reset"
,
"earliest"
)
props
.
put
(
"max.poll.records"
,
"500"
)
props
.
put
(
"max.poll.records"
,
"500
0
"
)
props
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment