Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bulk request logging changes #1

Merged
merged 3 commits into from Oct 23, 2014
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Removed unnecessary changes

  • Loading branch information
srimaruti srimaruti
srimaruti authored and srimaruti committed Oct 23, 2014
commit 42a598243184def6a41e2a69c33878ec5efe8eac
@@ -112,14 +112,6 @@ public int compareTo(BulkStats o) {
return o.latencyMillis.compareTo(latencyMillis);
}
}

class SlowShard {
public int shardId;
public int bulkId;
public String nodeId;
public String index;
}


@Inject
public TransportBulkAction(Settings settings, ThreadPool threadPool, TransportService transportService, ClusterService clusterService,
@@ -404,9 +396,6 @@ public void onFailure(Throwable e) {
private void finishHim() {
long bulkTimeMillis = System.currentTimeMillis() - startTime;
final long bulkId = System.nanoTime();
String slowestIndex = "";
int slowestShardId = 0;
long slowTimeMillis = 0L;
try {
DiscoveryNodes dn = clusterService.state().getNodes();
Collection<BulkStats> statsCollection = shardStats.values();
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.