Skip to content

Instantly share code, notes, and snippets.

https://github.com/elastic/elasticsearch/pull/69153
./gradlew :qa:mixed-cluster:v6.8.15#mixedClusterTest -Dtests.method="test {p0=search/220_total_hits_object/*}" --info
HEAD / SLOW 785a17c687ce9980ed60542467433bea0f38486e
> Task :qa:mixed-cluster:v6.8.15#mixedClusterTest
docker image rm docker.elastic.co/elasticsearch/elasticsearch:8.0.0-SNAPSHOT
docker image rm docker.elastic.co/kibana/kibana:8.0.0-SNAPSHOT
curl -L -o docker-compose.yml https://gist.githubusercontent.com/jakelandis/f152f7f6ea7f994c7438e35dcff07113/raw/04a853f48d1fba853a097648fb2f6de688ed0c5e/docker-compose.yml && docker-compose up
Open up the dev Console in Kibana: http://localhost:5601/app/kibana#/dev_tools/console?_g=()
version: '3'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.0.0-SNAPSHOT
container_name: elasticsearch
environment:
- network.host=0.0.0.0
- discovery.type=single-node
- cluster.name=docker-cluster
- node.name=cluster1-node1
diff --git a/server/src/main/java/org/elasticsearch/action/bulk/TransportBulkAction.java b/server/src/main/java/org/elasticsearch/action/bulk/TransportBulkAction.java
index cfedb5777e7..dd5a8fe2968 100644
--- a/server/src/main/java/org/elasticsearch/action/bulk/TransportBulkAction.java
+++ b/server/src/main/java/org/elasticsearch/action/bulk/TransportBulkAction.java
@@ -97,7 +97,7 @@ import static java.util.Collections.emptyMap;
public class TransportBulkAction extends HandledTransportAction<BulkRequest, BulkResponse> {
private static final Logger logger = LogManager.getLogger(TransportBulkAction.class);
-
PUT _component_template/base
{
"template": {
"settings": {
"index": {
"number_of_shards": 1,
"number_of_replicas": 3
}
}
}
version: '3'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.8.0-SNAPSHOT
container_name: elasticsearch
environment:
- network.host=0.0.0.0
- discovery.type=single-node
- cluster.name=docker-cluster
- node.name=cluster1-node1
import java.util.Arrays;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.function.Consumer;
class Scratch {
//for loop with sync or async actions processed in order with a post work step
public static void main(String[] args) throws InterruptedException {
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"one": {
"type": "string"
},
"two": {
"type": "string"
},
[2019-05-13T09:07:53,843][WARN ][o.e.x.c.a.AutoFollowCoordinator] [hostname.was.here] failure occurred while fetching cluster state for auto follow pattern [follow-pattern-was-here]
org.elasticsearch.ElasticsearchStatusException: can not fetch remote cluster state as the license state of the remote cluster [remote-cluster-name-was-here] could not be determined
at org.elasticsearch.xpack.ccr.CcrLicenseChecker.clusterStateUnknownRemoteLicense(CcrLicenseChecker.java:442) ~[?:?]
at org.elasticsearch.xpack.ccr.CcrLicenseChecker.lambda$checkRemoteClusterLicenseAndFetchClusterState$5(CcrLicenseChecker.java:181) ~[?:?]
at org.elasticsearch.xpack.ccr.CcrLicenseChecker$1.onFailure(CcrLicenseChecker.java:232) ~[?:?]
at org.elasticsearch.license.RemoteClusterLicenseChecker$1.onFailure(RemoteClusterLicenseChecker.java:188) ~[?:?]
at org.elasticsearch.action.support.ContextPreservingActionListener.onFailure(ContextPreservingActionListener.java:50) ~[elasticsearch-6.7.1.jar:6.7.1]
at org.elasticsearch.action.ActionLis
./gradlew :x-pack:qa:smoke-test-watcher-with-security:integTestRunner -Dtests.seed=1FEC4B295D693CFE -Dtests.class=org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT -Dtests.method="testSearchInputWithInsufficientPrivileges" -Dtests.security.manager=true -Dtests.locale=hi-IN -Dtests.timezone=Asia/Sakhalin -Dcompiler.java=11 -Druntime.java=8
23:50:07 > Task :x-pack:qa:smoke-test-watcher-with-security:integTestCluster#wait
23:50:07 Task ':x-pack:qa:smoke-test-watcher-with-security:integTestCluster#wait' is not up-to-date because:
23:50:07 Task has not declared any outputs despite executing actions.
23:50:17 [ant:get] Getting: http://[::1]:60232/_cluster/health?wait_for_nodes=>=1&wait_for_status=yellow
23:50:17 [get] Getting: http://[::1]:60232/_cluster/health?wait_for_nodes=>=1&wait_for_status=yellow
23:50:17 [ant:get] To: /private/var/lib/jenkins/workspace/elastic+elasticsearch+master+multijob-darwin-compatibility/x-pack/qa/smoke-test-watcher-with-security/build/cluster/integTestCluster node0/