-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replacing Coordinator Queue With Deque & Fixing Usage Of toMap Util (#…
…950) * Replacing Coordinator Queue With Deque & Fixing Usage Of toMap Util * Modify the public facing api for putting events in the front of the Coordinator Queue * Better Handling Duplicate putFirst Requests & Added couple more tests * Fixing Flaky Test --------- Co-authored-by: Shrinand Thakkar <[email protected]>
- Loading branch information
1 parent
886c4c6
commit d19a2c2
Showing
9 changed files
with
263 additions
and
25 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...erver-restli/src/test/java/com/linkedin/datastream/server/CallableCoordinatorForTest.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,20 @@ | ||
/** | ||
* Copyright 2023 LinkedIn Corporation. All rights reserved. | ||
* Licensed under the BSD 2-Clause License. See the LICENSE file in the project root for license information. | ||
* See the NOTICE file in the project root for additional information regarding copyright ownership. | ||
*/ | ||
package com.linkedin.datastream.server; | ||
|
||
import java.util.Properties; | ||
|
||
/** | ||
* Callable Coordinator is used for overriding coordinator behaviors for tests | ||
*/ | ||
public interface CallableCoordinatorForTest { | ||
/** | ||
* invoking constructor of coordinator with params, | ||
* - datastreamCache to maintain all the datastreams in the cluster. | ||
* - properties to use while creating coordinator. | ||
* */ | ||
Coordinator invoke(CachedDatastreamReader cachedDatastreamReader, Properties properties); | ||
} |
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
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
Oops, something went wrong.