[
https://issues.apache.org/jira/browse/IGNITE-13912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17286293#comment-17286293
]
Kirill Tkalenko commented on IGNITE-13912:
------------------------------------------
Hi, [~shm]! I propose to create a PR(from the master branch) in which there
will be a reproducer that can be easily launched.
New error:
{noformat}
C:\Users\tkalk\Downloads>java -cp inventory-1.0-SNAPSHOT-shaded.jar
com.test.app.InventoryCreate config.properties yes
Connecting to Ignite database...
java.sql.SQLException: Failed to connect to server
[url=jdbc:ignite:thin://localhost:10800/PUBLIC]
at
org.apache.ignite.internal.jdbc.thin.JdbcThinConnection.handleConnectExceptions(JdbcThinConnection.java:1760)
at
org.apache.ignite.internal.jdbc.thin.JdbcThinConnection.connectInCommonMode(JdbcThinConnection.java:1737)
at
org.apache.ignite.internal.jdbc.thin.JdbcThinConnection.<init>(JdbcThinConnection.java:290)
at
org.apache.ignite.IgniteJdbcThinDriver.connect(IgniteJdbcThinDriver.java:154)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at com.test.app.Inventory.setupConnection(Inventory.java:200)
at com.test.app.InventoryCreate.main(InventoryCreate.java:38)
Suppressed: java.sql.SQLException: Failed to connect to server
[host=localhost, port=10800]
at
org.apache.ignite.internal.jdbc.thin.JdbcThinTcpIo.<init>(JdbcThinTcpIo.java:190)
at
org.apache.ignite.internal.jdbc.thin.JdbcThinConnection.connectInCommonMode(JdbcThinConnection.java:1709)
... 6 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown
Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown
Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at
org.apache.ignite.internal.jdbc.thin.JdbcThinTcpIo.<init>(JdbcThinTcpIo.java:186)
... 7 more
Suppressed: java.sql.SQLException: Failed to connect to server
[host=localhost, port=10800]
at
org.apache.ignite.internal.jdbc.thin.JdbcThinTcpIo.<init>(JdbcThinTcpIo.java:190)
at
org.apache.ignite.internal.jdbc.thin.JdbcThinConnection.connectInCommonMode(JdbcThinConnection.java:1709)
... 6 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown
Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown
Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at
org.apache.ignite.internal.jdbc.thin.JdbcThinTcpIo.<init>(JdbcThinTcpIo.java:186)
... 7 more
Cleaning up Tables and Indexes...
Cleaning up table...
java.lang.NullPointerException
at com.test.app.Inventory.cleanupTable(Inventory.java:24)
at com.test.app.InventoryCreate.main(InventoryCreate.java:44)
Cleaning up table...
java.lang.NullPointerException
at com.test.app.Inventory.cleanupTable(Inventory.java:24)
at com.test.app.InventoryCreate.main(InventoryCreate.java:45)
Cleaning up table...
java.lang.NullPointerException
at com.test.app.Inventory.cleanupTable(Inventory.java:24)
at com.test.app.InventoryCreate.main(InventoryCreate.java:46)
Cleaning up index...
java.lang.NullPointerException
at com.test.app.Inventory.cleanupIndex(Inventory.java:49)
at com.test.app.InventoryCreate.main(InventoryCreate.java:47)
Goodbye!
{noformat}
> Incorrect calculation of WAL segments that should be deleted from WAL archive
> -----------------------------------------------------------------------------
>
> Key: IGNITE-13912
> URL: https://issues.apache.org/jira/browse/IGNITE-13912
> Project: Ignite
> Issue Type: Bug
> Components: persistence
> Reporter: Kirill Tkalenko
> Assignee: Kirill Tkalenko
> Priority: Critical
> Fix For: 2.10
>
> Attachments: config.properties, ignite-config, reproducer.zip,
> server1-full-wal-checkpoint.log, wal-checkpoint-logs, wal_dir_contents,
> wal_grows_from_peak.PNG, wal_issue_reproduced.PNG, wal_usage.PNG,
> wal_usage_dec12.PNG, wal_usage_dec22nd_binary.PNG
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Now there is an incorrect calculation of WAL segments that should be deleted
> from WAL archive. Since we delete only those segments whose total size should
> not exceed *DataStorageConfiguration#maxWalArchiveSize *
> IGNITE_THRESHOLD_WAL_ARCHIVE_SIZE_PERCENTAGE*, but should be up to
> DataStorageConfiguration#maxWalArchiveSize *
> IGNITE_THRESHOLD_WAL_ARCHIVE_SIZE_PERCENTAGE*. Therefore, an excess of
> *DataStorageConfiguration#maxWalArchiveSize* occurs.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)