Uploaded image for project: 'Marathon'
  1. Marathon
  2. MARATHON-8263

"java.lang.IllegalStateException: WRITER" thrown when accessing /v2/events without authorization

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: DC/OS 1.11.3, DC/OS 1.10.8
    • Component/s: None
    • Labels:
      None

      Description

      Overview

      When the endpoint /v2/events is accessed, and the active authorization plug-in rejects the request, we see the following error:

      2018-06-06 20:03:18: java.lang.IllegalStateException: WRITER
      2018-06-06 20:03:18: at org.eclipse.jetty.server.Response.getOutputStream(Response.java:862)
      2018-06-06 20:03:18: at javax.servlet.ServletResponseWrapper.getOutputStream(ServletResponseWrapper.java:142)
      2018-06-06 20:03:18: at mesosphere.marathon.api.HTTPMetricsFilter$ResponseCounterWrapper.stream$lzycompute(HTTPMetricsFilter.scala:44)
      2018-06-06 20:03:18: at mesosphere.marathon.api.HTTPMetricsFilter$ResponseCounterWrapper.stream(HTTPMetricsFilter.scala:44)
      2018-06-06 20:03:18: at mesosphere.marathon.api.HTTPMetricsFilter$ResponseCounterWrapper.bytesWritten(HTTPMetricsFilter.scala:45)
      2018-06-06 20:03:18: at mesosphere.marathon.api.HTTPMetricsFilter.doFilter(HTTPMetricsFilter.scala:123)
      2018-06-06 20:03:18: at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
      2018-06-06 20:03:18: at mesosphere.marathon.api.CORSFilter.doFilter(CORSFilter.scala:41)
      2018-06-06 20:03:18: at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
      2018-06-06 20:03:18: at mesosphere.marathon.api.LimitConcurrentRequestsFilter.pass(LimitConcurrentRequestsFilter.scala:31)
      2018-06-06 20:03:18: at mesosphere.marathon.api.LimitConcurrentRequestsFilter.$anonfun$filterFunction$4(LimitConcurrentRequestsFilter.scala:16)
      2018-06-06 20:03:18: at mesosphere.marathon.api.LimitConcurrentRequestsFilter.$anonfun$filterFunction$4$adapted(LimitConcurrentRequestsFilter.scala:1
      6)
      2018-06-06 20:03:18: at mesosphere.marathon.api.LimitConcurrentRequestsFilter.doFilter(LimitConcurrentRequestsFilter.scala:35)
      2018-06-06 20:03:18: at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
      2018-06-06 20:03:18: at mesosphere.marathon.api.LeaderProxyFilter.doFilter(LeaderProxyFilter.scala:93)
      2018-06-06 20:03:18: at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
      2018-06-06 20:03:18: at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582)
      2018-06-06 20:03:18: at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
      2018-06-06 20:03:18: at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)
      2018-06-06 20:03:18: at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
      2018-06-06 20:03:18: at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      2018-06-06 20:03:18: at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
      2018-06-06 20:03:18: at com.codahale.metrics.jetty9.InstrumentedHandler.handle(InstrumentedHandler.java:241)
      2018-06-06 20:03:18: at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
      2018-06-06 20:03:18: at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:493)
      2018-06-06 20:03:18: at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
      2018-06-06 20:03:18: at org.eclipse.jetty.server.Server.handle(Server.java:539)
      2018-06-06 20:03:18: at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333)
      2018-06-06 20:03:18: at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
      2018-06-06 20:03:18: at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)
      2018-06-06 20:03:18: at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108)
      2018-06-06 20:03:18: at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:251)
      2018-06-06 20:03:18: at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)
      2018-06-06 20:03:18: at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108)
      2018-06-06 20:03:18: at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
      2018-06-06 20:03:18: at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
      2018-06-06 20:03:18: at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
      2018-06-06 20:03:18: at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
      2018-06-06 20:03:18: at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
      2018-06-06 20:03:18: at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
      

        Attachments

          Activity

            People

            • Assignee:
              tharper Tim Harper
              Reporter:
              tharper Tim Harper
              Team:
              Orchestration Team
              Watchers:
              Tim Harper
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: