From pr-return-1569-archive-asf-public=cust-asf.ponee.io@cassandra.apache.org Sat Nov 3 09:32:46 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id CEADB18066B for ; Sat, 3 Nov 2018 09:32:45 +0100 (CET) Received: (qmail 57951 invoked by uid 500); 3 Nov 2018 08:32:44 -0000 Mailing-List: contact pr-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pr@cassandra.apache.org Delivered-To: mailing list pr@cassandra.apache.org Received: (qmail 57940 invoked by uid 99); 3 Nov 2018 08:32:44 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Nov 2018 08:32:44 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 9C507DFD43; Sat, 3 Nov 2018 08:32:43 +0000 (UTC) From: sumanth-pasupuleti To: pr@cassandra.apache.org Reply-To: pr@cassandra.apache.org References: In-Reply-To: Subject: [GitHub] cassandra pull request #277: 12106 - blacklisting bad partitions for point r... Content-Type: text/plain Message-Id: <20181103083243.9C507DFD43@git1-us-west.apache.org> Date: Sat, 3 Nov 2018 08:32:43 +0000 (UTC) Github user sumanth-pasupuleti commented on a diff in the pull request: https://github.com/apache/cassandra/pull/277#discussion_r230548740 --- Diff: test/unit/org/apache/cassandra/cache/BlacklistedPartitionsCacheTest.java --- @@ -0,0 +1,175 @@ +/* + * 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.cassandra.cache; + +import org.junit.Assert; +import org.junit.BeforeClass; +import org.junit.Test; + +import com.datastax.driver.core.PreparedStatement; +import com.datastax.driver.core.ResultSet; +import com.datastax.driver.core.Session; +import com.datastax.driver.core.exceptions.InvalidQueryException; +import org.apache.cassandra.cql3.CQLTester; +import org.apache.cassandra.repair.SystemDistributedKeyspace; +import org.apache.cassandra.schema.SchemaConstants; +import org.apache.cassandra.utils.ByteBufferUtil; + +public class BlacklistedPartitionsCacheTest extends CQLTester --- End diff -- makes sense. Added a test case where reading blacklist fails due to absence of blacklisted_partitions table --- --------------------------------------------------------------------- To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org For additional commands, e-mail: pr-help@cassandra.apache.org