Skip to content

[refactor](ingester-example): reorganize project structure and improve database connection configuration. #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 26, 2025

Conversation

zqr10159
Copy link
Contributor

  • Rename packages to better reflect their purpose (e.g., quickstart, benchmark).
  • Move database connection logic to a central DBConnector class.
  • Use properties file for database connection details.
  • fix deamon to daemon.

…database connection

- Rename packages to better reflect their purpose (e.g., quickstart, benchmark)
- Move database connection logic to a central DBConnector class
- Use properties file for database connection details
- Update logging and error handling
- Improve code readability and maintainability
@zqr10159
Copy link
Contributor Author

@fengjiachun Hi, please help review it, thanks!

@fengjiachun
Copy link
Contributor

@zqr10159 Hi, thank you for your contribution. There are two minor issues to address:

  1. Due to package modifications, some links in the README.md file need updating, such as https://github.com/GreptimeTeam/greptimedb-ingester-java/blob/main/ingester-example/README.md?plain=1#L37
  2. The format check failed; please try running mvn spotless:apply locally (Java 17 or higher may be required).

@zqr10159
Copy link
Contributor Author

@zqr10159 Hi, thank you for your contribution. There are two minor issues to address:

  1. Due to package modifications, some links in the README.md file need updating, such as https://github.com/GreptimeTeam/greptimedb-ingester-java/blob/main/ingester-example/README.md?plain=1#L37
  2. The format check failed; please try running mvn spotless:apply locally (Java 17 or higher may be required).

Ok. I will fix them soon.

- Update README with correct file paths for examples- Reorganize import statements in Java files for better readability
@fengjiachun
Copy link
Contributor

The format check failed; please try running mvn spotless:apply locally (Java 17 or higher may be required).

You can also modify the code format according to the prompts here: https://github.com/GreptimeTeam/greptimedb-ingester-java/actions/runs/15228347898/job/42871103593?pr=86

@zqr10159
Copy link
Contributor Author

Thank you. I have fixed them. Please help me see if there are any other problems.

Copy link
Contributor

@fengjiachun fengjiachun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Others LGTM, thanks a lot. @zqr10159

zqr10159 added 2 commits May 26, 2025 12:12
…asses

- Remove db_endpoint and db_name from BulkWriteBenchmark and StreamingWriteBenchmark
- Update class comments to reflect the removal of these environment variables
- Remove comments about db_endpoint and db_name as they are not relevant to the batching write benchmark- Keep existing information about batch_size_per_request, zstd_compression, and max_points_per_second
@fengjiachun fengjiachun merged commit 4662bf7 into GreptimeTeam:main May 26, 2025
4 checks passed
@zqr10159 zqr10159 deleted the refactor-0524 branch May 26, 2025 07:59
@fengjiachun fengjiachun mentioned this pull request May 26, 2025
@fengjiachun
Copy link
Contributor

fix deamon to daemon.

v0.14.6 has been released, which includes this fix. cc @zqr10159

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.

2 participants