[
https://issues.apache.org/jira/browse/IGNITE-6277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16167784#comment-16167784
]
Eduard Shangareev edited comment on IGNITE-6277 at 9/15/17 12:08 PM:
---------------------------------------------------------------------
Some tips how to use {{converter}}:
Example of command line:
{code}
java -cp
"lib/ignite-dev-utils-2.3.0-SNAPSHOT.jar:lib/ignite-indexing-2.3.0-SNAPSHOT.jar:lib/ignite-core-2.3.0-SNAPSHOT.jar:~/.m2/repository/com/h2database/h2/1.4.195/h2-1.4.195.jar"
org.apache.ignite.development.utils.IgniteWalConverter 4096
~/IdeaProjects/incubator-ignite/work/db/wal/127_0_0_1_47503
~/IdeaProjects/incubator-ignite/work/db/wal/archive/127_0_0_1_47503
{code}
You need to pass as argument:
1. Page size.
2. Path to WAL dir.
3. (Optional) Path to Archive WAL dir.
was (Author: edshanggg):
Some tips how to use {{converter}}:
Example of command line:
{code}
java -cp
"lib/ignite-dev-utils-2.3.0-SNAPSHOT.jar:lib/ignite-indexing-2.3.0-SNAPSHOT.jar:lib/ignite-core-2.3.0-SNAPSHOT.jar:~/.m2/repository/com/h2database/h2/1.4.195/h2-1.4.195.jar"
org.apache.ignite.development.utils.IgniteWalConverter 4096
/Users/ed/IdeaProjects/incubator-ignite/work/db/wal/127_0_0_1_47503
/Users/ed/IdeaProjects/incubator-ignite/work/db/wal/archive/127_0_0_1_47503
{code}
You need to pass as argument:
1. Page size.
2. Path to WAL dir.
3. (Optional) Path to Archive WAL dir.
> Convert WAL to human readable form
> ----------------------------------
>
> Key: IGNITE-6277
> URL: https://issues.apache.org/jira/browse/IGNITE-6277
> Project: Ignite
> Issue Type: Bug
> Components: persistence
> Affects Versions: 2.1
> Reporter: Eduard Shangareev
> Assignee: Alexey Goncharuk
> Fix For: 2.3
>
>
> Now there is no way to make wal visible or understandable without coding.
> I propose to write utility which would convert any given compatible WAL to
> textual form.
> Something like this:
> {code}
> [W] InsertRecord [idx=19, io=H2ExtrasLeafIO[ver=1], rightId=0000000000000000,
> super=PageDeltaRecord [grpId=2141373875, pageId=0002ffff00000011,
> super=WALRecord [size=61, chainSize=0, pos=FileWALPointer [idx=0,
> fileOffset=2504497, len=61, forceFlush=false], type=BTREE_PAGE_INSERT]]]
> [W] DataRecord [writeEntries=[DataEntry [op=CREATE, writeVer=GridCacheVersion
> [topVer=116006687, order=0, nodeOrder=1], partId=29, partCnt=33]],
> super=WALRecord [size=171, chainSize=0, pos=FileWALPointer [idx=0,
> fileOffset=2504558, len=171, forceFlush=false], type=DATA_RECORD]]
> [W] PagesListRemovePageRecord [rmvdPageId=0001000c0000002f,
> pageId=0001000c0000000a, grpId=-1368047377, super=PageDeltaRecord
> [grpId=-1368047377, pageId=0001000c0000000a, super=WALRecord [size=37,
> chainSize=0, pos=FileWALPointer [idx=0, fileOffset=2504729, len=37,
> forceFlush=false], type=PAGES_LIST_REMOVE_PAGE]]]
> [W] DataPageInsertRecord [super=PageDeltaRecord [grpId=-1368047377,
> pageId=0001000c0000002f, super=WALRecord [size=76, chainSize=0,
> pos=FileWALPointer [idx=0, fileOffset=2504766, len=76, forceFlush=false],
> type=DATA_PAGE_INSERT_RECORD]]]
> [W] PagesListAddPageRecord [dataPageId=0001000c0000002f,
> super=PageDeltaRecord [grpId=-1368047377, pageId=0001000c0000000b,
> super=WALRecord [size=37, chainSize=0, pos=FileWALPointer [idx=0,
> fileOffset=2504842, len=37, forceFlush=false], type=PAGES_LIST_ADD_PAGE]]]
> [W] DataPageSetFreeListPageRecord [freeListPage=281526516318219,
> super=PageDeltaRecord [grpId=-1368047377, pageId=0001000c0000002f,
> super=WALRecord [size=37, chainSize=0, pos=FileWALPointer [idx=0,
> fileOffset=2504879, len=37, forceFlush=false],
> type=DATA_PAGE_SET_FREE_LIST_PAGE]]]
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)