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
nomad-lab
nomad-lab-base
Commits
cdb90493
Commit
cdb90493
authored
Nov 08, 2018
by
Mohamed, Fawzi Roberto (fawzi)
Browse files
increase time to process batch add for elastic search
parent
0d4dd157
Changes
1
Hide whitespace changes
Inline
Side-by-side
archive/archive-tool/src/main/scala/eu/nomad_lab/archive/ElasticSearchData.scala
View file @
cdb90493
...
...
@@ -129,7 +129,7 @@ object ElasticSearchData extends StrictLogging {
previousBatch
:
Option
[
Future
[
BulkResponse
]]
)
:
Option
[
Future
[
BulkResponse
]]
=
{
if
(
previousBatch
.
nonEmpty
)
{
val
response
=
Await
.
result
(
previousBatch
.
get
,
10.
seconds
)
val
response
=
Await
.
result
(
previousBatch
.
get
,
10
0
.
seconds
)
if
(
response
.
hasFailures
)
{
response
.
failures
.
foreach
(
x
=>
logger
.
warn
(
" failed insertion: "
+
x
))
}
...
...
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