-
Notifications
You must be signed in to change notification settings - Fork 809
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(persistence): Unify Jedis/Dynomite Repos (#2070)
Having separate Jedis vs. Dynomite execution repositories posed a number of problems around live migrations in a dual repository configuration. This was partially due to the Dynomite repository using a different scheme for key names, in order to utilize Dynomite hash sets, I.e. [pipeline:abc-123, pipeline:abc-123:stageIndex] turns into [{pipeline:abc-123}, {pipeline:abc-123}:stageIndex]. To support live migrations, we need to be able to find executions in either the current or previous store regardless of type or key names. This implements that logic, as well as the ability to generate key names based on the class type of each configured RedisClientDelegate. This should enable Redis <---> Dynomite migrations in either direction.
- Loading branch information
Showing
10 changed files
with
642 additions
and
842 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
7 changes: 7 additions & 0 deletions
7
.../java/com/netflix/spinnaker/orca/pipeline/persistence/UnsupportedRepositoryException.java
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,7 @@ | ||
package com.netflix.spinnaker.orca.pipeline.persistence; | ||
|
||
public class UnsupportedRepositoryException extends RuntimeException { | ||
public UnsupportedRepositoryException(String message) { super(message); } | ||
|
||
public UnsupportedRepositoryException(String message, Throwable cause) { super(message, cause); } | ||
} |
264 changes: 0 additions & 264 deletions
264
...com/netflix/spinnaker/orca/pipeline/persistence/dynomite/DynomiteExecutionRepository.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.