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
Ndt sandbox async flush cleanup #523
Conversation
6f1ac85
to
827738d
Compare
Pull Request Test Coverage Report for Build 3303
💛 - Coveralls |
Many of my questions are clarifying. Some are not. Review status: 0 of 1 LGTMs obtained bq/bq_test.go, line 199 at r2 (raw file):
This struct is getting complex enough that the absence of field names obscures the readability. I looked at the version of bq/insert.go, line 48 at r2 (raw file):
It's fine if so, but just checking -- do these need to be public? bq/insert.go, line 153 at r2 (raw file):
I don't understand why mutex is unsuitable for this use case. What am I missing? bq/insert.go, line 230 at r2 (raw file):
Why add etl/etl.go, line 35 at r2 (raw file):
Deprecated in favor of what? parser/ss.go, line 272 at r2 (raw file):
Why not Comments from Reviewable |
PTAL Review status: 0 of 1 LGTMs obtained bq/bq_test.go, line 199 at r2 (raw file): Previously, stephen-soltesz (Stephen Soltesz) wrote…
Ok. I'm actually conflicted about named params, because it allows you to accidentally default some fields, which has caused bugs for me several times, particularly after adding a field. I'll update these, though. Actually, I'll use a small helper function, too. bq/insert.go, line 48 at r2 (raw file): Previously, stephen-soltesz (Stephen Soltesz) wrote…
Nope. Just a bad habit of mine, left over from using all caps for constants in C++. bq/insert.go, line 153 at r2 (raw file): Previously, stephen-soltesz (Stephen Soltesz) wrote…
Hmm. I'm accustomed to mutex restrictions (or maybe conventions) requiring the same thread to lock and unlock the mutex. That is perhaps not true in golang, but it still seems natural to me, so I'm reluctant to violate that. Actually, this discussion is interesting: golang/go#9201 bq/insert.go, line 230 at r2 (raw file): Previously, stephen-soltesz (Stephen Soltesz) wrote…
Oops. That was required in an earlier draft, but is no longer. I'll restore it. etl/etl.go, line 35 at r2 (raw file): Previously, stephen-soltesz (Stephen Soltesz) wrote…
Added comment. Thanks for pointing out. parser/ss.go, line 272 at r2 (raw file): Previously, stephen-soltesz (Stephen Soltesz) wrote…
Because I missed this. 8-( Too bad the deprecation warnings aren't more prominent. Actually, I'm not even sure what tool produces them. Hmm - a new tool: It doesn't warn about deprecated tags, but does generate some other useful warning we should probably clean up. Comments from Reviewable |
Review status: complete! 1 of 1 LGTMs obtained bq/bq_test.go, line 199 at r2 (raw file): Previously, gfr10598 (Gregory Russell) wrote…
In this case, I would strive for the following balance. My understanding is that Go encourages having meaningful zero values. If zero values have caused bugs in the past, I would look to the logic that depends on structs and consider how zero values will be interpreted when first creating the code. I know that's easier to say than do consistently. As well, when structs are complex enough to require special handling to prevent zero values, maybe by assigning default values, in this case defining a bq/insert.go, line 153 at r2 (raw file): Previously, gfr10598 (Gregory Russell) wrote…
Excellent. Carry on. Comments from Reviewable |
Review status: complete! 1 of 1 LGTMs obtained bq/insert.go, line 153 at r2 (raw file): Previously, stephen-soltesz (Stephen Soltesz) wrote…
Done. Comments from Reviewable |
This PR:
This change is