Package org.elasticsearch.index.shard

Examples of org.elasticsearch.index.shard.IndexShardException


        ESCountTask.CountResponseListener listener = new ESCountTask.CountResponseListener(result);


        ShardOperationFailedException[] shardFailures = new ShardOperationFailedException[] {
                new DefaultShardOperationFailedException("dummy", 2,
                        new IndexShardException(new ShardId("dummy", 2), "dummy message"))
        };
        CountResponse countResponse = mock(CountResponse.class);
        when(countResponse.getFailedShards()).thenReturn(1);
        when(countResponse.getShardFailures()).thenReturn(shardFailures);
View Full Code Here


                        logger.debug("index fixed, wrote new segments file \"{}\"", status.segmentsFileName);
                    }
                } else {
                    // only throw a failure if we are not going to fix the index
                    if (throwException) {
                        throw new IndexShardException(shardId, "index check failure");
                    }
                }
            } else {
                if (logger.isDebugEnabled()) {
                    logger.debug("check index [success]\n{}", new String(os.bytes().toBytes(), Charsets.UTF_8));
View Full Code Here

TOP

Related Classes of org.elasticsearch.index.shard.IndexShardException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.