Skip to content

FIX: Remove staticmethod tag to be able to use logger of instance#9086

Merged
mjsax merged 1 commit intoapache:trunkfrom
cadonna:fix_self_in_staticmethod
Jul 27, 2020
Merged

FIX: Remove staticmethod tag to be able to use logger of instance#9086
mjsax merged 1 commit intoapache:trunkfrom
cadonna:fix_self_in_staticmethod

Conversation

@cadonna
Copy link
Copy Markdown
Member

@cadonna cadonna commented Jul 27, 2020

A system test failed with the following error

global name 'self' is not defined

The reason was that self was accessed in a static
method to log a message.

This commit makes the method an instance method.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

A system test failed with the following error

global name 'self' is not defined

The reason was that self was accessed to log a message in a static
method.

This commit makes the method an instance method.
@cadonna
Copy link
Copy Markdown
Member Author

cadonna commented Jul 27, 2020

Call for review: @ableegoldman @mjsax

@cadonna
Copy link
Copy Markdown
Member Author

cadonna commented Jul 27, 2020

Run of system tests that use the modified method:
https://jenkins.confluent.io/job/system-test-kafka-branch-builder/4078/

@mjsax mjsax added streams tests Test fixes (including flaky tests) labels Jul 27, 2020
@mjsax mjsax merged commit ac3a51d into apache:trunk Jul 27, 2020
mjsax pushed a commit that referenced this pull request Jul 27, 2020
…9086)

A system test failed with the following error: global name 'self' is not defined

The reason was that `self` was accessed to log a message in a static method. This commit makes the method an instance method.

Reviewer: Matthias J. Sax <matthias@confluent.io>
mjsax pushed a commit that referenced this pull request Jul 27, 2020
…9086)

A system test failed with the following error: global name 'self' is not defined

The reason was that `self` was accessed to log a message in a static method. This commit makes the method an instance method.

Reviewer: Matthias J. Sax <matthias@confluent.io>
mjsax pushed a commit that referenced this pull request Jul 27, 2020
…9086)

A system test failed with the following error: global name 'self' is not defined

The reason was that `self` was accessed to log a message in a static method. This commit makes the method an instance method.

Reviewer: Matthias J. Sax <matthias@confluent.io>
mjsax pushed a commit that referenced this pull request Jul 27, 2020
…9086)

A system test failed with the following error: global name 'self' is not defined

The reason was that `self` was accessed to log a message in a static method. This commit makes the method an instance method.

Reviewer: Matthias J. Sax <matthias@confluent.io>
@mjsax
Copy link
Copy Markdown
Member

mjsax commented Jul 27, 2020

Merged to trunk and cherry-picked to 2.6, 2.5, 2.4, and 2.3 branches.

ijuma added a commit to ijuma/kafka that referenced this pull request Nov 17, 2020
…t-for-generated-requests

* apache-github/trunk: (148 commits)
  MINOR: remove NewTopic#NO_PARTITIONS and NewTopic#NO_REPLICATION_FACTOR as they are duplicate to CreateTopicsRequest#NO_NUM_PARTITIONS and CreateTopicsRequest#NO_REPLICATION_FACTOR (apache#9077)
  MINOR: Remove staticmethod tag to be able to use logger of instance (apache#9086)
  MINOR: Adjust 'release.py' script to use shell when using gradlewAll and PGP signing, which were required to build the 2.6.0 RCs (apache#9045)
  MINOR: Update dependencies for Kafka 2.7 (part 1) (apache#9082)
  MINOR: INFO log4j when request re-join (apache#9068)
  MINOR: Recommend Java 11 (apache#9080)
  KAFKA-10306: GlobalThread should fail on InvalidOffsetException (apache#9075)
  KAFKA-10158: Fix flaky testDescribeUnderReplicatedPartitionsWhenReassignmentIsInProgress (apache#9022)
  MINOR: code cleanup for `VOut` inconsistent naming (apache#8907)
  KAFKA-10246 : AbstractProcessorContext topic() throws NPE (apache#9034)
  KAFKA-10305: Print usage when parsing fails for ConsumerPerformance (apache#9071)
  MINOR: removed incorrect deprecation annotations (apache#9061)
  MINOR: speed up release script (apache#9070)
  MINOR: add task ':streams:testAll' (apache#9073)
  KAFKA-10301: Do not clear Partition#remoteReplicasMap during partition assignment updates (apache#9065)
  KAFKA-10268: dynamic config like "--delete-config log.retention.ms" doesn't work (apache#9051)
  KAFKA-10300 fix flaky core/group_mode_transactions_test.py (apache#9059)
  MINOR: Publish metrics package in the javadoc (apache#9036)
  KAFKA-8264: decrease the record size for flaky test
  KAFKA-5876: Add new exception types for Interactive Queries (apache#8200)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

streams tests Test fixes (including flaky tests)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants