Research why official mongo-go driver needs the following patch

Description

with the new mongo driver (https://github.com/mendersoftware/inventory/pull/141) you can see an error:

which is "not true":

it is some strange thing, but this patch fixes it:

it seems that tA is not defined at this point, or some other type-definition loop is made. This needs investigation before men-2454 and men-2453 can be closed.

Affects versions

None

Environment

None

Attachments

1

Checklist

Activity

Show:

Peter GrzybowskiNovember 10, 2019 at 1:51 PM

not a local issue at all after all. it was a issue with the fact that driver on purpose does not expose primitive.A type,.

this fixes it:

Peter GrzybowskiOctober 17, 2019 at 7:59 AM

Seems local issue, that only happens under some conditions and since it only appears on my desktop machine, then I am closing this one. I have tested with fresh docker image, seems fine.

Marcin PasinskiOctober 11, 2019 at 9:15 AM

Glad I could help

Peter GrzybowskiOctober 11, 2019 at 9:08 AM

I think it can mean, that we migrate all services or none. I will verify that as well in this task.

Peter GrzybowskiOctober 11, 2019 at 9:07 AM
Edited

I ran a separate build in clean docker image and stand alone go code (written from scratch, no imports from mendersoftware, only new driver) and seems to be gone – I have to test some more, but it must have been something local. so, thanks for the hint!

Fixed

Details

Assignee

Reporter

Labels

Story Points

Priority

Days in progress

4

Sprint

Backlog

yes

Zendesk Support

Checklist

Created September 24, 2019 at 8:13 AM
Updated November 10, 2019 at 1:51 PM
Resolved October 17, 2019 at 8:00 AM