Skip to content
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

Gogoprotobuf removed ErrWrongType, which is depended on by Raft #811

Closed
bmhatfield opened this issue Aug 9, 2014 · 10 comments
Closed

Gogoprotobuf removed ErrWrongType, which is depended on by Raft #811

bmhatfield opened this issue Aug 9, 2014 · 10 comments
Milestone

Comments

@bmhatfield
Copy link

This change: https://code.google.com/p/gogoprotobuf/source/detail?r=6f3c1d67bdb9f8bd3662e6647348756dc1ccbde2

Breaks:

# github.com/influxdb/influxdb/_vendor/raft/protobuf
_vendor/raft/protobuf/append_entries_request.pb.go:113: undefined: proto.ErrWrongType
_vendor/raft/protobuf/append_entries_request.pb.go:130: undefined: proto.ErrWrongType
_vendor/raft/protobuf/append_entries_request.pb.go:147: undefined: proto.ErrWrongType
_vendor/raft/protobuf/append_entries_request.pb.go:164: undefined: proto.ErrWrongType
_vendor/raft/protobuf/append_entries_request.pb.go:181: undefined: proto.ErrWrongType
_vendor/raft/protobuf/append_entries_request.pb.go:204: undefined: proto.ErrWrongType
_vendor/raft/protobuf/append_entries_responses.pb.go:97: undefined: proto.ErrWrongType
_vendor/raft/protobuf/append_entries_responses.pb.go:114: undefined: proto.ErrWrongType
_vendor/raft/protobuf/append_entries_responses.pb.go:131: undefined: proto.ErrWrongType
_vendor/raft/protobuf/append_entries_responses.pb.go:148: undefined: proto.ErrWrongType
_vendor/raft/protobuf/append_entries_responses.pb.go:148: too many errors
@bmhatfield
Copy link
Author

I filed an issue on https://code.google.com/p/gogoprotobuf/issues/detail?id=23 - but honestly I am not sure how this is intended to be reconciled.

@otoolep
Copy link
Contributor

otoolep commented Aug 12, 2014

I am hitting the same build issue this morning on Kubuntu 14.04, 64-bit. I am unable to build top-of-master.

@otoolep
Copy link
Contributor

otoolep commented Aug 12, 2014

@pauldix @jvshahid -- are you guys running continuous builds anywhere, for any arch and distro? Perhaps I am missing something, but it's disappointing to checkout master and find it doesn't build. This isn't the first time it's happened (though I realise this is not strictly a build break in influxdb). :-(

@bmhatfield
Copy link
Author

It appears that they are (https://travis-ci.org/influxdb/influxdb/builds) but they've been failing for 10d+.

From my notes on building this, these are the most recent buildable shas:

InfluxDB Buildable SHA: 22cb673
gogoprotobuf Buildable SHA: 192f37e (RE: Removed ErrWrongType)

@otoolep
Copy link
Contributor

otoolep commented Aug 12, 2014

I started ignoring that CI build a long time ago, since it always seemed to be red, even when I could build. :-)

@jvshahid
Copy link
Contributor

This is now fixed. I also took the chance to merge all changes from the upstream raft implementation which looks like it's still suffering from that error, but since we have the luxury of regenerating the protobuf file, I went ahead and updated our copy. The tests should also be fixed to be more robust and to reduce the intermittent failures we get on travis ci.

@jvshahid jvshahid added this to the 0.8.0 milestone Aug 12, 2014
@otoolep
Copy link
Contributor

otoolep commented Aug 13, 2014

Great, thanks @jvshahid, I am good now.

@otoolep
Copy link
Contributor

otoolep commented Aug 17, 2014

@jvshahid -- are the directions to regenerate the protobuf files documented anywhere? I'd like to know how to do it. I studied the README in the gogoprotobuf package, but I still had no success.

@jvshahid
Copy link
Contributor

@otoolep why are you trying to regenerate the gogoprotobuf files, these are checked in the repository ?

@otoolep
Copy link
Contributor

otoolep commented Aug 18, 2014

Fair question. I would like to experiment with changing the protobuf spec from time-to-time. Perhaps this would be better for the maintainers of the raft repo (who need to fix their build anyway).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants