Skip to content

Conversation

@chamilaadhi
Copy link

Purpose

Describe the problems, issues, or needs driving this feature/fix and include links to related issues in the following format: Resolves issue1, issue2, etc.

Goals

Describe the solutions that this feature/fix will introduce to resolve the problems described above

Approach

Describe how you are implementing the solutions. Include an animated GIF or screenshot if the change affects the UI (email [email protected] to review all UI text). Include a link to a Markdown file or Google doc if the feature write-up is too long to paste here.

User stories

Summary of user stories addressed by this change>

Release note

Brief description of the new feature or bug fix as it will appear in the release notes

Documentation

Link(s) to product documentation that addresses the changes of this PR. If no doc impact, enter “N/A” plus brief explanation of why there’s no doc impact

Training

Link to the PR for changes to the training content in https://github.com/wso2/WSO2-Training, if applicable

Certification

Type “Sent” when you have provided new/updated certification questions, plus four answers for each question (correct answer highlighted in bold), based on this change. Certification questions/answers should be sent to [email protected] and NOT pasted in this PR. If there is no impact on certification exams, type “N/A” and explain why.

Marketing

Link to drafts of marketing content that will describe and promote this feature, including product page changes, technical articles, blog posts, videos, etc., if applicable

Automation tests

  • Unit tests

    Code coverage information

  • Integration tests

    Details about the test cases and coverage

Security checks

Samples

Provide high-level details about the samples related to this feature

Related PRs

List any other related PRs

Migrations (if applicable)

Describe migration steps and platforms on which migration has been tested

Test environment

List all JDK versions, operating systems, databases, and browser/versions on which this feature/fix was tested

Learning

Describe the research phase and any blog posts, patterns, libraries, or add-ons you used to solve the problem.

@coderabbitai
Copy link

coderabbitai bot commented Dec 18, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Comment on lines 59 to 60

@Override

Choose a reason for hiding this comment

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

Log Improvement Suggestion No: 2

Suggested change
@Override
@Override
public void stop(BundleContext bundleContext) throws Exception {
log.info("Stopping CarbonBaseActivator bundle");
if (registration != null) {
registration.unregister();
log.debug("ServerConfigurationService unregistered");
}


private void registerCarbonServlet(HttpService httpService, HttpContext defaultHttpContext)
throws ServletException, NamespaceException, InvalidSyntaxException {
private void registerCarbonServlet(HttpContext defaultHttpContext) throws InvalidSyntaxException {

Choose a reason for hiding this comment

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

Log Improvement Suggestion No: 5

Suggested change
private void registerCarbonServlet(HttpContext defaultHttpContext) throws InvalidSyntaxException {
private void registerCarbonServlet(HttpContext defaultHttpContext) throws InvalidSyntaxException {
log.info("Registering CarbonServlet with service path: " + servicePath);

Comment on lines 968 to +969
try {
CarbonCoreDataHolder.getInstance().getHttpService().unregister(servicePath);
CarbonCoreDataHolder.getInstance().unregisterServiceRegistrations();

Choose a reason for hiding this comment

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

Log Improvement Suggestion No: 6

Suggested change
try {
CarbonCoreDataHolder.getInstance().getHttpService().unregister(servicePath);
CarbonCoreDataHolder.getInstance().unregisterServiceRegistrations();
try {
log.info("Unregistering Carbon service registrations");
CarbonCoreDataHolder.getInstance().unregisterServiceRegistrations();

private static final Log log = LogFactory.getLog(CarbonCoreActivator.class);
private CarbonCoreDataHolder dataHolder = CarbonCoreDataHolder.getInstance();

public void start(BundleContext context) throws Exception {

Choose a reason for hiding this comment

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

Log Improvement Suggestion No: 7

Suggested change
public void start(BundleContext context) throws Exception {
public void start(BundleContext context) throws Exception {
log.info("Starting Carbon Core bundle activation");

Comment on lines 71 to 72
", " + System.getProperty("user.timezone"));

Choose a reason for hiding this comment

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

Log Improvement Suggestion No: 8

Suggested change
", " + System.getProperty("user.timezone"));
", " + System.getProperty("user.timezone"));
log.info("Carbon Core bundle activated successfully");

Comment on lines +174 to +177
public void addServiceRegistration(ServiceRegistration<?> serviceRegistration) {

serviceRegistrations.add(serviceRegistration);
}

Choose a reason for hiding this comment

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

Log Improvement Suggestion No: 9

Suggested change
public void addServiceRegistration(ServiceRegistration<?> serviceRegistration) {
serviceRegistrations.add(serviceRegistration);
}
public void addServiceRegistration(ServiceRegistration<?> serviceRegistration) {
serviceRegistrations.add(serviceRegistration);
if (log.isDebugEnabled()) {
log.debug("Added service registration: " + serviceRegistration.getReference().getProperty("objectClass"));
}

Comment on lines +179 to +184
public void unregisterServiceRegistrations() {

for (ServiceRegistration<?> serviceRegistration : serviceRegistrations) {
serviceRegistration.unregister();
}
}

Choose a reason for hiding this comment

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

Log Improvement Suggestion No: 10

Suggested change
public void unregisterServiceRegistrations() {
for (ServiceRegistration<?> serviceRegistration : serviceRegistrations) {
serviceRegistration.unregister();
}
}
public void unregisterServiceRegistrations() {
log.info("Unregistering " + serviceRegistrations.size() + " service registrations");
for (ServiceRegistration<?> serviceRegistration : serviceRegistrations) {
serviceRegistration.unregister();
}

Comment on lines +89 to 90
if (isMeteringEnabled) {
requestDataPersister = new RequestDataPersisterTask();

Choose a reason for hiding this comment

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

Log Improvement Suggestion No: 11

Suggested change
if (isMeteringEnabled) {
requestDataPersister = new RequestDataPersisterTask();
if (isMeteringEnabled) {
log.info("Metering is enabled, initializing request data persister");
requestDataPersister = new RequestDataPersisterTask();

)
public class DataSourceService {

public List<CarbonDataSource> getAllDataSources() throws DataSourceException {

Choose a reason for hiding this comment

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

Log Improvement Suggestion No: 12

Suggested change
public List<CarbonDataSource> getAllDataSources() throws DataSourceException {
public List<CarbonDataSource> getAllDataSources() throws DataSourceException {
log.info("Retrieving all data sources");

Copy link

@wso2-engineering wso2-engineering bot left a comment

Choose a reason for hiding this comment

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

AI Agent Log Improvement Checklist

⚠️ Warning: AI-Generated Review Comments

  • The log-related comments and suggestions in this review were generated by an AI tool to assist with identifying potential improvements. Purpose of reviewing the code for log improvements is to improve the troubleshooting capabilities of our products.
  • Please make sure to manually review and validate all suggestions before applying any changes. Not every code suggestion would make sense or add value to our purpose. Therefore, you have the freedom to decide which of the suggestions are helpful.

✅ Before merging this pull request:

  • Review all AI-generated comments for accuracy and relevance.
  • Complete and verify the table below. We need your feedback to measure the accuracy of these suggestions and the value they add. If you are rejecting a certain code suggestion, please mention the reason briefly in the suggestion for us to capture it.
Comment Accepted (Y/N) Reason
#### Log Improvement Suggestion No: 2
#### Log Improvement Suggestion No: 5
#### Log Improvement Suggestion No: 6
#### Log Improvement Suggestion No: 7
#### Log Improvement Suggestion No: 8
#### Log Improvement Suggestion No: 9
#### Log Improvement Suggestion No: 10
#### Log Improvement Suggestion No: 11
#### Log Improvement Suggestion No: 12

@chamilaadhi chamilaadhi changed the title Initial Commit JDK21 compilation changes Dec 18, 2025
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.

1 participant