Yingchun Lai has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/18112 )
Change subject: [tools] Fix schema version incorrctly set to 0 bug after rebuilding master ...................................................................... [tools] Fix schema version incorrctly set to 0 bug after rebuilding master If we rebuild master for tables with 0 schema version, we may get errors like following on master: TS xxx (xxx:xxx) has reported a schema version greater than the current one for tablet xxx (table xxx [id=xxx]). Expected version 0 got n (corruption) ... TS xxx (xxx:xxx): alter failed for tablet xxx (table xxx [id=xxx]),no further retry: Invalid argument: Tablet has a newer schema or TS xxx (xxx:xxx): alter failed for tablet xxx (table xxx [id=xxx]),no further retry: Corruption: got a different schema for the same version number Change-Id: Icf8b7c0c45bcc6160f6eabf977968de5a88ef5c7 Reviewed-on: http://gerrit.cloudera.org:8080/18112 Tested-by: Kudu Jenkins Reviewed-by: Andrew Wong <[email protected]> --- M src/kudu/tools/kudu-admin-test.cc M src/kudu/tools/kudu-tool-test.cc M src/kudu/tools/master_rebuilder.cc M src/kudu/tools/tool_action_common.cc M src/kudu/tools/tool_action_master.cc M src/kudu/tserver/tablet_service.cc M src/kudu/tserver/tserver.proto 7 files changed, 95 insertions(+), 18 deletions(-) Approvals: Kudu Jenkins: Verified Andrew Wong: Looks good to me, approved -- To view, visit http://gerrit.cloudera.org:8080/18112 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: Icf8b7c0c45bcc6160f6eabf977968de5a88ef5c7 Gerrit-Change-Number: 18112 Gerrit-PatchSet: 6 Gerrit-Owner: Yingchun Lai <[email protected]> Gerrit-Reviewer: Andrew Wong <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Yingchun Lai <[email protected]>
