postgres exporter error when querying for couch2pg status against malformed rows
mrjones-plip opened this issue ยท comments
We expect the data to only be in the format we expect when we check for couch2pg status. However, if there's not data we expect like this:
seq | source |
---|---|
0 | cht.url.here:443/medic |
0 | cht.url.here/medic2 |
717577-g1AAAE7R-BBYkdsOkWrsf190s0g | cht.url.here/medic |
1178314-g1D10oGylMjTUGv7B6bBJks | cht.url.here/medic-sentinel |
2269-g1AAwub2x6RZawSNZ | cht.url.here/medic-users-meta |
You'll get an error like:
SQL Error [22011]: ERROR: negative substring length not allowed
Because the SQL tries to take the first position out of two ((seq for position('-' in seq) - 1)
), but there are no positions b/c the -
substring is not present in the seq
column on the first two rows
๐ This issue has been resolved in version 1.8.1 ๐
The release is available on GitHub release
Your semantic-release bot ๐ฆ๐