Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

add local cluster-ui dependencies #73

Merged
merged 1 commit into from
May 24, 2021

Conversation

koorosh
Copy link
Contributor

@koorosh koorosh commented May 13, 2021

No description provided.

@koorosh koorosh force-pushed the koorosh/add-local-cluster-ui-deps branch from bc5f2e1 to 5c740a0 Compare May 13, 2021 11:27
@koorosh koorosh force-pushed the koorosh/add-local-cluster-ui-deps branch from 5c740a0 to f6140d6 Compare May 17, 2021 09:22
@koorosh koorosh force-pushed the koorosh/add-local-cluster-ui-deps branch from 649e4dc to a99b1dc Compare May 20, 2021 08:26
@koorosh koorosh merged commit 64c1eec into master May 24, 2021
craig bot pushed a commit to cockroachdb/cockroach that referenced this pull request May 31, 2021
65126: ui: cluster-ui integration  r=koorosh a=koorosh

Note: Most of the commits are transferred "as is" from "cockroachdb/ui" repository and only two
last commits (be2cf6f and 7391346) include changes related to actual integration of package and adjusting
build tools.

Initially db-console referenced to `cluster-ui` package as an external package that
is hosted in another repository and required to update version of this package
every time new changes are made.

Now, when `cluster-ui` package is extracted from `cockroachdb/ui` repository and
moved in this repo (under `pkg/ui/cluster-ui`), it is possible to reference to
this package as a linked dependency and immediately observe all changes.

To do this following changes were made:
- db-console references to cluster-ui as a linked dependency and doesn't rely
on specific version
- `cluster-ui` package relies on local version of crdb-protobufjs-client package
instead of specific version
- Make commands related to db-console are extended to take into account nested
`cluster-ui` package. It runs tests, linting and watch commands for both packages.

One notable workaround has to mentioned... yarn installation for db-console
fails during first run because it cannot properly consume symlinked `cluster-ui`
dependency and only with second attempt it passes without issues (this is known
issue in yarn project).

Depends on: cockroachdb/yarn-vendored#73


65140: ui: rework data handling for the job details page r=dhartunian,nihalpednekar a=oeph

Rework the data fetching for the job details page in the admin ui in order to
prevent cases, where the jo details page was stuck showing a loading indicator.

This was caused by the combined data handling of the job table and the details,
leading to loading issues if the job was not listed in the table and therefore
could not be shown in the detail page. (see #64281 for reproduction steps)

The job details page now uses a dedicated api endpoint to fetch the job details
for the given job_id.

Release note: None

Fixes #64281

65609: kvserver: remove replica GC heuristic for quiesced followers r=tbg a=erikgrinaker

In #65062 we added a condition to the replica GC queue that quiescent
followers with a single unavailable voter would be considered suspect.
This was added to try to detect followers who were partitioned away from
the Raft group during its own removal from the range. However, this case
has a very high false positive rate, and on second thought it is probably
higher than it is worth.

There is already a secondary condition that considers followers who have
lost touch with their leader suspect, which would be somewhat sufficient
in this case, and with a far lower false positive rate. Even though this
heuristic is vulnerable to race conditions, it seems a better fit
considering that in the worst case the replica will always be GCed
within 12 hours anyway. We have also since moved range-level metrics
to the leaseholder, which reduces the impact of these stale replicas.

This patch therefore removes the quiescent replica condition, and
reduces `ReplicaGCQueueSuspectCheckInterval` from 5 to 3 seconds since
we now expect far fewer false positives.

Touches #65202.

Release note: None

/cc @cockroachdb/kv 

65883: docs: update Life of a Query r=tbg a=erikgrinaker

[Rendered](https://github.com/erikgrinaker/cockroach/blob/life-of-a-query/docs/tech-notes/life_of_a_query.md)

This is a first pass at updating the Life of a Query document. It
primarily focuses on updating links and descriptions to the current code
base, and rewriting sections that no longer apply. It has not added
new sections on significant new concepts that have since been
introduced (except where necessary).

Parts of the SQL sections have not been updated -- in particular
"Notable planNodes" -- as the SQL execution engine has undergone
significant changes recently that are better described by members of the
SQL team. Instead, a note has been left informing the reader about
this.

A second pass is planned for later, which will add missing concepts,
expand on existing concepts, and tighten up the prose to make it more
cohesive.

Touches #65196.

Release note: None

/cc @cockroachdb/kv 

Co-authored-by: David Hartunian <[email protected]>
Co-authored-by: Andrii Vorobiov <[email protected]>
Co-authored-by: Nathan Stilwell <[email protected]>
Co-authored-by: Andrii Vorobiov <[email protected]>
Co-authored-by: Alfonso Subiotto Marques <[email protected]>
Co-authored-by: Alfonso Subiotto Marqués <[email protected]>
Co-authored-by: oeph <[email protected]>
Co-authored-by: Erik Grinaker <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant