Skip to content

Commit 1d66a4e

Browse files
arkmishCopilot
andcommitted
Add validated snapshot-only metadata export (D2)
Stream versioned node, namespace and true-session metadata without values or credential-bearing ACL IDs. Validate the selected source, enforce optional output budgets and publish a checksummed manifest atomically last. Reuse the D1 native snapshot loader and expose iterative preorder traversal without changing the summary CLI. Keep capture and owner uncertainty explicit; do not replay transaction logs or infer recovery completeness. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0570e41 commit 1d66a4e

7 files changed

Lines changed: 2056 additions & 32 deletions

File tree

‎bin/zkOfflineAudit.cmd‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
@echo off
2+
REM Licensed to the Apache Software Foundation (ASF) under one or more
3+
REM contributor license agreements. See the NOTICE file distributed with
4+
REM this work for additional information regarding copyright ownership.
5+
REM The ASF licenses this file to You under the Apache License, Version 2.0
6+
REM (the "License"); you may not use this file except in compliance with
7+
REM the License. You may obtain a copy of the License at
8+
REM
9+
REM http://www.apache.org/licenses/LICENSE-2.0
10+
REM
11+
REM Unless required by applicable law or agreed to in writing, software
12+
REM distributed under the License is distributed on an "AS IS" BASIS,
13+
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
REM See the License for the specific language governing permissions and
15+
REM limitations under the License.
16+
17+
setlocal
18+
call "%~dp0zkEnv.cmd"
19+
20+
set ZOOMAIN=org.apache.zookeeper.server.OfflineAuditExporter
21+
call %JAVA% -cp "%CLASSPATH%" %JVMFLAGS% %ZOOMAIN% %*
22+
23+
endlocal & exit /b %ERRORLEVEL%

‎bin/zkOfflineAudit.sh‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env bash
2+
3+
# Licensed to the Apache Software Foundation (ASF) under one or more
4+
# contributor license agreements. See the NOTICE file distributed with
5+
# this work for additional information regarding copyright ownership.
6+
# The ASF licenses this file to You under the Apache License, Version 2.0
7+
# (the "License"); you may not use this file except in compliance with
8+
# the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
18+
ZOOBIN="${BASH_SOURCE-$0}"
19+
ZOOBIN="$(dirname "${ZOOBIN}")"
20+
ZOOBINDIR="$(cd "${ZOOBIN}"; pwd)"
21+
22+
if [ -e "$ZOOBIN/../libexec/zkEnv.sh" ]; then
23+
. "$ZOOBINDIR"/../libexec/zkEnv.sh
24+
else
25+
. "$ZOOBINDIR"/zkEnv.sh
26+
fi
27+
28+
"$JAVA" -cp "$CLASSPATH" $JVMFLAGS \
29+
org.apache.zookeeper.server.OfflineAuditExporter "$@"

‎zookeeper-docs/src/main/resources/markdown/zookeeperTools.md‎

Lines changed: 266 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)