Skip to content

Instantly share code, notes, and snippets.

@s1monw
s1monw / example.txt
Created July 13, 2017 19:50
get all indices that have a doc older than 3 days
GET /logs-*/_search
{
"size" : 0,
"terminate_after" : 1,
"query" : {
"range: {
"timestamp" : {
"lt" : "now-3d"
}
}
1> at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:367) ~[randomizedtesting-runner-2.4.0.jar:?]
1> at java.lang.Thread.run(Thread.java:745) ~[?:1.8.0_92-internal]
1> Caused by: java.lang.NullPointerException
1> at java.lang.String.length(String.java:623) ~[?:1.8.0_92-internal]
1> at org.elasticsearch.common.regex.Regex.simpleMatch(Regex.java:116) ~[main/:?] --> https://github.com/elastic/elasticsearch/blob/master/core/src/main/java/org/elasticsearch/common/regex/Regex.java#L116
1> at org.elasticsearch.common.regex.Regex.simpleMatch(Regex.java:133) ~[main/:?]
1> at org.elasticsearch.transport.TransportService.shouldTraceAction(TransportService.java:664) ~[main/:?]
1> at org.elasticsearch.transport.TransportService.access$900(TransportService.java:73) ~[main/:?]
1> at org.elasticsearch.transport.TransportService$Adapter.onRequestSent(TransportService.java:740) ~[main/:?]
1> at org.elasticsearch.transport.TcpTransport.lambda$sendReq
diff --git a/elasticsearch/x-pack/marvel/src/main/java/org/elasticsearch/marvel/shield/MarvelShieldIntegration.java b/elasticsearch/x-pack/marvel/src/main/java/org/elasticsearch/marvel/shield/MarvelShieldIntegration.java
index 88135c2..1fa81fd 100644
--- a/elasticsearch/x-pack/marvel/src/main/java/org/elasticsearch/marvel/shield/MarvelShieldIntegration.java
+++ b/elasticsearch/x-pack/marvel/src/main/java/org/elasticsearch/marvel/shield/MarvelShieldIntegration.java
@@ -18,6 +18,7 @@
package org.elasticsearch.marvel.shield;
import org.elasticsearch.ElasticsearchException;
+import org.elasticsearch.client.Client;
import org.elasticsearch.common.inject.Inject;
diff --git a/src/main/java/org/elasticsearch/index/translog/fs/FsChannelReader.java b/src/main/java/org/elasticsearch/index/translog/fs/FsChannelReader.java
index 295a4e8..eeb85cd 100644
--- a/src/main/java/org/elasticsearch/index/translog/fs/FsChannelReader.java
+++ b/src/main/java/org/elasticsearch/index/translog/fs/FsChannelReader.java
@@ -68,19 +68,7 @@ public abstract class FsChannelReader implements Closeable, Comparable<FsChannel
return read(buffer, location.translogLocation, location.size);
}
- /**
- * reads an operation from the given position and changes to point at the start of the next
{
"took" : 74525,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"hits" : {
"total" : 6,
Fixed Issues / Open Pull Requests
=================================
Not much to do here except for twiddling thumbs and maybe poking people
to review / merge those. Those are basically "fixed" issues.
8652, 5668 (BUG), 8742 (pull; mine)
starter script ignores errors when running Elasticsearch in background
AND
Invalid values in elasticsearch.yml causes start to silently fail
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
#start 0.20 and index
_0.fdt _0.frq _0.tii segments.gen
_0.fdx _0.nrm _0.tis segments_2
_0.fnm _0.prx _checksums-1409045670501
#stop 0.20
#start 1.3.1 on the same data dir
# Licensed to Elasticsearch under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0