-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Query: correctly marshal errors to JSON and ignore if nil #2848
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. Let's see what @GiedriusS thinks.
Just a small nit on changelog entry.
Have you tested this on a running system?
Ah no problem. I'll take the entry out the changelog.
I've tested on a locally compiled binary talking to a real 0.13 Sidecar.
…On Tue, 7 Jul 2020, 09:27 Kemal Akkoyun, ***@***.***> wrote:
***@***.**** commented on this pull request.
lgtm. Let's see what @GiedriusS <https://github.com/GiedriusS> thinks.
Just a small nit on changelog entry.
Have you tested this on a running system?
------------------------------
In CHANGELOG.md
<#2848 (comment)>:
> @@ -16,6 +16,7 @@ We use *breaking* word for marking changes that are not backward compatible (rel
* [#2665](#2665) Swift: fix issue with missing Content-Type HTTP headers.
- [#2800](#2800) Query: Fix handling of `--web.external-prefix` and `--web.route-prefix`
- [#2834](#2834) Query: Fix rendered JSON state value for rules and alerts should be in lowercase
+- [#2848](#2848) Query: Fix remove erroneous error when viewing stores.
We don't need this entry. Since this is a fix for a change that hasn't
merged yet.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2848 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXFAGPBAFJSR3EW77ZYPZ3R2LL6HANCNFSM4OSAHHOA>
.
|
Signed-off-by: Dan Potepa <[email protected]>
Signed-off-by: Dan Potepa <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks all!
Yea, reloader is flaky, help wanted to fix it 🙉 (#2622)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait... where's the CHANGELOG.md entry? 😄
@GiedriusS I have requested him to remove it since this hasn't released yet. That reminded me maybe we should change the base branch to |
correct |
@cuotos Then could you branch out from |
But are there any practical differences between merging this into |
Right, let's merge. |
* correctly marshal errors to JSON and ignore if nil Signed-off-by: Dan Potepa <[email protected]> * LastError should be cleared if the newer update was ok Signed-off-by: Dan Potepa <[email protected]> Signed-off-by: Kemal Akkoyun <[email protected]>
* upstream/release-0.14: (46 commits) Cut release v0.14.0-rc.1 (thanos-io#2853) Query: correctly marshal errors to JSON and ignore if nil (thanos-io#2848) ci: Manually download promu in crossbuild stage (thanos-io#2828) Cut release v0.14.0-rc.0 (thanos-io#2826) Soft cut changelog on master to indicate v0.14.0 being in progress (thanos-io#2824) Update ThanosReceiveNoUpload to select sum == 0 (thanos-io#2819) receive: Added more observability, fixed leaktest, to actually check leaks ): (thanos-io#2817) Query: always return a string in the `lastError` field (thanos-io#2809) Added missing CHANGELOG entry for PR 2613 (thanos-io#2820) receive: Fixed small options race; Removed unused StartTime feature. (thanos-io#2816) go.mod: Bump Prometheus to current latest (thanos-io#2814) Implement CLI Flags page in React UI (thanos-io#2796) Improve ThanosReceiveNoUpload to only alert on current instances store: Preallocate output buffer when encoding postings. (thanos-io#2812) compact: introduce flag --block-viewer.global.sync-block-interval (thanos-io#2752) docs: compact: add blurb about how retention policy works (thanos-io#2808) Reduced memory allocations in readIndexRange() (thanos-io#2807) ui: Add Stores page to React UI (thanos-io#2754) Added Kemal to Maintainer Role; Kemal is volounteering to be next release shephard (thanos-io#2804) proposal: Add scalable rule storage proposal (thanos-io#2661) ...
Changes
Fixes: #2846
Passing nil error to updateStoreStatus causes a panic. This is displayed to the user in the Stores ui when the Store is healthy
Added higher level unit test to catch this, and hopefully clarified existing test.