Return-Path: X-Original-To: apmail-aurora-issues-archive@minotaur.apache.org Delivered-To: apmail-aurora-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BA98A18BCB for ; Sun, 5 Jul 2015 19:30:04 +0000 (UTC) Received: (qmail 60372 invoked by uid 500); 5 Jul 2015 19:30:04 -0000 Delivered-To: apmail-aurora-issues-archive@aurora.apache.org Received: (qmail 60325 invoked by uid 500); 5 Jul 2015 19:30:04 -0000 Mailing-List: contact issues-help@aurora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aurora.apache.org Delivered-To: mailing list issues@aurora.apache.org Received: (qmail 60315 invoked by uid 99); 5 Jul 2015 19:30:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Jul 2015 19:30:04 +0000 Date: Sun, 5 Jul 2015 19:30:04 +0000 (UTC) From: "Stephan Erb (JIRA)" To: issues@aurora.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AURORA-570) LeaderRedirectFilter should be applied to admin endpoints that depend on storage MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AURORA-570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14614370#comment-14614370 ] Stephan Erb commented on AURORA-570: ------------------------------------ I wanted to look into this, but turns out it is already done: https://github.com/apache/aurora/blob/a1f7b3da64c84fd84f145e0d4cce4ca69341f1ca/src/main/java/org/apache/aurora/scheduler/http/JettyServerModule.java#L236 > LeaderRedirectFilter should be applied to admin endpoints that depend on storage > -------------------------------------------------------------------------------- > > Key: AURORA-570 > URL: https://issues.apache.org/jira/browse/AURORA-570 > Project: Aurora > Issue Type: Story > Components: Scheduler > Reporter: Kevin Sweeney > > Admin endpoints that purely depend on storage state, like /quotas and /cron should redirect to the leader. This simplifies writing tools (curl scripts, etc.) that use these endpoints without the need to link zookeeper libraries. -- This message was sent by Atlassian JIRA (v6.3.4#6332)