Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #74 from dvjyothsna/master
Browse files Browse the repository at this point in the history
Update Performance Analyzer to support ElasticSearch version 7.3.2
  • Loading branch information
palashhedau authored Nov 6, 2019
2 parents 31f2955 + 76cce41 commit 275abd1
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
buildscript {

ext {
es_version = System.getProperty("es.version", "7.2.0")
es_version = System.getProperty("es.version", "7.3.2")
}
// This isn't applying from repositories.gradle so repeating it here
repositories {
Expand All @@ -35,7 +35,7 @@ plugins {
}

ext {
opendistroVersion = '1.2.0'
opendistroVersion = '1.3.0'
isSnapshot = "true" == System.getProperty("build.snapshot", "true")
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 4 additions & 0 deletions release-notes
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Version 1.3.0 (Version compatible with elasticsearch 7.3.2)
## New Features
This is the release of the Open Distro Performance Analyzer that will work with elasticsearch 7.3.2

Backporting fixes from master
## Version 1.2.0 (Version compatible with elasticsearch 7.2.0)
## New Features
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,22 @@

package com.amazon.opendistro.elasticsearch.performanceanalyzer.http_action.whoami;

import org.elasticsearch.action.Action;
import org.elasticsearch.action.ActionType;
import org.elasticsearch.common.io.stream.Writeable;

public class WhoAmIAction extends Action<WhoAmIResponse> {
public class WhoAmIAction extends ActionType<WhoAmIResponse> {

public static final WhoAmIAction INSTANCE = new WhoAmIAction();
public static final String NAME = "cluster:admin/performanceanalyzer/whoami";
public static final Writeable.Reader<WhoAmIResponse> responseReader = null;

protected WhoAmIAction() {
super(NAME);
private WhoAmIAction() {
super(NAME, responseReader);
}

@Override
public WhoAmIResponse newResponse() {
return new WhoAmIResponse();
public Writeable.Reader<WhoAmIResponse> getResponseReader() {
return responseReader;
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
import org.elasticsearch.Version;
import org.elasticsearch.cluster.ClusterState;
import org.elasticsearch.cluster.node.DiscoveryNode;
import org.elasticsearch.cluster.node.DiscoveryNode.Role;
import org.elasticsearch.cluster.node.DiscoveryNodeRole;
import org.elasticsearch.cluster.node.DiscoveryNodes;
import org.elasticsearch.cluster.service.ClusterService;
import org.elasticsearch.common.transport.TransportAddress;
Expand Down Expand Up @@ -466,12 +466,12 @@ private static List<DiscoveryNode> buildNumNodes(String nodeId1, String nodeId2,

final DiscoveryNode node1 = new DiscoveryNode("s7gDCVn", nodeId1,
new TransportAddress(address1, 9200), emptyMap(),
singleton(Role.MASTER), Version.CURRENT);
singleton(DiscoveryNodeRole.MASTER_ROLE), Version.CURRENT);
nodesList.add(node1);

final DiscoveryNode node2 = new DiscoveryNode("Zn1QcSU", nodeId2,
new TransportAddress(address2, 9200), emptyMap(),
singleton(Role.DATA), Version.CURRENT);
singleton(DiscoveryNodeRole.DATA_ROLE), Version.CURRENT);
nodesList.add(node2);

return nodesList;
Expand Down

0 comments on commit 275abd1

Please sign in to comment.