clp
clp copied to clipboard
webui: Add `<CompressionJobTable/>`.
References
Compression job statuses are currently only displayed to users by the compress.sh
script.
Description
This PR adds a Compression Job Table in Ingestion View and the corresponding backend handling. The changes should also improve User Experience for tracking S3 job submissions, which is not yet ported to this repository.
Validation performed
- Built and started
clp-package
. - Visited WebUI address in a browser. Observed the page to load without errors, and "Space Savings" showed
0.00%
because no file has been compressed. - Kept the browser opened. In the console, ran command
./compress.sh ~/samples/hive-24hr/
to compress sample logs. Observed the compression job table showed up as the compression job quickly finished and the compression stats showed up as well. - Submitted an invalid job by command
./compress.sh non-existent-path
. Observed the job record showed up in the table and hovering on the failure icon show a brief reason for the failure: - Launched 10 compression jobs at the same time (i.e., ./compress.sh ~/samples/hive-24hr/ &`). Observed the jobs to show up with either a PENDING or RUNNING status.
- Eventually, all those jobs finished successfully.