Skip to content
GitLab
Menu
Projects
Groups
Snippets
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
6411b2b5
Unverified
Commit
6411b2b5
authored
Feb 24, 2021
by
Sebastian Schüpbach
Browse files
more logs
parent
6b811c95
Pipeline
#22260
passed with stages
in 5 minutes and 13 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/scala/ch/memobase/App.scala
View file @
6411b2b5
...
...
@@ -39,7 +39,8 @@ object App
Stream
.
continually
(
poll
)
.
takeWhile
(
records
=>
records
.
nonEmpty
)
.
flatMap
(
records
=>
.
flatMap
(
records
=>
{
logger
.
info
(
"Processing records batch with size ${records.size}"
)
records
.
flatMap
{
record
=>
Report
(
record
)
match
{
...
...
@@ -55,12 +56,11 @@ object App
}
.
filter
(
record
=>
filters
.
forall
(
f
=>
f
(
record
)))
.
foldLeft
(
HashSet
[
DeleteMessage
]())((
agg
,
record
)
=>
{
logger
.
info
(
s
"
Length
of delete messages: ${agg.size}"
)
logger
.
info
(
s
"
Size
of delete messages: ${agg.size}"
)
agg
+
DeleteMessage
(
record
,
sessionId
)
}
)
}
)
.
foreach
(
id
=>
sendDelete
(
id
,
dryRun
))
}
catch
{
...
...
src/main/scala/ch/memobase/AppSettings.scala
View file @
6411b2b5
...
...
@@ -44,6 +44,7 @@ trait AppSettings {
props
.
put
(
"group.id"
,
clientId
)
props
.
put
(
"allow.auto.create.topics"
,
"false"
)
props
.
put
(
"auto.offset.reset"
,
"earliest"
)
props
.
put
(
"enable.auto.commit"
,
"false"
)
props
.
put
(
"max.poll.records"
,
"5000"
)
props
}
...
...
Write
Preview
Supports
Markdown
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