This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, we have TransportState and TransportStateManager to track states used by transport layers. Now the state is not only used by the transport layer. Methods like getDetector are used by ModelManager etc. This PR renames the class to reflect the fact. This PR also modifies how we track whether a cold start is running or not. Previously, the caller had to manually set it on and off. And we have a code everywhere. Now, we return a Releasable object that can be called automatically. The current way is more concise and easier to avoid bugs. This PR also adds states to track last index throttling time as we face index rejections issues. Testing done: 1. will add unit tests. 2. end-to-end testing pass.
- Loading branch information
Showing
2 changed files
with
90 additions
and
48 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