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

storage: remove replica pointer tag #15212

Merged

Conversation

petermattis
Copy link
Collaborator

The replica pointer tag was used for debugging #11591, which has been
long since fixed.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@@ -513,8 +513,6 @@ func newReplica(rangeID roachpb.RangeID, store *Store) *Replica {
r.rangeStr.store(0, &roachpb.RangeDescriptor{RangeID: rangeID})
// Add replica log tag - the value is rangeStr.String().
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so comments, such useful. amaze.

@petermattis
Copy link
Collaborator Author

@tamird Those tests failures are really scary:

cli.test: /go/src/github.com/cockroachdb/cockroach/c-deps/rocksdb.src/db/inlineskiplist.h:424: int rocksdb::InlineSkipList<Comparator>::RandomHeight() [with Comparator = const rocksdb::MemTableRep::KeyComparator&]: Assertion `height <= kMaxHeight_' failed.

We didn't upgrade RocksDB recently, did we? So what changed?

@petermattis petermattis force-pushed the pmattis/replica-pointer-tag branch from 27193ee to c8d6697 Compare April 20, 2017 16:33
@tamird
Copy link
Contributor

tamird commented Apr 20, 2017 via email

@benesch
Copy link
Contributor

benesch commented Apr 20, 2017

Current suspicion is that #15188 is the culprit. Attempting to reproduce.

@benesch
Copy link
Contributor

benesch commented Apr 20, 2017

Updated theory: this is probably build skew. We don't bust c-deps caches when we change ./configure flags.

@a-robinson
Copy link
Contributor

Is there a particular motivation for removing this? It's also been useful when looking into replica GC bugs.

@benesch
Copy link
Contributor

benesch commented Apr 20, 2017

Nuked the affected agent; all seems well. I'll work on a way to force rebuilding of C dependencies when
build flags change.

@petermattis
Copy link
Collaborator Author

Is there a particular motivation for removing this? It's also been useful when looking into replica GC bugs.

I thought those bugs were well in the past. Am I mistaken about that?

@petermattis
Copy link
Collaborator Author

And the motivation was a minor amount of log cleanliness.

@bdarnell
Copy link
Contributor

LGTM. I noticed this and was thinking about removing it too.

@a-robinson
Copy link
Contributor

I thought those bugs were well in the past. Am I mistaken about that?

They are. I was just pointing out that it's been useful for more than just the original issue. It's not a huge deal to get rid of it again though, we can re-add it as needed.

@petermattis
Copy link
Collaborator Author

They are. I was just pointing out that it's been useful for more than just the original issue. It's not a huge deal to get rid of it again though, we can re-add it as needed.

I could also comment it out. Preference?

@a-robinson
Copy link
Contributor

Commenting it out sgtm

The replica pointer tag was used for debugging cockroachdb#11591, which has been
long since fixed.
@petermattis petermattis force-pushed the pmattis/replica-pointer-tag branch from c8d6697 to a5bbfcf Compare April 20, 2017 21:06
@petermattis
Copy link
Collaborator Author

Commenting it out sgtm

Done.

@petermattis petermattis merged commit d79976a into cockroachdb:master Apr 20, 2017
@petermattis petermattis deleted the pmattis/replica-pointer-tag branch April 21, 2017 00:18
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

Successfully merging this pull request may close these issues.

6 participants