Merge branch 'cassandra-3.0' into cassandra-3.11

This commit is contained in:
Brandon Williams 2022-01-11 08:23:01 -06:00
commit b17d701c58
2 changed files with 12 additions and 2 deletions

View File

@ -11,6 +11,7 @@
* Reduce thread contention in CommitLogSegment and HintsBuffer (CASSANDRA-16072)
* Avoid sending CDC column if not enabled (CASSANDRA-16770)
Merged from 3.0:
* Fix abort when window resizing during cqlsh COPY (CASSANDRA-15230)
* Fix slow keycache load which blocks startup for tables with many sstables (CASSANDRA-14898)
* Fix rare NPE caused by batchlog replay / node decomission races (CASSANDRA-17049)
* Allow users to view permissions of the roles they created (CASSANDRA-16902)

View File

@ -31,6 +31,8 @@ import sys
import threading
import time
import traceback
import select
import errno
from bisect import bisect_right
from calendar import timegm
@ -39,7 +41,6 @@ from decimal import Decimal
from Queue import Queue
from random import randint
from StringIO import StringIO
from select import select
from uuid import UUID
from util import profile_on, profile_off
@ -191,7 +192,15 @@ class ReceivingChannels(object):
Implementation of the recv method for Linux, where select is available. Receive an object from
all pipes that are ready for reading without blocking.
"""
readable, _, _ = select(self._readers, [], [], timeout)
while True:
try:
readable, _, _ = select.select(self._readers, [], [], timeout)
except select.error, exc:
# Do not abort on window resize:
if exc[0] != errno.EINTR:
raise
else:
break
for r in readable:
with self._rlocks_by_readers[r]:
try: