Skip to content

Conversation

@sadanand48
Copy link
Contributor

What changes were proposed in this pull request?

value of pendingRequestsByteLimit couldn’t be set beyond 2GB because of the integer limit. Similarly there were other places where getStorageSize was cast to int. Converted to long where possible and changed the scale of the variable if not.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-5283

How was this patch tested?

CI

@sadanand48 sadanand48 changed the title HDDS-5283.getStorageSize cast to int can cause issue HDDS-5283. getStorageSize cast to int can cause issue Jun 3, 2021
@adoroszlai adoroszlai dismissed their stale review June 4, 2021 11:54

Thanks @sadanand48 for updating the patch

Copy link
Contributor

@bharatviswa504 bharatviswa504 left a comment

Choose a reason for hiding this comment

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

And also I see there are other usages of getStorageSize where we convert to INT, Can you take care of those also?

@bshashikant
Copy link
Contributor

@sadanand48 , can you please rebase?

Copy link
Contributor

@mukul1987 mukul1987 left a comment

Choose a reason for hiding this comment

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

+1, LGTM

@mukul1987 mukul1987 merged commit dc9bb4e into apache:master Aug 11, 2021
errose28 added a commit to errose28/ozone that referenced this pull request Aug 12, 2021
* master:
  HDDS-5358. Incorrect cache entry invalidation causes intermittent failure in testGetS3SecretAndRevokeS3Secret (apache#2518)
  HDDS-5608. Fix wrong command in ugrade doc (apache#2524)
  HDDS-5000. Run CI checks selectively (apache#2479)
  HDDS-4929. Select target datanodes and containers to move for Container Balancer (apache#2441)
  HDDS-5283. getStorageSize cast to int can cause issue (apache#2303)
  HDDS-5449 Recon namespace summary 'du' information should return replicated size of a key (apache#2489)
  HDDS-5558. vUnit invocation unit() may produce NPE (apache#2513)
  HDDS-5531. For Link Buckets avoid showing metadata. (apache#2502)
  HDDS-5549. Add 1.1 to supported versions in security policy (apache#2519)
  HDDS-5555. remove pipeline manager v1 code (apache#2511)
  HDDS-5546.OM Service ID change causes OM startup failure. (apache#2512)
  HDDS-5360. DN failed to process all delete block commands in one heartbeat interval (apache#2420)
  HDDS-5021. dev-support Dockerfile is badly outdated (apache#2480)
errose28 added a commit to errose28/ozone that referenced this pull request Aug 12, 2021
* master:
  HDDS-5358. Incorrect cache entry invalidation causes intermittent failure in testGetS3SecretAndRevokeS3Secret (apache#2518)
  HDDS-5608. Fix wrong command in ugrade doc (apache#2524)
  HDDS-5000. Run CI checks selectively (apache#2479)
  HDDS-4929. Select target datanodes and containers to move for Container Balancer (apache#2441)
  HDDS-5283. getStorageSize cast to int can cause issue (apache#2303)
  HDDS-5449 Recon namespace summary 'du' information should return replicated size of a key (apache#2489)
  HDDS-5558. vUnit invocation unit() may produce NPE (apache#2513)
  HDDS-5531. For Link Buckets avoid showing metadata. (apache#2502)
  HDDS-5549. Add 1.1 to supported versions in security policy (apache#2519)
  HDDS-5555. remove pipeline manager v1 code (apache#2511)
  HDDS-5546.OM Service ID change causes OM startup failure. (apache#2512)
  HDDS-5360. DN failed to process all delete block commands in one heartbeat interval (apache#2420)
  HDDS-5021. dev-support Dockerfile is badly outdated (apache#2480)

<!-- Apache Ratis version -->
<ratis.version>2.1.0</ratis.version>
<ratis.version>2.1.0-03f3b68-SNAPSHOT</ratis.version>
Copy link
Contributor

@adoroszlai adoroszlai Aug 16, 2021

Choose a reason for hiding this comment

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

Sorry, but this seems to be wrong. Ratis 2.1.0 is already released, we cannot have a new snapshot version for it. I think we should go for a new 2.1.1 release with RATIS-1384 (and RATIS-1386) bugfix.

@ferhui
Copy link
Contributor

ferhui commented Sep 3, 2021

@mukul1987 @adoroszlai Hi compile fails because of @adoroszlai 's last comments. Should we change the ratis version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants