impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bharath Vissapragada (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-3613: Avoid topic updates to unregistered subscriber instances
Date Mon, 06 Nov 2017 20:38:02 GMT
Bharath Vissapragada has posted comments on this change. (

Change subject: IMPALA-3613: Avoid topic updates to unregistered subscriber instances

Patch Set 3:

File be/src/statestore/statestore.h:
PS3, Line 385: std::pair<SubscriberId, RegistrationId>
> I think the code would be much simpler if you stored a pointer (probably a 
Wouldn't that keep a bunch of unregistered 'Subscriber' objects around due to shared_ptr references?
I agree the code might be simple though.
File be/src/statestore/
PS3, Line 278:   lock_guard<SpinLock> l(subscribers_lock_);
             :   lock_guard<mutex> t(topic_lock_);
> I just noticed this. Getting a SpinLock before getting a mutex is an anti-p
IMO, we shouldn't use spinlock for topic_lock_ since we can potentially do some heavy work
in GatherTopicUpdates().  If this is an anti-pattern I'm ok reverting the change to a mutex.
May we can ask others opinions on it? 

Dimitris/Dan/Alex do you have any opinion on this?
PS3, Line 415: const TUniqueId&
> const RegistrationId&
Changed at other places too.

To view, visit
To unsubscribe, visit

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I0329ae7d23dc6e9b04b7bc3ee8d89cbc73756f65
Gerrit-Change-Number: 8449
Gerrit-PatchSet: 3
Gerrit-Owner: Bharath Vissapragada <>
Gerrit-Reviewer: Bharath Vissapragada <>
Gerrit-Reviewer: Dimitris Tsirogiannis <>
Gerrit-Reviewer: Sailesh Mukil <>
Gerrit-Comment-Date: Mon, 06 Nov 2017 20:38:02 +0000
Gerrit-HasComments: Yes

  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message