Skip to content

Commit

Permalink
Fix bug (yahoo#346)
Browse files Browse the repository at this point in the history
* Fix bug

* Fix bug
  • Loading branch information
ritvikjaiswal authored and pavanab4u committed Sep 24, 2018
1 parent 3decce2 commit b163648
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion druid-manager/app/controllers/DashBoard.scala
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ class DashBoard @Inject() (ws:WSClient, druidCoordinator: String,
private def getLastTime(host: String, lookupName: String, extractionNamespaceType: String) = {

val headers = druidAuthHeaderProvider.getAuthHeaders
val lastTimeGet = if (lookupName == "mahainmemorydb") {
val lastTimeGet = if (extractionNamespaceType == "mahainmemorydb") {
ws.url(s"$druidHistoricalsHttpScheme://$host/druid/v1/namespaces/$lookupName/lastUpdatedTime?namespaceclass=com.yahoo.maha.maha_druid_lookups.query.lookup.namespace.InMemoryDBExtractionNamespace").withHeaders(headers.head._1 -> headers.head._2).get()
} else {
ws.url(s"$druidHistoricalsHttpScheme://$host/druid/v1/namespaces/$lookupName/lastUpdatedTime?namespaceclass=com.yahoo.maha.maha_druid_lookups.query.lookup.namespace.JDBCExtractionNamespace").withHeaders(headers.head._1 -> headers.head._2).get()
Expand Down
2 changes: 1 addition & 1 deletion travis/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cd $TRAVIS_BUILD_DIR/druid-manager
if [ "${TRAVIS_PULL_REQUEST}" != "false" ] || [ "${TRAVIS_BRANCH}" != "master" ]; then
sbt ++$TRAVIS_SCALA_VERSION package;
else
VERSION="1.1.4";
VERSION="1.1.5";
echo "VERSION = ${VERSION}";
sbt ++$TRAVIS_SCALA_VERSION -Dversion=$VERSION rpm:packageBin > sbt_package.out;
curl -T $TRAVIS_BUILD_DIR/druid-manager/target/rpm/RPMS/noarch/druid-manager-$VERSION-1.noarch.rpm -u$BINTRAY_USER:$BINTRAY_API_KEY https://api.bintray.com/content/yahoo/rpm/druid-manager/$VERSION/druid-manager-$VERSION-1.noarch.rpm;
Expand Down

0 comments on commit b163648

Please sign in to comment.