mirror of https://github.com/apache/cassandra
Merge branch 'cassandra-3.0' into cassandra-3.11
This commit is contained in:
commit
6d7cd61412
|
|
@ -3,6 +3,7 @@
|
|||
* Revert CASSANDRA-18543 (CASSANDRA-18854)
|
||||
* Fix NPE when using udfContext in UDF after a restart of a node (CASSANDRA-18739)
|
||||
Merged from 3.0:
|
||||
* Do not set RPC_READY to false on transports shutdown in order to not fail counter updates for deployments with coordinator and storage nodes with transports turned off (CASSANDRA-18935)
|
||||
* Suppress CVE-2023-44487 (CASSANDRA-18943)
|
||||
* Fix nodetool enable/disablebinary to correctly set rpc readiness in gossip (CASSANDRA-18935)
|
||||
* Implement the logic in bin/stop-server (CASSANDRA-18838)
|
||||
|
|
|
|||
|
|
@ -725,7 +725,6 @@ public class CassandraDaemon
|
|||
{
|
||||
if (nativeTransportService != null)
|
||||
{
|
||||
StorageService.instance.setRpcReady(false);
|
||||
nativeTransportService.stop();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -139,9 +139,10 @@ public class NativeProtocolTest extends TestBaseImpl
|
|||
i.runOnInstance((IIsolatedExecutor.SerializableRunnable) () -> StorageService.instance.startNativeTransport());
|
||||
assertTrue(i.callOnInstance((IIsolatedExecutor.SerializableCallable<Boolean>) () -> StorageService.instance.isRpcReady(FBUtilities.getBroadcastAddress())));
|
||||
|
||||
// by calling e.g. nodetool disablebinary, rpc will be set to false again
|
||||
// by calling e.g. nodetool disablebinary, rpc will NOT be set to false again
|
||||
// please read CASSANDRA-18935 for in-depth explanation why it is so
|
||||
i.runOnInstance((IIsolatedExecutor.SerializableRunnable) () -> StorageService.instance.stopNativeTransport());
|
||||
assertFalse(i.callOnInstance((IIsolatedExecutor.SerializableCallable<Boolean>) () -> StorageService.instance.isRpcReady(FBUtilities.getBroadcastAddress())));
|
||||
assertTrue(i.callOnInstance((IIsolatedExecutor.SerializableCallable<Boolean>) () -> StorageService.instance.isRpcReady(FBUtilities.getBroadcastAddress())));
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue