This is an automated email from the ASF dual-hosted git repository.
zhangduo pushed a commit to branch HBASE-29914
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/HBASE-29914 by this push:
new c2e47ebacb8 fix count
c2e47ebacb8 is described below
commit c2e47ebacb867b889abd8c617b6a790889f65397
Author: Duo Zhang <[email protected]>
AuthorDate: Thu Feb 26 14:57:38 2026 +0800
fix count
---
dev-support/hbase_nightly_pseudo-distributed-test.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev-support/hbase_nightly_pseudo-distributed-test.sh
b/dev-support/hbase_nightly_pseudo-distributed-test.sh
index f40fc8197d2..011321a3dc2 100755
--- a/dev-support/hbase_nightly_pseudo-distributed-test.sh
+++ b/dev-support/hbase_nightly_pseudo-distributed-test.sh
@@ -422,7 +422,7 @@ EOF
echo "Verifying row count from import."
echo 'count "test:example"' | "${hbase_client}/bin/hbase" --config
"${working_dir}/hbase-conf/" shell --noninteractive
-import_rowcount=$(echo 'count "test:example"' | "${hbase_client}/bin/hbase"
--config "${working_dir}/hbase-conf/" shell --noninteractive 2>/dev/null | tail
-n 1)
+import_rowcount=$(echo 'count "test:example"' | "${hbase_client}/bin/hbase"
--config "${working_dir}/hbase-conf/" shell --noninteractive 2>/dev/null | grep
"row\(s\)" | awk '{print $1}')
if [ ! "${import_rowcount}" -eq 48 ]; then
echo "ERROR: Instead of finding 48 rows, we found ${import_rowcount}."
exit 2
@@ -536,7 +536,7 @@ EOF
echo "Verifying row count from example."
echo 'count "test:example"' | "${hbase_client}/bin/hbase" --config
"${working_dir}/hbase-conf/" shell --noninteractive
-example_rowcount=$(echo 'count "test:example"' | "${hbase_client}/bin/hbase"
--config "${working_dir}/hbase-conf/" shell --noninteractive 2>/dev/null | tail
-n 1)
+example_rowcount=$(echo 'count "test:example"' | "${hbase_client}/bin/hbase"
--config "${working_dir}/hbase-conf/" shell --noninteractive 2>/dev/null | grep
"row\(s\)" | awk '{print $1}')
if [ "${example_rowcount}" -gt "1050" ]; then
echo "Found ${example_rowcount} rows, which is enough to cover 48 for
import, 1000 example's use of user table regions, 2 for example's use of
meta/namespace regions, and 1 for example's count record"
else