perll has asked for the wisdom of the Perl Monks concerning the following question:
I am getting below error and script fails.$hashprimary_index = $es->scroll_helper( index => $primary_index, search_type => 'scan' ); while ($result_pi = $hashprimary_index->next) { #getting error on this + line #do something }
[Missing] ** [http://localhost:9200]-[404] Not Found, called from sub +Search::Elasticsearch::Scroll::next at script/merge_v1.2.pl line 392. + With vars: {'request' => {'serialize' => 'std','ignore' => [],'metho +d' => 'GET','body' => 'c2Nhbjs1OzM2OTE6d1lvWW9YTHZRbVNzZjR3RkdtR3FPZz +szNjkyOndZb1lvWEx2UW1Tc2Y0d0ZHbUdxT2c7MzY5Mzp3WW9Zb1hMdlFtU3NmNHdGR21 +HcU9nOzM2OTU6d1lvWW9YTHZRbVNzZjR3RkdtR3FPZzszNjk0OndZb1lvWEx2UW1Tc2Y0 +d0ZHbUdxT2c7MTt0b3RhbF9oaXRzOjI2MDs=','qs' => {'scroll' => '1m'},'pat +h' => '/_search/scroll','mime_type' => 'application/json'},'status_co +de' => 404,'body' => {'hits' => {'hits' => [],'total' => 260,'max_sco +re' => '0'},'_shards' => {'total' => 5,'failures' => [{'index' => und +ef,'reason' => {'reason' => 'No search context found for id [3691]',' +type' => 'search_context_missing_exception'},'shard' => -1},{'shard' +=> -1,'index' => undef,'reason' => {'reason' => 'No search context fo +und for id [3692]','type' => 'search_context_missing_exception'}},{'i +ndex' => undef,'reason' => {'reason' => 'No search context found for +id [3693]','type' => 'search_context_missing_exception'},'shard' => - +1},{'index' => undef,'reason' => {'reason' => 'No search context foun +d for id [3695]','type' => 'search_context_missing_exception'},'shard +' => -1},{'shard' => -1,'index' => undef,'reason' => {'reason' => 'No + search context found for id [3694]','type' => 'search_context_missin +g_exception'}}],'failed' => 5,'successful' => 0},'took' => 2,'_scroll +_id' => 'c2NhbjswOzE7dG90YWxfaGl0czoyNjA7','timed_out' => bless( do{\ +(my $o = 0)}, 'JSON::PP::Boolean' )}}
I am trying to capture the error and in log and move on with the next loop, but unable to capture it, Eval don't work.
Thanks,
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Capture Elasticsearch Scroll Error
by 1nickt (Canon) on Oct 17, 2016 at 14:18 UTC | |
by perll (Novice) on Oct 18, 2016 at 08:12 UTC | |
Re: Capture Elasticsearch Scroll Error
by Erez (Priest) on Oct 18, 2016 at 06:51 UTC | |
by perll (Novice) on Oct 18, 2016 at 08:19 UTC | |
Re: Capture Elasticsearch Scroll Error
by 1nickt (Canon) on Oct 18, 2016 at 20:50 UTC |