Package org.elasticsearch

Examples of org.elasticsearch.ElasticSearchIllegalStateException


                    Mapper.Builder builder = context.root().findTemplateBuilder(context, currentFieldName, null);
                    if (builder != null) {
                        mapper = builder.build(builderContext);
                    } else {
                        // TODO how do we identify dynamically that its a binary value?
                        throw new ElasticsearchIllegalStateException("Can't handle serializing a dynamic type with content token [" + token + "] and field name [" + currentFieldName + "]");
                    }
                }

                if (context.isWithinNewMapper()) {
                    mapper.parse(context);
View Full Code Here


                }
                final Map<O, O> entries = new HashMap<>();
                Entry<O> leader = toReduce.get(0);
                for (Entry<O> entry : toReduce) {
                    if (!leader.text.equals(entry.text)) {
                        throw new ElasticsearchIllegalStateException("Can't merge suggest entries, this might be caused by suggest calls " +
                                "across multiple indices with different analysis chains. Suggest entries have different text actual [" +
                                entry.text + "] expected [" + leader.text +"]");
                    }
                    assert leader.offset == entry.offset;
                    assert leader.length == entry.length;
View Full Code Here

                    }
                } else {
                    logger.debug("failed shard {} not found in routingNodes, ignoring it", failedShard);
                }
            } else {
                throw new ElasticsearchIllegalStateException("illegal state for a failed shard, relocating node id is set, but state does not match: " + failedShard);
            }
        } else {
            // the shard is not relocating, its either started, or initializing, just cancel it and move on...
            RoutingNodes.RoutingNodeIterator node = routingNodes.routingNodeIter(failedShard.currentNodeId());
            if (node != null) {
View Full Code Here

    public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
        if (r instanceof AbstractRunnable) {
            if (((AbstractRunnable) r).isForceExecution()) {
                BlockingQueue<Runnable> queue = executor.getQueue();
                if (!(queue instanceof SizeBlockingQueue)) {
                    throw new ElasticsearchIllegalStateException("forced execution, but expected a size queue");
                }
                try {
                    ((SizeBlockingQueue) queue).forcePut(r);
                } catch (InterruptedException e) {
                    Thread.currentThread().interrupt();
                    throw new ElasticsearchIllegalStateException("forced execution, but got interrupted", e);
                }
                return;
            }
        }
        rejected.inc();
View Full Code Here

            }
        } else if (token == XContentParser.Token.VALUE_STRING) {
            String fieldName = parser.text();
            context.fieldDataFields().add(new FieldDataFieldsContext.FieldDataField(fieldName));
        else {
            throw new ElasticsearchIllegalStateException("Expected either a VALUE_STRING or an START_ARRAY but got " + token);
        }
    }
View Full Code Here

        }
        if (localState == State.STARTED) {
            return false;
        }
        if (localState == State.CLOSED) {
            throw new ElasticsearchIllegalStateException("Can't move to started state when closed");
        }
        throw new ElasticsearchIllegalStateException("Can't move to started with unknown state");
    }
View Full Code Here

        }
        if (localState == State.STARTED) {
            return false;
        }
        if (localState == State.CLOSED) {
            throw new ElasticsearchIllegalStateException("Can't move to started state when closed");
        }
        throw new ElasticsearchIllegalStateException("Can't move to started with unknown state");
    }
View Full Code Here

        }
        if (localState == State.INITIALIZED || localState == State.STOPPED) {
            return false;
        }
        if (localState == State.CLOSED) {
            throw new ElasticsearchIllegalStateException("Can't move to started state when closed");
        }
        throw new ElasticsearchIllegalStateException("Can't move to started with unknown state");
    }
View Full Code Here

        }
        if (localState == State.INITIALIZED || localState == State.STOPPED) {
            return false;
        }
        if (localState == State.CLOSED) {
            throw new ElasticsearchIllegalStateException("Can't move to started state when closed");
        }
        throw new ElasticsearchIllegalStateException("Can't move to started with unknown state");
    }
View Full Code Here

        State localState = state;
        if (localState == State.CLOSED) {
            return false;
        }
        if (localState == State.STARTED) {
            throw new ElasticsearchIllegalStateException("Can't move to closed before moving to stopped mode");
        }
        return true;
    }
View Full Code Here

TOP

Related Classes of org.elasticsearch.ElasticSearchIllegalStateException

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.