Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

idx: better log msg formatting, include more info #1119

Merged
merged 2 commits into from
Oct 26, 2018

Conversation

Dieterbe
Copy link
Contributor

@Dieterbe Dieterbe commented Oct 26, 2018

also, in each caller of bigtableIdx.deleteRow log an error,
so longer needed in bigtableIdx.deleteRow itself

fix #1116

note, unlike cassandraIdx, in the bigtableIdx i haven't found a nice way yet to print a failing metricdef, since we send in batches and do some interesting reducing of the input set. we can revisit this later.

also, in each caller of bigtableIdx.deleteRow log an error,
so longer needed in bigtableIdx.deleteRow itself

fix #1116
@Dieterbe Dieterbe requested a review from woodsaj October 26, 2018 15:36
@woodsaj
Copy link
Member

woodsaj commented Oct 26, 2018

i haven't found a nice way yet to print a failing metricdef

I think this is fine for now. As we marshal the metricDefs attributes to []bytes, I dont see how a specific metricDef could be rejected while others are ok. So any failure should be a general failure that affects all metricsDefs.

@Dieterbe Dieterbe merged commit 90c56ab into master Oct 26, 2018
@Dieterbe Dieterbe deleted the include-more-info-in-log-msgs branch October 29, 2018 09:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

log metricDef id when it cant be written to idx backend
2 participants