GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — No longer using GAX batching for WriteLogEntries · Issue #632 · googleapis/java-logging

This repository was archived by the owner on Feb 6, 2026. It is now read-only.
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

No longer using GAX batching for WriteLogEntries #632

Copy link
Copy link
Closed
Closed
No longer using GAX batching for WriteLogEntries#632
Copy link
Assignees
minherz
Labels
api: loggingIssues related to the googleapis/java-logging API.lang: javaIssues specific to Java.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@jamestep
jamestep
opened on Aug 19, 2021
Issue body actions

After some investigation, it seems like since version 2.1.4 of this library, WriteLogEntries is no longer using GAX batching.

This is the specific line that's an issue, which changed in this commit. It switched from createBatchingCallable to createUnaryCallable, despite keeping the BatchingCallSettings logic.

I understand the issue may not be in this library, but I'm not familiar with microgenerator / gapic / autosynth / synthtool and this seemed like a good place to start.

This issue means we are unable to update beyond 2.1.3 as we hit the GCP WriteLogEntries request quota very quickly.

Activity

  1. product-auto-label
    added
    api: loggingIssues related to the googleapis/java-logging API.
    on Aug 19, 2021
  2. blunderbuss-gcf
    assigned
    simonz130
    on Aug 19, 2021
  3. jamestep commented on Aug 19, 2021

    @jamestep
    jamestep
    on Aug 19, 2021
    Author
    More actions

    Some important additional info: Here is the gapic yaml with the batching definition for WriteLogEntries from googleapis. It does seem to have moved around / between files over time.

  4. minherz commented on Sep 1, 2021

    @minherz
    minherz
    on Sep 1, 2021
    Contributor
    More actions

    @Neenu1995 can you have a look into this issue, please.

  5. minherz
    added
    lang: javaIssues specific to Java.
    type: questionRequest for information or clarification. Not an issue.
    on Sep 1, 2021
  6. minherz commented on Sep 1, 2021

    @minherz
    minherz
    on Sep 1, 2021
    Contributor
    More actions

    @jamestep we have had similar discussion in googleapis/java-logging-logback#134. Do you have additional info showing that batching does not work?

  7. jamestep commented on Sep 10, 2021

    @jamestep
    jamestep
    on Sep 10, 2021
    Author
    More actions

    Yes I do have some additional info:

    • For our project, hitting the GCP "Log ingestion requests per minute" with the only change being the version of google-cloud-logging
    • This line in 2.1.3 in GrpcLoggingServiceV2Stub which changed to this line in 2.1.4.
    • As indicated by others, there are BatchingCallSettings for writeLogEntries. But from the above code change it is clear that writeLogEntriesCallable switched from being created with createBatchingCallable to being created with createUnaryCallable. createUnaryCallable will not perform any batching, even if provided with batching settings.
    • The debugging screenshots below

    See below when debugging, writeLogEntries is created with createBatchingCallable in 2.1.3:
    cloud-logging-2 1 3-create-batching-callable
    And then BatchingCallable / BatchedFuture is used:
    cloud-logging-2 1 3-batched-future

    But then debugging 2.1.4, writeLogEntries is created with createUnaryCallable:
    cloud-logging-2 1 4-create-unary-callable
    And then BatchingCallable / BatchedFuture is never used:
    cloud-logging-2 1 4-batched-future-not-called

  8. minherz commented on Oct 3, 2021

    @minherz
    minherz
    on Oct 3, 2021
    Contributor
    More actions

    Thank you for this info. We need to check the problem with auto-generated code and will update you about next steps soon.
    Please mind that the currently supported version of the library is 3.2.0. We will run the tests to see batching behavior on this version.

  9. minherz
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    and removed
    type: questionRequest for information or clarification. Not an issue.
    on Oct 3, 2021
  10. minherz
    added a commit that references this issue on Oct 4, 2021

    chore: address disabled batching for writeLogEntries

    6e66498
  11. minherz commented on Oct 5, 2021

    @minherz
    minherz
    on Oct 5, 2021
    Contributor
    More actions

    Thank you for your patience. We've confirmed the problem. Hopefully, it will be addressed in the next release. The release time will be dependent on the gapic generator fix.

  12. minherz
    assigned
    minherz
    and unassigned
    simonz130
    on Oct 5, 2021
  13. minherz commented on Oct 26, 2021

    @minherz
    minherz
    on Oct 26, 2021
    Contributor
    More actions

    Fixed in #726

  14. minherz
    closed this as completedon Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @minherz
    minherz

Labels

api: loggingIssues related to the googleapis/java-logging API.lang: javaIssues specific to Java.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.