This is an automated email from the ASF dual-hosted git repository. nixon pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/master by this push: new 2e0caef ATLAS-4250 : Support HA for admin/tasks API. 2e0caef is described below commit 2e0caefdd3b37df8ff9322dc4c14306d2df9dac6 Author: nixonrodrigues <ni...@apache.org> AuthorDate: Wed Apr 21 15:39:26 2021 +0530 ATLAS-4250 : Support HA for admin/tasks API. --- .../src/main/java/org/apache/atlas/web/filters/ActiveServerFilter.java | 2 +- .../test/java/org/apache/atlas/web/filters/ActiveServerFilterTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/src/main/java/org/apache/atlas/web/filters/ActiveServerFilter.java b/webapp/src/main/java/org/apache/atlas/web/filters/ActiveServerFilter.java index 98eb3d3..a1d30ba 100644 --- a/webapp/src/main/java/org/apache/atlas/web/filters/ActiveServerFilter.java +++ b/webapp/src/main/java/org/apache/atlas/web/filters/ActiveServerFilter.java @@ -110,7 +110,7 @@ public class ActiveServerFilter implements Filter { } final String adminUriNotFiltered[] = { "/admin/export", "/admin/import", "/admin/importfile", "/admin/audits", - "/admin/purge", "/admin/expimp/audit", "/admin/metrics", "/admin/server", "/admin/audit/" }; + "/admin/purge", "/admin/expimp/audit", "/admin/metrics", "/admin/server", "/admin/audit/", "admin/tasks"}; private boolean isFilteredURI(ServletRequest servletRequest) { HttpServletRequest httpServletRequest = (HttpServletRequest) servletRequest; String requestURI = httpServletRequest.getRequestURI(); diff --git a/webapp/src/test/java/org/apache/atlas/web/filters/ActiveServerFilterTest.java b/webapp/src/test/java/org/apache/atlas/web/filters/ActiveServerFilterTest.java index defa5bb..04b4e4a 100644 --- a/webapp/src/test/java/org/apache/atlas/web/filters/ActiveServerFilterTest.java +++ b/webapp/src/test/java/org/apache/atlas/web/filters/ActiveServerFilterTest.java @@ -107,7 +107,7 @@ public class ActiveServerFilterTest { public void adminImportRequestsToPassiveServerShouldToActiveServerAddress() throws IOException, ServletException { String importExportUrls[] = {"api/admin/export", "api/admin/import", "api/admin/importfile", "api/admin/audits", "api/admin/purge", "api/admin/expimp/audit", "api/admin/metrics", - "api/admin/server/dummy_name", "api/admin/audit/dummy_guid/details"}; + "api/admin/server/dummy_name", "api/admin/audit/dummy_guid/details", "api/admin/tasks"}; for (String partialUrl : importExportUrls) { when(serviceState.getState()).thenReturn(ServiceState.ServiceStateValue.PASSIVE);