You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2022/01/19 18:22:02 UTC
[GitHub] [accumulo] DomGarguilo opened a new pull request #2421: Remove obsolete comments and add minor improvements to OfflineIterator
DomGarguilo opened a new pull request #2421:
URL: https://github.com/apache/accumulo/pull/2421
Closes #2413
#2413 was created to address the possibility of two things:
* Reusing common code within ScanDataSource
* Closing resources that were left open (readers, files)
It seems that neither of these should be done.
The original Jira ticket referenced shared code between OfflineIterator and Tablet, but since then, the code has moved to ScanDataSource and changed significantly meaning extracting commonalities between the two may not be worth it/feasible.
The second point about closing the resources proves to cause error. If the readers or files are closed, the iterator fails to read the intended data therefore I think its best if they are not closed.
The changes made in this PR:
* Remove the comments that refer to these issues
* Make some variables final
* Simplify some logic
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [accumulo] DomGarguilo merged pull request #2421: Remove obsolete comments and add minor improvements to OfflineIterator
Posted by GitBox <gi...@apache.org>.
DomGarguilo merged pull request #2421:
URL: https://github.com/apache/accumulo/pull/2421
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [accumulo] ctubbsii commented on a change in pull request #2421: Remove obsolete comments and add minor improvements to OfflineIterator
Posted by GitBox <gi...@apache.org>.
ctubbsii commented on a change in pull request #2421:
URL: https://github.com/apache/accumulo/pull/2421#discussion_r788046235
##########
File path: core/src/main/java/org/apache/accumulo/core/clientImpl/OfflineIterator.java
##########
@@ -300,13 +295,9 @@ private TabletMetadata getTabletFiles(Range nextRange) {
SamplerConfigurationImpl samplerConfImpl =
SamplerConfigurationImpl.newSamplerConfig(acuTableConf);
- if (scannerSamplerConfigImpl != null
- && ((samplerConfImpl != null && !scannerSamplerConfigImpl.equals(samplerConfImpl))
- || samplerConfImpl == null)) {
+ if (scannerSamplerConfigImpl != null && (!scannerSamplerConfigImpl.equals(samplerConfImpl))) {
Review comment:
Can remove these extra parens:
```suggestion
if (scannerSamplerConfigImpl != null && !scannerSamplerConfigImpl.equals(samplerConfImpl)) {
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org