int-checks-oracle - Build # 1580 - Failure:
Check console output at https://ci.openbravo.com/job/int-checks-oracle/1580/ to
view the results.
Committers since last success:
Changes for Build #1580
Unai Martirena <[email protected]> null
Fixes bug 29708, Fixes bug 29936: Improve performance and memory problems
2 Problems are happening in Costing Background process:
1) Java Heap error: This problem happens because getTransactions method can
load on memory a lot of objects and even an ScrollableResult is being used the
following sentence
'OBDal.getInstance().getConnection().setHoldability(ResultSet.HOLD_CURSORS_OVER_COMMIT)'
prevents in fact to scroll properly the ScrollableResult. To avoid this issue
the query of getTransactions method has been changed to return only 1000
records. So, instead of calling just once this method it is done once each 1000
records.
Also instead of returning a list of 1000 MaterialTransaction objects, that can
be a relatively big amount of objects to load in memory, only the Ids are
returned and each id the it is instanced on each iteration.
2) Performance problems: The process has a performance issue because it does a
commit on each iteration of the list. Now, this has been changed to do commit
every 1000 records, and in case that an exception is raised on a certain
iteration a new method has been added in catch clause to calculate the cost of
the transactions that have been rolledback but which there were properly
calculated.
src/org/openbravo/costing/CostingBackground.java
Víctor Martínez Romanos <[email protected]> null
Related to issue 30037: updated copyright
src-db/database/model/functions/MA_WORKEFFORT_VALIDATE.xml
Jorge Garcia <[email protected]> null
Fixed issue 30037: Completed quantity in the Work Requirement is not updated
Completed quantity in the Work Requirement is not updated under some
circumstances.
The problem was that the ma_workeffort_validate wasn't updated the UPDATED
column of the ma_wrpahse table and you can save even if the line had changed in
the work effort window.
The solution is to update the column with the actual date. Now, when you try to
save it, a error appears in the grid and the save is canceled.
src-db/database/model/functions/MA_WORKEFFORT_VALIDATE.xml
Naroa Iriarte <[email protected]> null
Fixed issue 29863: Title of process buttons are not showing the correct
text.
When a process button allows multiple selection, the text shown in the button
was not correct.
The problem was that the code for handling the change of the text inside a
process button, that allows multiple selection,
didn't exist before.
To fix this the code needed to deal with the change of the name of the button
for multiple selection has been created.
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js
Last 20 lines of the console output:
[...truncated 11885 lines...]
at hudson.model.Executor.run(Executor.java:237)
Caused by: hudson.remoting.RequestAbortedException:
hudson.remoting.Channel$OrderlyShutdown: java.util.concurrent.TimeoutException:
Ping started on 1433438810513 hasn't completed at 1433439050585
at hudson.remoting.Request.abort(Request.java:299)
at hudson.remoting.Channel.terminate(Channel.java:774)
at hudson.remoting.Channel$CloseCommand.execute(Channel.java:919)
at hudson.remoting.Channel$2.handle(Channel.java:461)
at
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60)
Caused by: hudson.remoting.Channel$OrderlyShutdown:
java.util.concurrent.TimeoutException: Ping started on 1433438810513 hasn't
completed at 1433439050585
... 3 more
Caused by: Command close created at
at hudson.remoting.Command.<init>(Command.java:56)
at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:913)
at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:911)
at hudson.remoting.Channel.close(Channel.java:994)
at hudson.slaves.ChannelPinger$1.onDead(ChannelPinger.java:110)
at hudson.remoting.PingThread.ping(PingThread.java:120)
at hudson.remoting.PingThread.run(PingThread.java:81)
Caused by: java.util.concurrent.TimeoutException: Ping started on 1433438810513
hasn't completed at 1433439050585
... 2 more
------------------------------------------------------------------------------
_______________________________________________
Openbravo-builds mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-builds