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

Fix TransportNodesListShardStoreMetaData for custom data paths #9101

Merged
merged 1 commit into from Dec 30, 2014

Conversation

dakrone
Copy link
Member

@dakrone dakrone commented Dec 30, 2014

Cleans up the testReusePeerRecovery test as well

The actual fix is in TransportNodesListShardStoreMetaData.java, which
needs to use nodeEnv.shardDataPaths instead of nodeEnv.shardPaths.

Due to the difficulty in tracking this down, I've added a lot of
additional logging. This also fixes a logging issue in GatewayAllocator

@@ -165,7 +165,7 @@ private StoreFilesMetaData listStoreMetaData(ShardId shardId) throws IOException
if (!storeType.contains("fs")) {
return new StoreFilesMetaData(false, shardId, ImmutableMap.<String, StoreFileMetaData>of());
}
Path[] shardLocations = nodeEnv.shardPaths(shardId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oooh tricky - I wonder how we can make this less error prone?

@s1monw
Copy link
Contributor

s1monw commented Dec 30, 2014

fix LGTM good catch!!

Cleans up the testReusePeerRecovery test as well

The actual fix is in TransportNodesListShardStoreMetaData.java, which
needs to use `nodeEnv.shardDataPaths` instead of `nodeEnv.shardPaths`.

Due to the difficulty in tracking this down, I've added a lot of
additional logging. This also fixes a logging issue in GatewayAllocator
@dakrone dakrone merged commit 31652a8 into elastic:master Dec 30, 2014
@clintongormley clintongormley added >test Issues or PRs that are addressing/adding tests and removed review labels Mar 19, 2015
@dakrone dakrone deleted the fix-recovery-reuse-test branch April 6, 2015 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>test Issues or PRs that are addressing/adding tests v1.5.0 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants