[
https://issues.apache.org/jira/browse/HBASE-29325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18004563#comment-18004563
]
Hudson commented on HBASE-29325:
--------------------------------
Results for branch branch-3
[build #438 on
builds.a.o|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-3/438/]:
(/) *{color:green}+1 overall{color}*
----
details (if available):
(/) {color:green}+1 general checks{color}
-- For more information [see general
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-3/438/General_20Nightly_20Build_20Report/]
(/) {color:green}+1 jdk17 hadoop3 checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-3/438/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 jdk17 hadoop 3.3.5 backward compatibility checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-3/438/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 jdk17 hadoop 3.3.6 backward compatibility checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-3/438/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 jdk17 hadoop 3.4.0 backward compatibility checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-3/438/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 source release artifact{color}
-- See build output for details.
(/) {color:green}+1 client integration test for 3.3.5 {color}
(/) {color:green}+1 client integration test for 3.3.6 {color}
(/) {color:green}+1 client integration test for 3.4.0 {color}
(/) {color:green}+1 client integration test for 3.4.1 {color}
> Gson reflection failures on TestBucketCache.testCacheSimple
> -----------------------------------------------------------
>
> Key: HBASE-29325
> URL: https://issues.apache.org/jira/browse/HBASE-29325
> Project: HBase
> Issue Type: Bug
> Affects Versions: 3.0.0-beta-1, 4.0.0-alpha-1, 2.7.0, 2.6.2
> Reporter: Wellington Chevreuil
> Assignee: Wellington Chevreuil
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.7.0, 3.0.0-beta-2, 2.6.3
>
>
> This seems to happen for some specific jdk implementations. Observed on my
> local environment when executing it with Java HotSpot(TM) 64-Bit Server VM
> (build 17.0.8+9-LTS-211:
> {noformat}
> [ERROR]
> org.apache.hadoop.hbase.io.hfile.bucket.TestBucketCache.testCacheSimple[0:
> blockSize=8,192, bucketSizes=null] Time elapsed: 1.722 s <<< FAILURE!
> java.lang.AssertionError:
> conversion to JSON should not fail, exception
> is:org.apache.hbase.thirdparty.com.google.gson.JsonIOException: Failed making
> field 'java.util.concurrent.locks.ReentrantLock#sync' accessible; either
> increase its visibility or write a custom TypeAdapter for its declaring type.
> See
> https://github.com/google/gson/blob/main/Troubleshooting.md#reflection-inaccessible
> at org.junit.Assert.fail(Assert.java:89)
> at
> org.apache.hadoop.hbase.io.hfile.CacheTestUtils.testConvertToJSON(CacheTestUtils.java:371)
> at
> org.apache.hadoop.hbase.io.hfile.CacheTestUtils.testCacheSimple(CacheTestUtils.java:166)
> at
> org.apache.hadoop.hbase.io.hfile.bucket.TestBucketCache.testCacheSimple(TestBucketCache.java:237)
> {noformat}
> Apparently, the pre-commit build running with Eclipse Adoptium-17.0.11+9
> doesn't face this problem.
> Possible fix is to set exclusion on private fields in the
> GsonUtil.createGson() method.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)