Skip to content

Conversation

@ericgribkoff
Copy link
Contributor

Replaces #3753. Leaves the synchronized fallback in place for SerializingExecutor, but just falls back to (racy) volatile updates in the stats modules.

@ericgribkoff ericgribkoff added the TODO:backport PR needs to be backported. Removed after backport complete label Nov 16, 2017
AtomicLongFieldUpdater.newUpdater(ClientTracer.class, "inboundUncompressedSize");
} catch (Throwable t) {
logger.log(Level.WARNING, "Creating atomic field updaters failed", t);
tmpOutboundMessageCountUpdater = null;
Copy link
Contributor

Choose a reason for hiding this comment

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

initialize all these to null above?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Leaving as-is so that all field updater references are assigned a value or they are all null

tmpInboundUncompressedSizeUpdater =
AtomicLongFieldUpdater.newUpdater(ClientTracer.class, "inboundUncompressedSize");
} catch (Throwable t) {
logger.log(Level.WARNING, "Creating atomic field updaters failed", t);
Copy link
Contributor

Choose a reason for hiding this comment

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

This is probably SEVERE worthy. A core part of the Java API doesn't work.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@ericgribkoff ericgribkoff merged commit 4c483ef into grpc:master Nov 16, 2017
@ericgribkoff ericgribkoff deleted the null_check_in_stats branch November 16, 2017 17:59
@ejona86 ejona86 removed the TODO:backport PR needs to be backported. Removed after backport complete label Nov 17, 2017
@carl-mastrangelo carl-mastrangelo added this to the 1.9 milestone Nov 30, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants