-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fail gracefully if lock cannot be obtained (#90)
* Fix javadoc typo on response values * Attempt to read locks from cassandra table before inserting If the insert locks fails, there's still a chance the table will contain locks. This makes retrying the run difficult since the tables will have an abandoned lock that requires manually cleaning up. Attempt to read the locks at the desired consistency first. If it succeeds, ignore the result and continue trying to insert locks with existing success/failure logic. If the read locks fails, exit in a way that has not altered tables and can be gracefully retried. This will not handle all error cases, but helps in situations where (for example) consistency cannot be achieved temporarily - when nodes are returned to service the cqlmigrate can be reattempted automatically without requiring manual lock cleanup. See #87 * Reduce org.apache.http logging to info Test output seems too long to be useful, and logging headers for each request seems overkill in general test execution * Refactor the is-cluster-healthy check to separate method for clarity
- Loading branch information
1 parent
88cce09
commit bfe7de7
Showing
3 changed files
with
134 additions
and
16 deletions.
There are no files selected for viewing
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
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