[
https://issues.apache.org/jira/browse/DERBY-2933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517074
]
Kathey Marsden commented on DERBY-2933:
---------------------------------------
The error occurs whenever the datbase is shutdown and can be reproduced with
this script.
It seems there is some cleanup needed of DDMReader when a severe error occurs.
ij> connect 'jdbc:derby://localhost:1527/wombat;create=true';
ij> connect 'jdbc:derby://localhost:1527/;shutdown=true';
totalBytesRead < minimumBytesNeeded
java.lang.Exception: totalBytesRead < minimumBytesNeeded
at org.apache.derby.impl.drda.DDMReader.fill(DDMReader.java:1936)
at
org.apache.derby.impl.drda.DDMReader.ensureALayerDataInBuffer(DDMReader.java:1651)
at
org.apache.derby.impl.drda.DDMReader.readDssHeader(DDMReader.java:321)
at
org.apache.derby.impl.drda.DRDAConnThread.processCommands(DRDAConnThread.java:680)
at
org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:275)
ERROR XJ015: DERBY SQL error: SQLCODE: -1, SQLSTATE: XJ015, SQLERRMC: Derby
system shutdown.
> When network server disconnects due to an I/O Exception it does not always
> log the exception that caused the error
> -------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-2933
> URL: https://issues.apache.org/jira/browse/DERBY-2933
> Project: Derby
> Issue Type: Bug
> Components: Network Server
> Affects Versions: 10.2.2.1
> Reporter: Kathey Marsden
> Assignee: Kathey Marsden
> Attachments: DERBY-2933_no_commit_diff.txt
>
>
> I found this issue when debugging my attempted fix for DERBY-2892. The I/O
> Exception that occurs in writeScalarStream is not logged. To reproduce apply
> the patch in DERBY-2892 and run the repro there.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.