Skip to content

Instantly share code, notes, and snippets.

@adelapena
adelapena / bisect.sh
Created August 23, 2022 15:04
CircleCI-based Git bisect for Apache Cassandra
#!/bin/sh
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
@adelapena
adelapena / .java
Created December 16, 2020 14:25
Restart nodes in dtests
@Test
public void works() throws Throwable
{
try (Cluster cluster = init(Cluster.build(3).start()))
{
cluster.get(2).shutdown();
cluster.get(2).startup();
cluster.get(3).shutdown();
cluster.get(3).startup();
}