You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
THRIFT-5897: Use Read Lock for Listener in TServerSocket.Accept()
Problem:
Accept() previously used two separate lock acquisitions:
RLock() to read interrupted field
Lock() (write lock) to read listener field
Write lock was unnecessary since listener is only being read, not modified
Write locks block all other goroutines (both readers and writers)
Solution:
Consolidate both field reads under a single RLock()/RUnlock() pair
Both interrupted and listener are read-only operations, so read lock is sufficient
0 commit comments