Hello Kudu Jenkins,

I'd like you to reexamine a change.  Please visit

    http://gerrit.cloudera.org:8080/7796

to look at the new patch set (#2).

Change subject: log block manager: use unsigned int for next_block_id_
......................................................................

log block manager: use unsigned int for next_block_id_

KUDU-1538 introduced 'next_block_id_' to keep track of unique block
ID that should be used for block creation. Currently, it is defined
as int64_t. However, it could be updated based on the value of
'max_block_id' which is uint64_t. Moreover, block IDs are defined
as uint64_t both on disk (fs.proto) and in memory (block_id.h), so
it makes more sense to treat 'next_block_id_' as uint64_t than to
convert it properly.

This patch changes the type of 'next_block_id_' to uint64_t to
avoid overflow due to conversion of unsinged int to int, which
can result in the reuse of an existing block ID. It does not add
a standalone test case because the failure can most likely occur
in specific test-only scenarios.

Change-Id: Ib315b20719ef529331304df5c56c4242902524d4
---
M src/kudu/fs/log_block_manager.h
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/96/7796/2
-- 
To view, visit http://gerrit.cloudera.org:8080/7796
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ib315b20719ef529331304df5c56c4242902524d4
Gerrit-PatchSet: 2
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Hao Hao <[email protected]>
Gerrit-Reviewer: Adar Dembo <[email protected]>
Gerrit-Reviewer: Kudu Jenkins

Reply via email to