[JIRA] (JENKINS-54641) UnsupportedOperation Flooding Jenkins Master

62 views
Skip to first unread message

m@phrk.de (JIRA)

unread,
Nov 15, 2018, 4:54:02 AM11/15/18
to jenkinsc...@googlegroups.com
Stephan Watermeyer updated an issue
 
Jenkins / Bug JENKINS-54641
UnsupportedOperation Flooding Jenkins Master
Change By: Stephan Watermeyer
Summary: UnsupportedOperation Flooging Flooding Jenkins Master
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

m@phrk.de (JIRA)

unread,
Nov 15, 2018, 4:55:02 AM11/15/18
to jenkinsc...@googlegroups.com
Stephan Watermeyer updated an issue
Since yesterday we've installed the logfilesizechecker-plugin on our Jenkins (2.138.3) and the Jenkins Log is flodded flooded with the following Exception
{code}
Avoid calling getLogFile on sanmx-tm/feature%-1-payment #1
java.lang.UnsupportedOperationException
at org.jenkinsci.plugins.workflow.job.WorkflowRun.getLogFile(WorkflowRun.java:1082)
at hudson.plugins.logfilesizechecker.LogfilesizecheckerWrapper$LogSizeTimerTask.doRun(LogfilesizecheckerWrapper.java:108)
at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:72)
at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:58)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
{code}

The Exception is written in the log, as the method _getLogFile()_ is deprecated.
https://javadoc.jenkins.io/plugin/workflow-job/org/jenkinsci/plugins/workflow/job/WorkflowRun.html#getLogFile--

{code}
@Deprecated
    @Override public File getLogFile() {
        LOGGER.log(Level.WARNING, "Avoid calling getLogFile on " + this, new UnsupportedOperationException());
        return LogStorage.of(asFlowExecutionOwner()).getLogFile(this, !isLogUpdated());
    }
{code}

Our filesystem on the master went out of space, as due to our amount of Jobs and the Timersettings in the plugin the code is called very often.

m@phrk.de (JIRA)

unread,
Nov 15, 2018, 4:57:02 AM11/15/18
to jenkinsc...@googlegroups.com
Stephan Watermeyer updated an issue
Since yesterday we've installed the logfilesizechecker-plugin on our Jenkins (2.138.3) and the Jenkins Log is flooded with the following Exception

{code}
Avoid calling getLogFile on sanmx-tm/feature%-1-payment #1
java.lang.UnsupportedOperationException
at org.jenkinsci.plugins.workflow.job.WorkflowRun.getLogFile(WorkflowRun.java:1082)
at hudson.plugins.logfilesizechecker.LogfilesizecheckerWrapper$LogSizeTimerTask.doRun(LogfilesizecheckerWrapper.java:108)
at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:72)
at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:58)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
{code}

The Exception is written in the log, as the method _getLogFile()_ is deprecated.
https://javadoc.jenkins.io/plugin/workflow-job/org/jenkinsci/plugins/workflow/job/WorkflowRun.html#getLogFile--

{code}
@Deprecated
    @Override public File getLogFile() {
        LOGGER.log(Level.WARNING, "Avoid calling getLogFile on " + this, new UnsupportedOperationException());
        return LogStorage.of(asFlowExecutionOwner()).getLogFile(this, !isLogUpdated());
    }
{code}

Our filesystem on the master went out of space, as due to our amount of Jobs and the Timersettings in the plugin the code is called very often.


We've installed the plugin to prevent that builds are flooding the filesystem with logs and now the plugin itself does the flooding. Thats bad humor ;)

o.v.nenashev@gmail.com (JIRA)

unread,
Nov 15, 2018, 6:37:02 AM11/15/18
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
Change By: Oleg Nenashev
Labels: pipeline-compatibility

stefan.brausch@1und1.de (JIRA)

unread,
Nov 15, 2018, 6:49:02 AM11/15/18
to jenkinsc...@googlegroups.com
Stefan Brausch updated Bug JENKINS-54641
 

Fixed version 1.5 should be available in update center soon.

Change By: Stefan Brausch
Status: Open Fixed but Unreleased
Resolution: Fixed

stefan.brausch@1und1.de (JIRA)

unread,
Nov 15, 2018, 6:59:02 AM11/15/18
to jenkinsc...@googlegroups.com

m@phrk.de (JIRA)

unread,
Nov 15, 2018, 7:06:01 AM11/15/18
to jenkinsc...@googlegroups.com
Stephan Watermeyer commented on Bug JENKINS-54641
 
Re: UnsupportedOperation Flooding Jenkins Master

Thanks Stefan. Will check again with the version and come back to you asap.

m@phrk.de (JIRA)

unread,
Nov 15, 2018, 7:09:02 AM11/15/18
to jenkinsc...@googlegroups.com
Stephan Watermeyer updated an issue
Change By: Stephan Watermeyer
Since yesterday we've installed the logfilesizechecker-plugin on our Jenkins (2.138.3) and the Jenkins Log is flooded with the following Exception
{code}
Avoid calling getLogFile on sanmx-tm/feature%-1-payment #1
java.lang.UnsupportedOperationException
at org.jenkinsci.plugins.workflow.job.WorkflowRun.getLogFile(WorkflowRun.java:1082)
at hudson.plugins.logfilesizechecker.LogfilesizecheckerWrapper$LogSizeTimerTask.doRun(LogfilesizecheckerWrapper.java:108)
at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:72)
at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:58)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
{code}

The Exception is written in the log, as the method _getLogFile()_ is deprecated.
https://javadoc.jenkins.io/plugin/workflow-job/org/jenkinsci/plugins/workflow/job/WorkflowRun.html#getLogFile--

{code}
@Deprecated
    @Override public File getLogFile() {
        LOGGER.log(Level.WARNING, "Avoid calling getLogFile on " + this, new UnsupportedOperationException());
        return LogStorage.of(asFlowExecutionOwner()).getLogFile(this, !isLogUpdated());
    }
{code}

Our filesystem on the master went out of space, as due to our amount of Jobs and the Timersettings in the plugin the code is called very often.

We've installed the plugin to prevent that builds are flooding the filesystem with logs and now the plugin itself does the flooding. Thats bad humor ;)

m@phrk.de (JIRA)

unread,
Nov 15, 2018, 8:17:01 AM11/15/18
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages