forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce a basic web interface (pingcap#199)
* restore,checkpoints: move checkpoints into its own package This allows both the "restore" package to import the "web" package, and allow the "web" package to use "checkpoints", without leading to circular dependency. * verification: implemented json.Marshaler for KVChecksum * *: expose the current import progress to HTTP interface * common: added "Pauser" synchronization primitive * lightning: allows status address to reliably use port 0 for testing * config: ensure AllIDs() return a deterministic order * lightning,restore: support pausing, moving and deleting tasks through HTTP Also fixed some goroutine leaks and crashes after canceling. * common: fixed the bug where checksum is not cancelable * config: added configlist.{MoveToFront, MoveToBack} * web,lightning: added a web interface * web: explain the web interface * web: added OpenAPI (Swagger) spec of the HTTP API * common: avoid double-close a channel The channel may be double-closed given this sequence: 0. [B] p.Pause() 1. [A] p.Wait(ctx), run until the select 2. [B] p.Resume(), run until the for loop 3. [C] cancel the ctx 4. [A] continue from select, and close the channel 5. [B] continue the for loop, using the old copy of waiters, it will close the channel again, causing double-close error. We just avoid closing the waiter when ctx expired. * common: added a test to check for contended pause/resume flip * common: fixed a potential race condition * verification: change JSON field of checksum from cksum to checksum * web: document the OpenAPI def and why we don't support webpack-dev-server Fixed a potential typing error (see TypeStrong/atom-typescript#1053). * config: prevents task ID conflict which may happen with a coarse clock * restore: prevent encodeLoop panicking if deliverResult is closed? * checkpoints,lightning: address comments
- Loading branch information
Showing
60 changed files
with
9,382 additions
and
257 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,7 @@ test_*/ | |
*.ezdraw | ||
vendor/ | ||
tools/bin/ | ||
|
||
# for the web interface | ||
web/node_modules/ | ||
web/dist/ |
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.