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
Import Process
Fedora Ingest Service
Commits
b58ad288
Commit
b58ad288
authored
Oct 02, 2020
by
Thomas Bernhart
Browse files
MEMO-740: Set max.poll.interval.ms to 3600000 (1 hour)
parent
a080c816
Pipeline
#15126
passed with stages
in 5 minutes and 9 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/main/kotlin/Service.kt
View file @
b58ad288
...
...
@@ -33,6 +33,7 @@ class Service(fileName: String = "app.yml") : Closeable {
companion
object
{
const
val
FEDORA_PROPERTIES_PREFIX
=
"fedora"
const
val
CONSUMER_MAX_POLL_RECORDS
=
"10"
const
val
CONSUMER_MAX_INTERVAL_MS
=
"3600000"
// 3600000ms = 1h
fun
createFedoraClient
(
appSettings
:
Properties
):
FedoraClient
{
return
FedoraClientImpl
.
builder
()
...
...
@@ -61,6 +62,7 @@ class Service(fileName: String = "app.yml") : Closeable {
init
{
val
consumerSettings
=
settings
.
kafkaConsumerSettings
consumerSettings
.
setProperty
(
"max.poll.records"
,
CONSUMER_MAX_POLL_RECORDS
)
consumerSettings
.
setProperty
(
"max.poll.interval.ms"
,
CONSUMER_MAX_INTERVAL_MS
)
consumer
=
Consumer
(
consumerSettings
,
settings
.
inputTopic
)
producer
=
Producer
(
settings
.
kafkaProducerSettings
,
settings
.
outputTopic
)
log
.
info
(
"Connected to Kafka."
)
...
...
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