You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2020/10/01 15:00:06 UTC
[hbase] branch HBASE-25139 updated: check free space
This is an automated email from the ASF dual-hosted git repository.
zhangduo pushed a commit to branch HBASE-25139
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/HBASE-25139 by this push:
new 4f52f9f check free space
4f52f9f is described below
commit 4f52f9ff44c43786a2d9866606ca23bada6e0be5
Author: Duo Zhang <zh...@apache.org>
AuthorDate: Thu Oct 1 22:59:28 2020 +0800
check free space
---
hbase-client/src/test/java/org/apache/hadoop/hbase/TestNetty.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hbase-client/src/test/java/org/apache/hadoop/hbase/TestNetty.java b/hbase-client/src/test/java/org/apache/hadoop/hbase/TestNetty.java
index f6c98b3..52d088f 100644
--- a/hbase-client/src/test/java/org/apache/hadoop/hbase/TestNetty.java
+++ b/hbase-client/src/test/java/org/apache/hadoop/hbase/TestNetty.java
@@ -17,6 +17,7 @@
*/
package org.apache.hadoop.hbase;
+import java.io.File;
import java.net.InetSocketAddress;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.testclassification.ClientTests;
@@ -44,6 +45,8 @@ public class TestNetty {
@Test
public void test() throws Exception {
+ LOG.info("Free space for /: {}", new File("/").getFreeSpace());
+ LOG.info("Free space for /home/jenkins: {}", new File("/home/jenkins").getFreeSpace());
Configuration conf = HBaseConfiguration.create();
String hostname = DNS.getHostname(conf, DNS.ServerType.MASTER);
LOG.info("hostname is {}", hostname);