saileshnankani commented on a change in pull request #5911: URL: https://github.com/apache/incubator-pinot/pull/5911#discussion_r476113557
########## File path: compatibility-verifier/comp-verifier.sh ########## @@ -0,0 +1,145 @@ +#!/bin/bash +# +# 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. +# + +# A script that does rolling upgrade of Pinot components +# from one version to the other given 2 commit hashes. It first builds +# Pinot in the 2 given directories and then upgrades in the following order: +# Controller -> Broker -> Server + +# verify correct usage of this script +if [[ $# -ne 4 ]]; then + printf "You used %s arguments \n" "$#" + printf "Usage: \n ./comp-verifier.sh commitHash1 target_dir_1 commitHash2 target_dir_2 \n" + exit 1 +fi + +# get arguments +commitHash1=$1 +target_dir_1=$2 +commitHash2=$3 +target_dir_2=$4 +pinot_version_1="0.5.0" +pinot_version_2="0.5.0" + +read -rep $'\n' -p "What is the Pinot version for first commitHash? [default: 0.5.0] " -r Review comment: Never mind. I noticed there is also `./pinot-tools/target/pinot-tools-pkg/bin/pinot-admin.sh` that I can use. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org