OneOf is set multiple times with different values
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Start in bigtable-client-core-parent/bigtable-client-core/src/main/java/com/google/cloud/bigtable/grpc/BigtableTableAdminClientWrapper.java at the calls near lines 240 and 258. Read the surrounding OneOf target construction and run the Error Prone RedundantSetterCall check. Done means the redundant setter warnings are resolved without changing the intended target behavior.
Written by the indexing model from the issue text.
Description
These calls to OneOf setters in BigtableTableAdminClientWrapper.java overwrite previously set values:
This was noticed because of an Error Prone static check, which reports the following error for that code:
src/main/java/com/google/cloud/bigtable/grpc/BigtableTableAdminClientWrapper.java:240: error: [RedundantSetterCall] The oneof `Target` (set via setDeleteAllDataFromTable, setRowKeyPrefix) was called twice with . Setting the same field multiple times is redundant, and could mask a bug.
.setRowKeyPrefix(rowKeyPrefix)
^
(see https://errorprone.info/bugpattern/RedundantSetterCall)
src/main/java/com/google/cloud/bigtable/grpc/BigtableTableAdminClientWrapper.java:258: error: [RedundantSetterCall] The oneof `Target` (set via setDeleteAllDataFromTable, setRowKeyPrefix) was called twice with . Setting the same field multiple times is redundant, and could mask a bug.
.setRowKeyPrefix(rowKeyPrefix)
^
(see https://errorprone.info/bugpattern/RedundantSetterCall)
- Dominant language
- Java
- Stars
- 184
- Forks
- 184
- Avg merge
- 10h
- Merged PRs (30d)
- 6
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from googleapis/java-bigtable-hbase
-
api: bigtable flakybot: flaky flakybot: issue priority: p2 type: bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
googleapis/java-bigtable-hbase#4627 · 1 comment ·
-
api: bigtable flakybot: flaky flakybot: issue priority: p2 type: bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
googleapis/java-bigtable-hbase#4591 · 1 comment ·
-
api: bigtable flakybot: flaky flakybot: issue priority: p2 type: bug
Difficulty 4/5 3-5 days Newbie friendliness 25/100
googleapis/java-bigtable-hbase#4589 · 1 comment ·
-
api: bigtable flakybot: flaky flakybot: issue priority: p2 type: bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
googleapis/java-bigtable-hbase#4588 · 1 comment ·
-
api: bigtable flakybot: flaky flakybot: issue priority: p2 type: bug
Difficulty 4/5 3-5 days Newbie friendliness 32/100
googleapis/java-bigtable-hbase#4587 · 1 comment ·
All issues in googleapis/java-bigtable-hbase
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100