Hello Dan Burkert, Todd Lipcon, I'd like you to do a code review. Please visit
http://gerrit.cloudera.org:8080/7995 to review the following change. Change subject: catalog_manager: fix unprotected data access in TableInfo::AddRemoveTablets ...................................................................... catalog_manager: fix unprotected data access in TableInfo::AddRemoveTablets RWCLock::HasWriteLock never worked properly because last_writer_tid_ wasn't reset when the lock was released. Well, it worked properly (though it's far less useful) in non-DEBUG builds, but then the various HasWriteLock DCHECKs are compiled out. Who knew? When fixed, TableInfo::AddRemoveTablets broke; we had been reading some tablet metadata without first acquiring a lock! This was frustrasting to address because it meant retreading over the most error-prone aspect of the catalog manager: for operations that require several writes in order to "publish" their results, in what order should those writes occur? I tried my best to get this right, but who knows how I did... Change-Id: Ifcc5d3a9b985210f1fdd6f0495326fa3eb707841 --- M src/kudu/master/catalog_manager-test.cc M src/kudu/master/catalog_manager.cc M src/kudu/master/catalog_manager.h M src/kudu/util/cow_object.h M src/kudu/util/rwc_lock.cc M src/kudu/util/rwc_lock.h 6 files changed, 60 insertions(+), 16 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/95/7995/1 -- To view, visit http://gerrit.cloudera.org:8080/7995 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ifcc5d3a9b985210f1fdd6f0495326fa3eb707841 Gerrit-PatchSet: 1 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: Adar Dembo <a...@cloudera.com> Gerrit-Reviewer: Dan Burkert <danburk...@apache.org> Gerrit-Reviewer: Todd Lipcon <t...@apache.org>