ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • elasticsearch - failed to delete index
    프로그래밍/검색 2015. 7. 23. 22:06
    반응형




    엘라스틱검색을 하면서 전체 인덱스를 아래와 같이 삭제하였는데 

    이상하게 head plugin에는 일부 인덱스들이 남아있다. 



    curl -XDELETE localhost:9200/_all

    {"acknowledged":true}



    로그를 확인해보니 아래와 같이 30초 타임아웃에 걸려서 인덱스 삭제를 실패했다는 메세지가 있다. 



    [2015-07-23 19:59:15,769][DEBUG][action.admin.indices.delete] [Illyana Rasputin] [2014-10-31] failed to delete index

    org.elasticsearch.cluster.metadata.ProcessClusterEventTimeoutException: failed to process cluster event (delete-index [2014-10-31]) within 30s

    at org.elasticsearch.cluster.service.InternalClusterService$2$1.run(InternalClusterService.java:278)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)





    검색해보니 timeout 시간을 늘리면 된다고 한다. 

    다만 인덱스를 삭제하는데 3초 이상이 걸리는것은 클러스터가 오버로드를 보여주는 것이라 주의가 필요할 것 같다. 



    I know this is a late reply, but in case anyone else sees this:


    Curator timed out its connection after waiting for 30 seconds.  You can increase the value with --timeout should something like this happen to you.


    Truthfully, though, a delete operation that takes longer than even 3 seconds is indicative of an overloaded cluster.



    이번엔 설정도 변경 안 하고 그냥 한번더 delete 명령어를 실행하니 남아있는 인덱스들도 깨끗이 사라졌다. 

    같은 문제가 반복되면 최적화 문제를 생각해봐야겠다. 


    그리고 삭제가 다 안되었는데도 삭제 성공 메세지가 나오는 것은 문제인 것 같아 확인해보니

    이미 등록되어 오픈되어 있는 이슈인 듯하다. 



    진행중 이슈: https://github.com/elastic/elasticsearch/issues/7295


    참조: http://elasticsearch-users.115913.n3.nabble.com/Failed-to-delete-index-using-curator-td4059905.html





    728x90
    반응형
Designed by Tistory.