Github user vrozov commented on a diff in the pull request:
https://github.com/apache/incubator-apex-core/pull/175#discussion_r46201146
--- Diff:
bufferserver/src/main/java/com/datatorrent/bufferserver/internal/DataList.java
---
@@ -139,13 +140,16 @@ public void rewind(final int baseSeconds, final int
windowId) throws IOException
}
/*
- TODO: properly rewind Data List iterators, especially handle case
when iterators point to blocks past the last block.
- */
+ * TODO: properly rewind Data List iterators, especially handle case
when iterators point to blocks past the last
+ * block.
+ */
final int numberOfInMemBlockPermits =
this.numberOfInMemBlockPermits.addAndGet(numberOfInMemBlockRewound);
- assert numberOfInMemBlockPermits < MAX_COUNT_OF_INMEM_BLOCKS : "Number
of in memory block permits " + numberOfInMemBlockPermits + " exceeded
configured maximum " + MAX_COUNT_OF_INMEM_BLOCKS + '.';
+ assert numberOfInMemBlockPermits < MAX_COUNT_OF_INMEM_BLOCKS : "Number
of in memory block permits " +
+ numberOfInMemBlockPermits + " exceeded configured maximum " +
MAX_COUNT_OF_INMEM_BLOCKS + '.';
resumeSuspendedClients(numberOfInMemBlockPermits);
- logger.debug("Discarded {} in memory blocks during rewind. Number of
in memory blocks permits {} after rewinding {}. ", numberOfInMemBlockRewound,
numberOfInMemBlockPermits, this);
+ logger.debug("Discarded {} in memory blocks during rewind. Number of
in memory blocks permits {} after" +
+ " rewinding {}.", numberOfInMemBlockRewound,
numberOfInMemBlockPermits, this);
--- End diff --
I disagree that we should allow exceptions to code style rules. Either 120
line length needs to be enforced or it should not be enforced at all, not just
for string literals. Note that some string literals may be very long and span
multiple lines.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---