You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Alexey Serbin (Code Review)" <ge...@cloudera.org> on 2021/09/20 02:55:00 UTC
[kudu-CR] [master] fix logic error in TableInfo::UpdateMetrics()
Alexey Serbin has uploaded this change for review. ( http://gerrit.cloudera.org:8080/17856
Change subject: [master] fix logic error in TableInfo::UpdateMetrics()
......................................................................
[master] fix logic error in TableInfo::UpdateMetrics()
TabletInfo::tablet_map_ is keyed by tablet partition start key,
not tablet UUID.
This is a follow-up to 06a62ec681009b146de3f73808711161c5bed12d.
Change-Id: Ic7d22f4b1fedeb341d261c3ac2e61a29feb3cb2d
---
M src/kudu/master/catalog_manager.cc
1 file changed, 5 insertions(+), 4 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/56/17856/1
--
To view, visit http://gerrit.cloudera.org:8080/17856
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic7d22f4b1fedeb341d261c3ac2e61a29feb3cb2d
Gerrit-Change-Number: 17856
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
[kudu-CR] [master] fix logic error in TableInfo::UpdateMetrics()
Posted by "Yifan Zhang (Code Review)" <ge...@cloudera.org>.
Yifan Zhang has posted comments on this change. ( http://gerrit.cloudera.org:8080/17856 )
Change subject: [master] fix logic error in TableInfo::UpdateMetrics()
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit http://gerrit.cloudera.org:8080/17856
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic7d22f4b1fedeb341d261c3ac2e61a29feb3cb2d
Gerrit-Change-Number: 17856
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Greg Solovyev <gs...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: helifu <he...@apache.org>
Gerrit-Comment-Date: Wed, 22 Sep 2021 10:20:57 +0000
Gerrit-HasComments: No
[kudu-CR] [master] fix logic error in TableInfo::UpdateMetrics()
Posted by "Bankim Bhavsar (Code Review)" <ge...@cloudera.org>.
Bankim Bhavsar has posted comments on this change. ( http://gerrit.cloudera.org:8080/17856 )
Change subject: [master] fix logic error in TableInfo::UpdateMetrics()
......................................................................
Patch Set 1:
> Patch Set 1:
>
> ts_tablet_manager.h says this. Could you update the comment there as well?
> // Map from tablet ID to tablet
> TabletMap tablet_map_;
I'm sorry I looked at the wrong file. It should catalog_manager.h even there the comment says tablet-id.
// Tablet maps: tablet-id -> TabletInfo
TabletInfoMap tablet_map_;
--
To view, visit http://gerrit.cloudera.org:8080/17856
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic7d22f4b1fedeb341d261c3ac2e61a29feb3cb2d
Gerrit-Change-Number: 17856
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Greg Solovyev <gs...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: helifu <he...@apache.org>
Gerrit-Comment-Date: Mon, 20 Sep 2021 22:22:21 +0000
Gerrit-HasComments: No
[kudu-CR] [master] fix logic error in TableInfo::UpdateMetrics()
Posted by "Bankim Bhavsar (Code Review)" <ge...@cloudera.org>.
Bankim Bhavsar has posted comments on this change. ( http://gerrit.cloudera.org:8080/17856 )
Change subject: [master] fix logic error in TableInfo::UpdateMetrics()
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit http://gerrit.cloudera.org:8080/17856
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic7d22f4b1fedeb341d261c3ac2e61a29feb3cb2d
Gerrit-Change-Number: 17856
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Greg Solovyev <gs...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: helifu <he...@apache.org>
Gerrit-Comment-Date: Thu, 23 Sep 2021 16:11:25 +0000
Gerrit-HasComments: No
[kudu-CR] [master] fix logic error in TableInfo::UpdateMetrics()
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/17856 )
Change subject: [master] fix logic error in TableInfo::UpdateMetrics()
......................................................................
Patch Set 1:
> > > Patch Set 1:
> > >
> > > ts_tablet_manager.h says this. Could you update the comment
> there
> > as well?
> > > // Map from tablet ID to tablet
> > > TabletMap tablet_map_;
> >
> > I'm sorry I looked at the wrong file. It should catalog_manager.h
> > even there the comment says tablet-id.
> >
> > // Tablet maps: tablet-id -> TabletInfo
> > TabletInfoMap tablet_map_;
>
> I don't think that's not the container used in this context. Here
> we are talking about TableInfo::tablet_map_, see catalog_manager.h
> lines 390-395:
>
> // Sorted index of tablet start partition-keys to TabletInfo.
> //
> // Every TabletInfo has a strong backpointer to its TableInfo, so
> these
> // pointers must be raw.
> typedef std::map<PartitionKey, TabletInfo*> RawTabletInfoMap;
> RawTabletInfoMap tablet_map_;
I meant you referred at different container, but this changelist is bout TableInfo::tablet_map_, see catalog_manager.h lines 390-395, and the comment already provides correct information about the contents of the container as far as I can see.
--
To view, visit http://gerrit.cloudera.org:8080/17856
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic7d22f4b1fedeb341d261c3ac2e61a29feb3cb2d
Gerrit-Change-Number: 17856
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Greg Solovyev <gs...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: helifu <he...@apache.org>
Gerrit-Comment-Date: Wed, 22 Sep 2021 03:23:47 +0000
Gerrit-HasComments: No
[kudu-CR] [master] fix logic error in TableInfo::UpdateMetrics()
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/17856 )
Change subject: [master] fix logic error in TableInfo::UpdateMetrics()
......................................................................
Patch Set 1:
> > Patch Set 1:
> >
> > ts_tablet_manager.h says this. Could you update the comment there
> as well?
> > // Map from tablet ID to tablet
> > TabletMap tablet_map_;
>
> I'm sorry I looked at the wrong file. It should catalog_manager.h
> even there the comment says tablet-id.
>
> // Tablet maps: tablet-id -> TabletInfo
> TabletInfoMap tablet_map_;
I don't think that's not the container used in this context. Here we are talking about TableInfo::tablet_map_, see catalog_manager.h lines 390-395:
// Sorted index of tablet start partition-keys to TabletInfo.
//
// Every TabletInfo has a strong backpointer to its TableInfo, so these
// pointers must be raw.
typedef std::map<PartitionKey, TabletInfo*> RawTabletInfoMap;
RawTabletInfoMap tablet_map_;
--
To view, visit http://gerrit.cloudera.org:8080/17856
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic7d22f4b1fedeb341d261c3ac2e61a29feb3cb2d
Gerrit-Change-Number: 17856
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Greg Solovyev <gs...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: helifu <he...@apache.org>
Gerrit-Comment-Date: Wed, 22 Sep 2021 03:20:50 +0000
Gerrit-HasComments: No
[kudu-CR] [master] fix logic error in TableInfo::UpdateMetrics()
Posted by "Bankim Bhavsar (Code Review)" <ge...@cloudera.org>.
Bankim Bhavsar has posted comments on this change. ( http://gerrit.cloudera.org:8080/17856 )
Change subject: [master] fix logic error in TableInfo::UpdateMetrics()
......................................................................
Patch Set 1:
ts_tablet_manager.h says this. Could you update the comment there as well?
// Map from tablet ID to tablet
TabletMap tablet_map_;
--
To view, visit http://gerrit.cloudera.org:8080/17856
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic7d22f4b1fedeb341d261c3ac2e61a29feb3cb2d
Gerrit-Change-Number: 17856
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Greg Solovyev <gs...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: helifu <he...@apache.org>
Gerrit-Comment-Date: Mon, 20 Sep 2021 22:19:23 +0000
Gerrit-HasComments: No
[kudu-CR] [master] fix logic error in TableInfo::UpdateMetrics()
Posted by "Abhishek Chennaka (Code Review)" <ge...@cloudera.org>.
Abhishek Chennaka has posted comments on this change. ( http://gerrit.cloudera.org:8080/17856 )
Change subject: [master] fix logic error in TableInfo::UpdateMetrics()
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit http://gerrit.cloudera.org:8080/17856
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic7d22f4b1fedeb341d261c3ac2e61a29feb3cb2d
Gerrit-Change-Number: 17856
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Greg Solovyev <gs...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: helifu <he...@apache.org>
Gerrit-Comment-Date: Wed, 22 Sep 2021 03:32:10 +0000
Gerrit-HasComments: No
[kudu-CR] [master] fix logic error in TableInfo::UpdateMetrics()
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/17856 )
Change subject: [master] fix logic error in TableInfo::UpdateMetrics()
......................................................................
[master] fix logic error in TableInfo::UpdateMetrics()
TabletInfo::tablet_map_ is keyed by tablet partition start key,
not tablet UUID.
This is a follow-up to 06a62ec681009b146de3f73808711161c5bed12d.
Change-Id: Ic7d22f4b1fedeb341d261c3ac2e61a29feb3cb2d
Reviewed-on: http://gerrit.cloudera.org:8080/17856
Tested-by: Kudu Jenkins
Reviewed-by: Abhishek Chennaka <ac...@cloudera.com>
Reviewed-by: Yifan Zhang <ch...@163.com>
Reviewed-by: Bankim Bhavsar <ba...@cloudera.com>
---
M src/kudu/master/catalog_manager.cc
1 file changed, 5 insertions(+), 4 deletions(-)
Approvals:
Kudu Jenkins: Verified
Abhishek Chennaka: Looks good to me, but someone else must approve
Yifan Zhang: Looks good to me, approved
Bankim Bhavsar: Looks good to me, approved
--
To view, visit http://gerrit.cloudera.org:8080/17856
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic7d22f4b1fedeb341d261c3ac2e61a29feb3cb2d
Gerrit-Change-Number: 17856
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Greg Solovyev <gs...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: helifu <he...@apache.org>