This is an automated email from the ASF dual-hosted git repository.
nihaljain pushed a commit to branch branch-3
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-3 by this push:
new bc5ea727551 HBASE-28961 Add essential build plugins to
hbase-diagnostics (#6444) (#6449)
bc5ea727551 is described below
commit bc5ea727551b643d5105a5d0ae9f6b669c4ff1f2
Author: Nihal Jain <[email protected]>
AuthorDate: Thu Nov 7 17:35:17 2024 +0530
HBASE-28961 Add essential build plugins to hbase-diagnostics (#6444) (#6449)
Signed-off-by: Istvan Toth <[email protected]>
(cherry picked from commit 40d9e9db776203cdb6ccf2dacebe7503c68bd79c)
---
hbase-diagnostics/pom.xml | 37 ++++++++++++++++++++++
.../hadoop/hbase/util/MultiThreadedWriter.java | 2 ++
2 files changed, 39 insertions(+)
diff --git a/hbase-diagnostics/pom.xml b/hbase-diagnostics/pom.xml
index dd750dec0be..1b487d0394a 100644
--- a/hbase-diagnostics/pom.xml
+++ b/hbase-diagnostics/pom.xml
@@ -187,4 +187,41 @@
<scope>test</scope>
</dependency>
</dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <!--Make it so assembly:single does nothing in here-->
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <skipAssembly>true</skipAssembly>
+ </configuration>
+ </plugin>
+ <!-- Make a jar and put the sources in the jar -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>jar</goal>
+ <goal>test-jar</goal>
+ </goals>
+ <phase>package</phase>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <configuration>
+ <failOnViolation>true</failOnViolation>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>net.revelc.code</groupId>
+ <artifactId>warbucks-maven-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
</project>
diff --git
a/hbase-diagnostics/src/main/java/org/apache/hadoop/hbase/util/MultiThreadedWriter.java
b/hbase-diagnostics/src/main/java/org/apache/hadoop/hbase/util/MultiThreadedWriter.java
index db3799464b6..28cc0672a53 100644
---
a/hbase-diagnostics/src/main/java/org/apache/hadoop/hbase/util/MultiThreadedWriter.java
+++
b/hbase-diagnostics/src/main/java/org/apache/hadoop/hbase/util/MultiThreadedWriter.java
@@ -34,10 +34,12 @@ import
org.apache.hadoop.hbase.client.RetriesExhaustedWithDetailsException;
import org.apache.hadoop.hbase.client.Table;
import org.apache.hadoop.hbase.util.test.LoadTestDataGenerator;
import org.apache.hadoop.util.StringUtils;
+import org.apache.yetus.audience.InterfaceAudience;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/** Creates multiple threads that write key/values into the */
[email protected]
public class MultiThreadedWriter extends MultiThreadedWriterBase {
private static final Logger LOG =
LoggerFactory.getLogger(MultiThreadedWriter.class);