Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web console: improve compaction status display #13523

Merged
merged 3 commits into from Dec 8, 2022

Conversation

vogievetsky
Copy link
Contributor

This PR is attempting to resolve a UX confusion.

The issue: sometimes the datasources tab shows a datasource to be "Fully compacted" when in fact there are segments that should be compacted. I believe that the cause of this (or at least one of the causes) is that there are segments in the "skipOffsetFromLatest" interval and the user does not realize that they are getting skipped (by design).

Solution, if there are skipped segments, instead of rendering the status as "Fully compacted" render it as "Fully compacted (except the last P1D of data, 24 segments skipped)` where P1D is the skipOffsetFromLatest setting and 24 is the number of segments skipped. This simply makes the label more truthful and potentially less confusing.

Before:

image

After:

image

After with expanded column:

image

The column width of the Compaction column has been expanded slightly to accommodate as tantalizing (except...

I believe this change is a no-op since all these properties would be zero or non-zero together but it does not hurt to be more robust:

image

Copy link
Contributor

@maytasm maytasm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I agree on making this clearer by indicating that there are segments skipped. One thing to keep in mind, in addition to the segments skipped by the skipOffsetFromLatest, segments can be skipped if the size is greater than inputSegmentSizeBytes. I believe the default of inputSegmentSizeBytes was recently change to MAX Long but someone could still have it set (to less than MAX long) and use to skip segments. If this is the case, then segmentCountSkipped would include both the segments skipped by inputSegmentSizeBytes and skipOffsetFromLatest.

@vogievetsky
Copy link
Contributor Author

Thank you for the comment @maytasm !

I added an extra state:

image

Also this bonus callout:

image

@maytasm
Copy link
Contributor

maytasm commented Dec 7, 2022

I think if the config for inputSegmentSizeBytes is unset/default/Max Long then we can skip mentioning about inputSegmentSizeBytes in the text (like what you originally had). This is because if it is unset or default it is set to Max Long and no segment can be larger than Max Long.

@vogievetsky
Copy link
Contributor Author

@vogievetsky vogievetsky merged commit d85fb8c into apache:master Dec 8, 2022
@vogievetsky vogievetsky deleted the better-compaction-ux branch December 8, 2022 05:04
vogievetsky added a commit to vogievetsky/druid that referenced this pull request Dec 8, 2022
* improve compaction status display

* even more accurate

* fix snapshot
@vogievetsky vogievetsky added this to the 25.0 milestone Dec 8, 2022
kfaraz pushed a commit that referenced this pull request Dec 10, 2022
* Web console: add arrayOfDoublesSketch and other small fixes (#13486)
* add padding and keywords
* add arrayOfDoubles
* Update docs/development/extensions-core/datasketches-tuple.md
Co-authored-by: Charles Smith <techdocsmith@gmail.com>
* Update docs/development/extensions-core/datasketches-tuple.md
Co-authored-by: Charles Smith <techdocsmith@gmail.com>
* Update docs/development/extensions-core/datasketches-tuple.md
Co-authored-by: Charles Smith <techdocsmith@gmail.com>
* Update docs/development/extensions-core/datasketches-tuple.md
Co-authored-by: Charles Smith <techdocsmith@gmail.com>
* Update docs/development/extensions-core/datasketches-tuple.md
Co-authored-by: Charles Smith <techdocsmith@gmail.com>
* partiton int
* fix docs
Co-authored-by: Charles Smith <techdocsmith@gmail.com>
* Web console: improve compaction status display (#13523)
* improve compaction status display
* even more accurate
* fix snapshot
* MSQ: Improve TooManyBuckets error message, improve error docs. (#13525)
1) Edited the TooManyBuckets error message to mention PARTITIONED BY
   instead of segmentGranularity.
2) Added error-code-specific anchors in the docs.
3) Add information to various error codes in the docs about common
   causes and solutions.
* update error anchors (#13527)
* update snapshot
Co-authored-by: Charles Smith <techdocsmith@gmail.com>
Co-authored-by: Gian Merlino <gianmerlino@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants