-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix v3 repo migration when store config is present, but empty (#3542)
For some reason, `config.yaml` file in staging and demo stack have `JobStore` and `ExecutorStore` entries, but with empty paths, and look like: ``` ... Compute: ExecutionStore: Type: BoltDB Path: "" ... Requester: JobStore: Type: BoltDB Path: "" ... ``` The v2 -> v3 migrator will skip migrating if the store configs are not empty. This PR fixes the migrator by checking if the path is empty instead of if the entry is empty
- Loading branch information
Showing
11 changed files
with
83 additions
and
3 deletions.
There are no files selected for viewing
Binary file added
BIN
+128 KB
...stdata/v2_empty_path/QmUBgU7xHKK44RuTHgrvnJfoSdZJS4fddT197iyTF5qjEV-compute/executions.db
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...stdata/v2_empty_path/QmUBgU7xHKK44RuTHgrvnJfoSdZJS4fddT197iyTF5qjEV-compute/jobStats.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"JobsCompleted":0} |
Binary file added
BIN
+128 KB
...s/testdata/v2_empty_path/QmUBgU7xHKK44RuTHgrvnJfoSdZJS4fddT197iyTF5qjEV-requester/jobs.db
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
node: | ||
compute: | ||
executionstore: | ||
Type: BoltDB | ||
Path: "" | ||
requester: | ||
jobstore: | ||
Type: BoltDB | ||
Path: "" |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
C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ZyoWAeyMTnwKBgQDfjUJLMuw4pEzeqKq+qHn4XVsDcQrufi0ctLDwSZLB6rMGlY8dv3klLnQpUVtr6WhGNiRKdyyqvuYSOCX1tp51X641vrrxuYANA2zx4qJ+uWOQHL3b0l9IRLR+wMnJfJYpKJaJ0WUGAUIpTcGr2REWemUkQ4W++IXPY59ZnjO1gQKBgHFGyh8GmkQ4go5o6nWTcXWGkjkt8v5aU2gxEgYrwxaH6Y/fEliw7I0b+ZBhinLYTBajzRdb6mSYfSRnpiUaX12e0pe0eHu3ByuM+i9qpPV1EGq04Sq4E+cy1Ajc17zJK4/uRosvsy7km9XcPabnTmBz12sm3s6PplOofLgsin0dAoGBAPGOkZWmogiJYSumviovygIyw5vzVhWOiCiqXZNzDzT6O5pnFn8zTviYiIGFj0iGcdvQgZ2CevU4txjQ5PMPBkUeai/4vV7kIntXKDzSrsI3W4VuMqoSz7G0tGZwMVHLLCtYx3zKF3nejfTmbCeOTWIcyUFC7VSNlTiB9D/S8GsZ |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"Version":2} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIIEowIBAAKCAQEAz6o3HJWR4HKaXbREab3Poq4FPYwnQCjESFP9WvLMBOuLqt8C | ||
zqLCIWSm+DHABRTM9TQcDFxSK6jcw8Zgwu5rRRi4NVX1j5sE2/0ry0rWZF5xAFV+ | ||
KXzILLZDJ6gyaOew/AcKDUuCcHN6xLpqdVQn6h704bstlzFM40/q4BRc5R7Cngxa | ||
QPwRMxy32T09xO2N2bzr4lvPHQ7uJ8usW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ClDQKBgCsySR624W5n9dfxGJINF3HoLqOC8tXJDel9tr/F | ||
htBTPTiILPiUkJrI16w1KhP5AReDZ0cvsZJYqqZ42pp1/0e7XwgF5mloRjxmrzZo | ||
cBXyHA6bc/vvn6yCauD2pkDkZQcVMoXNjb0uLuNbQ0/HagiwtxM4Husa58d4CLIE | ||
jf4RAoGBAIKjUuj1d+nUnU5xeQ2W1GY/es5dBtcpO5s7rssHPXpDnHLbiIPTkdeY | ||
10ttnPEryOBLismjgna1fRCc+xLdZa22tWfDV9UxwgeF1cPrIbtxwI1B0SdQ9Xck | ||
bzLOD+ng7VMq9hKasr/+XF1NvDEmht0QNTHS4MDT2rL0aOCBQ69X | ||
-----END RSA PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters