JDK-8229869 : Printer listings take a long time to refresh on CUPS
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 8,9,10,11,14
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: linux,os_x
  • Submitted: 2019-08-19
  • Updated: 2019-08-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
Platform:
MacOS, Linux (Issue does NOT occur on Windows)

Architecture:
x86_64 (AdoptOpenJDK 11.0.4. Also occurs on Oracle Java 8).

Description
Java's PrintService.lookupPrintServices() does not return newly added (and thus still returns newly removed) printers in a timely fashion unless the Java application is restarted.

Steps to reproduce:

1. Run the attached test program
2. Add or remove a printer. The number will not change for 1-2 minutes.
3. Restart the program. Now the number will change.

Also note that If one runs a second instance of the program the changed value (added/removed printer) shows up immediately while the program which continued to run doesn't show the changed value for a while.

This issue was originally been reported at AdoptOpenJDK:
https://github.com/AdoptOpenJDK/openjdk-build/issues/1212