Skip to content

Commit

Permalink
[GOBBLIN-1851] Unit tests for MysqlMultiActiveLeaseArbiter with Singl…
Browse files Browse the repository at this point in the history
…e Participant (#3715)

* Unit tests and corresponding fixes for 6 lease acquisition cases

* remove logs

* address review comments with small changes

* clean up naming, logs, java doc

* close resultSets

* check if test passes on github

* fix unit test

* insert or update constants into table correctly

* rename prop

* address comments

---------

Co-authored-by: Urmi Mustafi <[email protected]>
Co-authored-by: Urmi Mustafi <[email protected]>
  • Loading branch information
3 people authored Jul 18, 2023
1 parent 2c2ffac commit ca48bcd
Show file tree
Hide file tree
Showing 5 changed files with 413 additions and 138 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public class ConfigurationKeys {
public static final String MYSQL_LEASE_ARBITER_PREFIX = "MysqlMultiActiveLeaseArbiter";
public static final String MULTI_ACTIVE_SCHEDULER_CONSTANTS_DB_TABLE_KEY = MYSQL_LEASE_ARBITER_PREFIX + ".constantsTable";
public static final String DEFAULT_MULTI_ACTIVE_SCHEDULER_CONSTANTS_DB_TABLE = "gobblin_multi_active_scheduler_constants_store";
public static final String SCHEDULER_LEASE_DETERMINATION_STORE_DB_TABLE_KEY = MYSQL_LEASE_ARBITER_PREFIX + ".schedulerLeaseArbiterTable";
public static final String SCHEDULER_LEASE_DETERMINATION_STORE_DB_TABLE_KEY = MYSQL_LEASE_ARBITER_PREFIX + ".schedulerLeaseArbiter.store.db.table";
public static final String DEFAULT_SCHEDULER_LEASE_DETERMINATION_STORE_DB_TABLE = "gobblin_scheduler_lease_determination_store";
public static final String SCHEDULER_EVENT_TO_REVISIT_TIMESTAMP_MILLIS_KEY = "eventToRevisitTimestampMillis";
public static final String SCHEDULER_EVENT_TO_TRIGGER_TIMESTAMP_MILLIS_KEY = "triggerEventTimestampMillis";
Expand Down
Loading

0 comments on commit ca48bcd

Please sign in to comment.