apache / apache/arrow-java

[Java][Release] Checkstyle plugin fails on ORC log4j.properties files

Đang mở
#381 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Type: bug
Ngôn ngữ chính
Java
Star
94
Fork
152
Merge trung bình
3 ngày 16 giờ
Pull request đã merge (30 ngày)
11

Mô tả

```Java

[INFO] --- maven-checkstyle-plugin:3.1.0:check (validate) @ arrow-orc ---
[INFO] Starting audit...
[WARNING] ../../../cpp/java-build/orc_ep-prefix/src/orc_ep/java/bench/core/src/resources/log4j.properties:[1] (misc) NewlineAtEndOfFile: File does not end with a newline. [2/13566]
[WARNING] ../../../cpp/java-build/orc_ep-prefix/src/orc_ep/java/bench/core/src/resources/log4j.properties:[1] (header) Header: Line does not match expected header line of '/*'.
[WARNING] ../../../cpp/java-build/orc_ep-prefix/src/orc_ep/java/tools/src/test/resources/log4j.properties:[1] (misc) NewlineAtEndOfFile: File does not end with a newline.
[WARNING] ../../../cpp/java-build/orc_ep-prefix/src/orc_ep/java/tools/src/test/resources/log4j.properties:[1] (header) Header: Line does not match expected header line of '/*'.
[WARNING] ../../../cpp/java-build/orc_ep-prefix/src/orc_ep/java/core/src/test/resources/log4j.properties:[1] (misc) NewlineAtEndOfFile: File does not end with a newline.
[WARNING] ../../../cpp/java-build/orc_ep-prefix/src/orc_ep/java/core/src/test/resources/log4j.properties:[1] (header) Header: Line does not match expected header line of '/*'.
[WARNING] ../../../cpp/java-build/orc_ep-prefix/src/orc_ep/java/shims/src/test/resources/log4j.properties:[1] (misc) NewlineAtEndOfFile: File does not end with a newline.
[WARNING] ../../../cpp/java-build/orc_ep-prefix/src/orc_ep/java/shims/src/test/resources/log4j.properties:[1] (header) Header: Line does not match expected header line of '/*'.
[WARNING] ../../../cpp/java-build/orc_ep-prefix/src/orc_ep/java/mapreduce/src/test/resources/log4j.properties:[1] (misc) NewlineAtEndOfFile: File does not end with a newline.
[WARNING] ../../../cpp/java-build/orc_ep-prefix/src/orc_ep/java/mapreduce/src/test/resources/log4j.properties:[1] (header) Header: Line does not match expected header line of '/*'.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Arrow Java Root POM 4.0.0 ................... SUCCESS [ 20.941 s]
[INFO] Arrow Format ....................................... SUCCESS [ 13.575 s]
[INFO] Arrow Memory ....................................... SUCCESS [ 3.421 s]
[INFO] Arrow Memory - Core ................................ SUCCESS [ 23.079 s]
[INFO] Arrow Memory - Unsafe .............................. SUCCESS [ 8.857 s]
[INFO] Arrow Memory - Netty ............................... SUCCESS [ 12.396 s]
[INFO] Arrow Vectors ...................................... SUCCESS [05:25 min]
[INFO] Arrow Compression .................................. SUCCESS [ 13.225 s]
[INFO] Arrow Tools ........................................ SUCCESS [ 58.561 s]
[INFO] Arrow JDBC Adapter ................................. SUCCESS [ 18.186 s]
[INFO] Arrow Plasma Client ................................ SUCCESS [ 9.206 s]
[INFO] Arrow Flight Core .................................. SUCCESS [01:43 min]
[INFO] Arrow Flight GRPC .................................. SUCCESS [ 13.424 s]
[INFO] Arrow AVRO Adapter ................................. SUCCESS [ 25.145 s]
[INFO] Arrow Algorithms ................................... SUCCESS [ 46.659 s]
[INFO] Arrow Performance Benchmarks ....................... SUCCESS [ 10.682 s]
[INFO] Arrow Orc Adapter .................................. FAILURE [ 0.319 s]
[INFO] Arrow Gandiva ...................................... SKIPPED
[INFO] Arrow Java Dataset 4.0.0 ........................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11:47 min
[INFO] Finished at: 2021-04-26T21:33:31+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0:check (validate) on project arrow-orc: You have 10 Checkstyle violations. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :arrow-orc
```

As a workaround I can skip checkstyle checks using `-Dcheckstyle.skip=true`

**Reporter**: [Krisztian Szucs](https://issues.apache.org/jira/browse/ARROW-12552) / @kszucs

**Note**: *This issue was originally created as [ARROW-12552](https://issues.apache.org/jira/browse/ARROW-12552). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Lỗi được báo cáo đối với các tệp ORC log4j.properties trong cpp/java-build/orc_ep-prefix/src/orc_ep/java, bao gồm bench/core/src/resources và các tài nguyên kiểm thử của core, shims, tools và mapreduce. Hãy bắt đầu bằng việc kiểm tra cách quá trình xác thực checkstyle của arrow-orc xử lý các tệp này, sau đó tiếp tục Maven build tại :arrow-orc và xác nhận rằng mười vi phạm được báo cáo đã được giải quyết.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
build-system
Loại issue
Lỗi
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.