Skip to content

Refactored DfsLogger constructors to static methods that now call a p…#4192

Merged
ctubbsii merged 5 commits into
apache:mainfrom
ArbaazKhan1:issue-4086-Static-named-Constructor
Feb 7, 2024
Merged

Refactored DfsLogger constructors to static methods that now call a p…#4192
ctubbsii merged 5 commits into
apache:mainfrom
ArbaazKhan1:issue-4086-Static-named-Constructor

Conversation

@ArbaazKhan1

Copy link
Copy Markdown
Contributor

I made the dfslogger constructors private and now have them being called from static methods. To ensure that LogEntry can now be set as final in dfslogger, I removed the instantiation of it from the open() method and now have it initialized it in the newly created static method named fromCounters().

Comment thread server/tserver/src/main/java/org/apache/accumulo/tserver/log/DfsLogger.java Outdated
Comment thread server/tserver/src/main/java/org/apache/accumulo/tserver/log/DfsLogger.java Outdated
@DomGarguilo DomGarguilo marked this pull request as ready for review January 29, 2024 21:19
* Push params used only for creating a new file down into the open
  method and remove from DfsLogger fields
* Remove unneeded second private constructor
* Tweak method names
* Remove unnecessary mock object from test
@ctubbsii ctubbsii merged commit 62d2a6f into apache:main Feb 7, 2024
@ctubbsii

ctubbsii commented Feb 7, 2024

Copy link
Copy Markdown
Member

Thanks for the PR @ArbaazKhan1. I see you aren't listed on our "people" page, acknowledging contributors. If you wish to be added as a contributor to https://accumulo.apache.org/people/ , please open a pull request to add yourself at https://github.com/apache/accumulo-website/edit/main/pages/people.md and leave a reference to apache/accumulo#4192 in your commit log.

If you intend to be a regular contributor to Accumulo projects, please consider subscribing to our developer mailing list (https://accumulo.apache.org/contact-us/) and introducing yourself. 😺

ArbaazKhan1 added a commit to ArbaazKhan1/accumulo-website that referenced this pull request Feb 8, 2024
EdColeman pushed a commit to apache/accumulo-website that referenced this pull request Feb 8, 2024
@ctubbsii ctubbsii added this to the 3.1.0 milestone Jul 12, 2024
@ctubbsii ctubbsii modified the milestones: 3.1.0, 4.0.0 Mar 14, 2025
@ArbaazKhan1 ArbaazKhan1 deleted the issue-4086-Static-named-Constructor branch May 13, 2025 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DfsLogger should use a "static named constructor" to create a new logger from a new file

4 participants