Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Fix scripts - #16

Open
Blackbaud-MattWalsh wants to merge 4 commits into
microsoft:developfrom
Blackbaud-MattWalsh:fix-scripts
Open

Blackbaud-MattWalsh wants to merge 4 commits into
microsoft:developfrom
Blackbaud-MattWalsh:fix-scripts

Conversation

@Blackbaud-MattWalsh

Copy link
Copy Markdown

there is a bug that causes upgrading the shard map schema to fail because the sql scripts needed aren't discovered correctly.

when com.microsoft.azure.elasticdb.shard.utils.SqlUtils#parseUpgradeScripts(boolean) is called, it iterates through the JAR file and retrieves files under the script folder. when the files are processed, JarEntry.getName() returns the "full path + filename", and the check for "name.startsWith(prefix)" fails.

to fix this, we can simply strip off all paths before the file name and process it correctly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants